Changeset 5891 for pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp
- Timestamp:
- Sep 26, 2018 12:56:51 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp
r5878 r5891 2146 2146 StringVector Endpoint::srtpCryptoEnum() throw(Error) 2147 2147 { 2148 StringVector result; 2149 #if defined(PJMEDIA_HAS_SRTP) && (PJMEDIA_HAS_SRTP != 0) 2148 2150 unsigned cnt = PJMEDIA_SRTP_MAX_CRYPTOS; 2149 2151 pjmedia_srtp_crypto cryptos[PJMEDIA_SRTP_MAX_CRYPTOS]; 2150 StringVector result;2151 2152 2152 2153 PJSUA2_CHECK_EXPR(pjmedia_srtp_enum_crypto(&cnt, cryptos)); … … 2154 2155 for (unsigned i = 0; i < cnt; ++i) 2155 2156 result.push_back(pj2Str(cryptos[i].name)); 2157 #endif 2156 2158 2157 2159 return result;
Note: See TracChangeset
for help on using the changeset viewer.