Mercurial > hg > freeDiameter
diff extensions/app_sip/multimediaauth.c @ 1088:1d1a20a0779d
Second part of changeset 1083, now the code compiles again. Still missing some functions implementation, though
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Sat, 04 May 2013 21:25:27 +0200 |
parents | 95a784729cac |
children | 3cbe458fbfa9 |
line wrap: on
line diff
--- a/extensions/app_sip/multimediaauth.c Sat May 04 17:00:39 2013 +0200 +++ b/extensions/app_sip/multimediaauth.c Sat May 04 21:25:27 2013 +0200 @@ -35,6 +35,11 @@ *********************************************************************************************************/ #include "app_sip.h" +struct sess_state +{ + char *nonce; +}; + int app_sip_MAR_cb( struct msg ** msg, struct avp * paramavp, struct session * sess, void * opaque, enum disp_action * act) { @@ -55,7 +60,7 @@ unsigned char *username=NULL; //The nonce we will store and retrieve in session - struct ds_nonce *storednonce=NULL; + struct sess_state *storednonce=NULL; TRACE_ENTRY("%p %p %p %p", msg, paramavp, sess, act); @@ -361,8 +366,8 @@ //We store the nonce (storednonce structure) inside the session - storednonce=malloc(sizeof(struct ds_nonce)); - memset(storednonce,0,sizeof(struct ds_nonce)); + storednonce=malloc(sizeof(struct sess_state)); + memset(storednonce,0,sizeof(struct sess_state)); CHECK_MALLOC(storednonce->nonce=malloc(NONCE_SIZE*2+1)); memcpy(storednonce->nonce,(char *)nonce,NONCE_SIZE*2+1); CHECK_FCT( fd_sess_state_store ( ds_sess_hdl, sess, &storednonce ));