Ignore:
Timestamp:
Feb 26, 2007 2:33:14 AM (18 years ago)
Author:
bennylp
Message:

Added CRC32 code to pjlib-util, and implemented STUN FINGERPRINT and MESSAGE-INTEGRITY

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/src/pjstun-client/stun_session.c

    r996 r1002  
    485485    /* Encode message */ 
    486486    status = pj_stun_msg_encode(tdata->msg, tdata->pkt, tdata->max_len, 
    487                                 0, &tdata->pkt_size); 
     487                                0, NULL, &tdata->pkt_size); 
    488488    if (status != PJ_SUCCESS) { 
    489489        LOG_ERR_(sess, "STUN encode() error", status); 
     
    541541                                              unsigned *parsed_len) 
    542542{ 
    543     pj_stun_msg *msg; 
     543    pj_stun_msg *msg, *response; 
    544544    pj_pool_t *tmp_pool; 
    545545    char *dump; 
     
    555555    status = pj_stun_msg_decode(tmp_pool, (const pj_uint8_t*)packet, 
    556556                                pkt_size, 0, &msg, parsed_len, 
    557                                 NULL, NULL, NULL); 
     557                                &response); 
    558558    if (status != PJ_SUCCESS) { 
    559559        LOG_ERR_(sess, "STUN msg_decode() error", status); 
     560        if (response) { 
     561            PJ_TODO(SEND_RESPONSE); 
     562        } 
    560563        pj_pool_release(tmp_pool); 
    561564        return status; 
Note: See TracChangeset for help on using the changeset viewer.