Changeset 43 for pjproject/main/pjsip/src/pjsip/sip_auth.c
- Timestamp:
- Nov 11, 2005 7:01:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/main/pjsip/src/pjsip/sip_auth.c
- Property svn:keywords set to Id
r3 r43 1 1 /* $Id$ 2 *3 2 */ 4 3 #include <pjsip/sip_auth.h> … … 6 5 #include <pjsip/sip_transport.h> 7 6 #include <pjsip/sip_endpoint.h> 8 #include <pj /md5.h>7 #include <pjlib-util/md5.h> 9 8 #include <pj/log.h> 10 9 #include <pj/string.h> 11 10 #include <pj/pool.h> 12 11 #include <pj/guid.h> 12 #include <pj/assert.h> 13 #include <pj/ctype.h> 13 14 14 15 /* Length of digest string. */ … … 147 148 p = qop.ptr; 148 149 while (*p) { 149 *p = (char) tolower(*p);150 *p = (char)pj_tolower(*p); 150 151 ++p; 151 152 } … … 218 219 cred->qop = pjsip_AUTH_STR; 219 220 cred->nc.ptr = pj_pool_alloc(pool, 16); 220 sprintf(cred->nc.ptr, "%06u", nc);221 pj_snprintf(cred->nc.ptr, 16, "%06u", nc); 221 222 222 223 if (cnonce && cnonce->slen) { … … 485 486 { 486 487 unsigned i; 487 PJ_UNUSED_ARG(scheme) 488 PJ_UNUSED_ARG(scheme); 488 489 for (i=0; i<count; ++i) { 489 490 if (pj_stricmp(&cred[i].realm, realm) == 0) … … 716 717 pjsip_via_hdr *via; 717 718 718 PJ_UNUSED_ARG(endpt) 719 PJ_UNUSED_ARG(endpt); 719 720 720 721 pj_assert(rdata->msg->type == PJSIP_RESPONSE_MSG);
Note: See TracChangeset
for help on using the changeset viewer.