Changeset 5103


Ignore:
Timestamp:
Jun 1, 2015 3:44:16 AM (5 years ago)
Author:
nanang
Message:

Close #1856: Offer only current active crypto on re-INVITE.

File:
1 edited

Legend:

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

    r5079 r5103  
    13641364        /* Generate crypto attribute if not yet */ 
    13651365        if (pjmedia_sdp_media_find_attr(m_loc, &ID_CRYPTO, NULL) == NULL) { 
     1366            /* Offer only current active crypto if any, otherwise offer all 
     1367             * crypto-suites in the setting. 
     1368             */ 
    13661369            for (i=0; i<srtp->setting.crypto_count; ++i) { 
    1367                 /* Offer crypto-suites based on setting. */ 
     1370                if (srtp->tx_policy.name.slen && 
     1371                    pj_stricmp(&srtp->tx_policy.name, 
     1372                               &srtp->setting.crypto[i].name) != 0) 
     1373                { 
     1374                    continue; 
     1375                } 
     1376 
    13681377                buffer_len = MAXLEN; 
    13691378                status = generate_crypto_attr_value(srtp->pool, buffer, &buffer_len, 
Note: See TracChangeset for help on using the changeset viewer.