diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-10-15 07:04:59 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-10-15 07:04:59 +0000 |
commit | 4b289329774686a3e261fac70fbd902942cb9b1f (patch) | |
tree | 2afebdecbce79f65ab386003be09649736665f7a /pjsip-apps | |
parent | cee3cd46bbeec0bb7e76a5480e7cad9ee2f8cda5 (diff) |
Continuing ticket #396: tested digest AKAv1, implemented AKAv2, and some works in the authentication framework to support it
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1500 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps')
-rw-r--r-- | pjsip-apps/src/pjsua/pjsua_app.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pjsip-apps/src/pjsua/pjsua_app.c b/pjsip-apps/src/pjsua/pjsua_app.c index cc3cacac..80dac5da 100644 --- a/pjsip-apps/src/pjsua/pjsua_app.c +++ b/pjsip-apps/src/pjsua/pjsua_app.c @@ -671,6 +671,11 @@ static pj_status_t parse_args(int argc, char *argv[], case OPT_PASSWORD: /* authentication password */ cur_acc->cred_info[cur_acc->cred_count].data_type = PJSIP_CRED_DATA_PLAIN_PASSWD; cur_acc->cred_info[cur_acc->cred_count].data = pj_str(pj_optarg); +#if PJSIP_HAS_DIGEST_AKA_AUTH + cur_acc->cred_info[cur_acc->cred_count].data_type |= PJSIP_CRED_DATA_EXT_AKA; + cur_acc->cred_info[cur_acc->cred_count].ext.aka.k = pj_str(pj_optarg); + cur_acc->cred_info[cur_acc->cred_count].ext.aka.cb = &pjsip_auth_create_aka_response; +#endif break; case OPT_NEXT_CRED: /* next credential */ |