Navigation



Ignore:
Timestamp:
May 5, 2013, 4:25:27 AM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Second part of changeset 1083, now the code compiles again. Still missing some functions implementation, though

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_sip/multimediaauth.c

    r639 r1088  
    3636#include "app_sip.h"
    3737
     38struct sess_state
     39{
     40        char *nonce;
     41};
     42
    3843
    3944int app_sip_MAR_cb( struct msg ** msg, struct avp * paramavp, struct session * sess, void * opaque, enum disp_action * act)
     
    5661       
    5762        //The nonce we will store and retrieve in session
    58         struct ds_nonce *storednonce=NULL;
     63        struct sess_state *storednonce=NULL;
    5964       
    6065       
     
    362367                                                                       
    363368                                                                        //We store the nonce (storednonce structure) inside the session
    364                                                                         storednonce=malloc(sizeof(struct ds_nonce));
    365                                                                         memset(storednonce,0,sizeof(struct ds_nonce));
     369                                                                        storednonce=malloc(sizeof(struct sess_state));
     370                                                                        memset(storednonce,0,sizeof(struct sess_state));
    366371                                                                        CHECK_MALLOC(storednonce->nonce=malloc(NONCE_SIZE*2+1));
    367372                                                                        memcpy(storednonce->nonce,(char *)nonce,NONCE_SIZE*2+1);
Note: See TracChangeset for help on using the changeset viewer.