Changeset 5500


Ignore:
Timestamp:
Dec 19, 2016 3:00:37 AM (7 years ago)
Author:
nanang
Message:

Misc (re #1945): Update SRTP to restart crypto tag from 1 when generating reoffer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/transport_srtp.c

    r5418 r5500  
    14191419        /* Generate crypto attribute if not yet */ 
    14201420        if (pjmedia_sdp_media_find_attr(m_loc, &ID_CRYPTO, NULL) == NULL) { 
     1421            int tag = 1; 
     1422 
    14211423            /* Offer only current active crypto if any, otherwise offer all 
    14221424             * crypto-suites in the setting. 
     
    14331435                status = generate_crypto_attr_value(srtp->pool, buffer, &buffer_len, 
    14341436                                                    &srtp->setting.crypto[i], 
    1435                                                     i+1); 
     1437                                                    tag); 
    14361438                if (status != PJ_SUCCESS) 
    14371439                    return status; 
     
    14431445                                                   &attr_value); 
    14441446                    m_loc->attr[m_loc->attr_count++] = attr; 
     1447                    ++tag; 
    14451448                } 
    14461449            } 
Note: See TracChangeset for help on using the changeset viewer.