Fixed ticket #356: Prototype and definition mismatch causing crash in sip_auth_server.c (thanks Truong Thanh Quang)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1407 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
b8864a97a3
commit
3f6ac906ae
2 changed files with 13 additions and 11 deletions
|
@ -354,6 +354,18 @@ PJ_DECL(pj_status_t) pjsip_auth_srv_challenge( pjsip_auth_srv *auth_srv,
|
|||
* @}
|
||||
*/
|
||||
|
||||
/* Internal function defined in sip_auth_client.c */
|
||||
void pjsip_auth_create_digest( pj_str_t *result,
|
||||
const pj_str_t *nonce,
|
||||
const pj_str_t *nc,
|
||||
const pj_str_t *cnonce,
|
||||
const pj_str_t *qop,
|
||||
const pj_str_t *uri,
|
||||
const pj_str_t *realm,
|
||||
const pjsip_cred_info *cred_info,
|
||||
const pj_str_t *method);
|
||||
|
||||
|
||||
|
||||
PJ_END_DECL
|
||||
|
||||
|
|
|
@ -26,17 +26,6 @@
|
|||
#include <pj/assert.h>
|
||||
|
||||
|
||||
/* Defined in sip_auth_client.c */
|
||||
void pjsip_auth_create_digest( pj_str_t *result,
|
||||
const pj_str_t *nonce,
|
||||
const pj_str_t *nc,
|
||||
const pj_str_t *cnonce,
|
||||
const pj_str_t *qop,
|
||||
const pj_str_t *uri,
|
||||
const pjsip_cred_info *cred_info,
|
||||
const pj_str_t *method);
|
||||
|
||||
|
||||
/*
|
||||
* Initialize server authorization session data structure to serve the
|
||||
* specified realm and to use lookup_func function to look for the credential
|
||||
|
@ -90,6 +79,7 @@ static pj_status_t pjsip_auth_verify( const pjsip_authorization_hdr *hdr,
|
|||
&hdr->credential.digest.cnonce,
|
||||
&hdr->credential.digest.qop,
|
||||
&hdr->credential.digest.uri,
|
||||
&cred_info->realm,
|
||||
cred_info,
|
||||
method );
|
||||
|
||||
|
|
Loading…
Reference in a new issue