[asterisk-scf-commits] asterisk-scf/integration/sip.git branch "auth" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed Aug 3 14:24:42 CDT 2011


branch "auth" has been updated
       via  c38641768d92da65b3f90d187acdc516bcc43ff9 (commit)
      from  3555e9a4c6880f67257cc33f3ba56c34064752dd (commit)

Summary of changes:
 src/AuthManager.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


- Log -----------------------------------------------------------------
commit c38641768d92da65b3f90d187acdc516bcc43ff9
Author: Joshua Colp <jcolp at digium.com>
Date:   Wed Aug 3 16:25:01 2011 -0300

    Populate the realm in the credential information structure.

diff --git a/src/AuthManager.cpp b/src/AuthManager.cpp
index c9934c1..0bd0d15 100644
--- a/src/AuthManager.cpp
+++ b/src/AuthManager.cpp
@@ -193,6 +193,7 @@ void AuthInstance::addDigests(pjsip_tx_data *tdata, const DigestChallengeSeq &di
         pj_strdup2(mImpl->mPool, &authServer->cred_info.username, (*digest)->username.c_str());
         authServer->cred_info.data_type = PJSIP_CRED_DATA_PLAIN_PASSWD;
         pj_strdup2(mImpl->mPool, &authServer->cred_info.data, (*digest)->password.c_str());
+        pj_strdup2(mImpl->mPool, &authServer->cred_info.realm, (*digest)->realm.c_str());
 
         pj_str_t nonce, opaque, *noncePtr = NULL, *opaquePtr = NULL;
         if (!(*digest)->opaque.empty())

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/sip.git



More information about the asterisk-scf-commits mailing list