Changeset 1489


Ignore:
Timestamp:
Oct 10, 2007 12:18:27 PM (11 years ago)
Author:
bennylp
Message:

Continuing ticket #396: added PJSIP_HAS_DIGEST_AKAv1_AUTH to enable AKA support. Default is disabled, for now

Location:
pjproject/trunk/pjsip
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_config.h

    r1473 r1489  
    617617 
    618618/** 
     619 * Specify support for IMS/3GPP digest AKA authentication. 
     620 * 
     621 * Default: 0 (disabled for now) 
     622 */ 
     623#ifndef PJSIP_HAS_DIGEST_AKAV1_AUTH 
     624#   define PJSIP_HAS_DIGEST_AKAV1_AUTH      0 
     625#endif 
     626 
     627 
     628/** 
    619629 * @} 
    620630 */ 
  • pjproject/trunk/pjsip/src/pjsip/sip_auth_aka.c

    r1488 r1489  
    2525#include <pj/pool.h> 
    2626#include <pj/string.h> 
     27 
     28#if PJSIP_HAS_DIGEST_AKAV1_AUTH 
    2729 
    2830#include "../../third_party/milenage/milenage.h" 
     
    120122} 
    121123 
     124 
     125#endif  /* PJSIP_HAS_DIGEST_AKAV1_AUTH */ 
     126 
  • pjproject/trunk/pjsip/src/pjsip/sip_auth_client.c

    r1488 r1489  
    470470             */ 
    471471            if ((c[i].data_type & EXT_MASK) == PJSIP_CRED_DATA_EXT_AKA) { 
     472 
     473#if !PJSIP_HAS_DIGEST_AKAV1_AUTH 
     474                pj_assert(!"PJSIP_HAS_DIGEST_AKAV1_AUTH is not enabled"); 
     475                return PJSIP_EAUTHINAKACRED; 
     476#endif 
     477 
    472478                /* Callback must be specified */ 
    473479                PJ_ASSERT_RETURN(c[i].ext.aka.cb != NULL, PJ_EINVAL); 
Note: See TracChangeset for help on using the changeset viewer.