Changeset 5755 for pjproject/trunk/pjmedia/include/pjmedia/transport_srtp.h
- Timestamp:
- Mar 15, 2018 3:00:59 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/transport_srtp.h
r5621 r5755 191 191 192 192 /** 193 * Specify the number of crypto suite settings. 193 * Specify the number of crypto suite settings. If set to zero, all 194 * available cryptos will be enabled. Default: zero. 194 195 */ 195 196 unsigned crypto_count; 196 197 197 198 /** 198 * Specify individual crypto suite setting. 199 * Specify individual crypto suite setting and its priority order. 200 * 199 201 * Notes for DTLS-SRTP keying: 200 202 * - Currently only supports these cryptos: AES_CM_128_HMAC_SHA1_80, … … 205 207 206 208 /** 207 * Specify the number of enabled keying methods. 208 * Default is PJMEDIA_SRTP_MAX_KEYINGS (all enabled). 209 * Specify the number of enabled keying methods. If set to zero, all 210 * keyings will be enabled. Maximum value is PJMEDIA_SRTP_MAX_KEYINGS. 211 * 212 * Default is zero (all keyings are enabled with priority order: 213 * SDES, DTLS-SRTP). 209 214 */ 210 215 unsigned keying_count; … … 215 220 * for example as currently only one keying is supported in the SDP offer, 216 221 * keying with first priority will be likely used in the SDP offer. 217 *218 * Default is that all supported keying methods (i.e: currently SDES and219 * DTLS-SRTP) will be enabled and with priority order: SDES, DTLS-SRTP.220 222 */ 221 223 pjmedia_srtp_keying_method keying[PJMEDIA_SRTP_KEYINGS_COUNT]; … … 321 323 */ 322 324 PJ_DECL(void) pjmedia_srtp_setting_default(pjmedia_srtp_setting *opt); 325 326 327 /** 328 * Enumerate available SRTP crypto name. 329 * 330 * @param count On input, specifies the maximum length of crypto 331 * array. On output, the number of available crypto 332 * initialized by this function. 333 * @param crypto The SRTP crypto array output. 334 * 335 * @return PJ_SUCCESS on success. 336 */ 337 PJ_DECL(pj_status_t) pjmedia_srtp_enum_crypto(unsigned *count, 338 pjmedia_srtp_crypto crypto[]); 339 340 341 /** 342 * Enumerate available SRTP keying methods. 343 * 344 * @param count On input, specifies the maximum length of keying method 345 * array. On output, the number of available keying method 346 * initialized by this function. 347 * @param crypto The SRTP keying method array output. 348 * 349 * @return PJ_SUCCESS on success. 350 */ 351 PJ_DECL(pj_status_t) pjmedia_srtp_enum_keying(unsigned *count, 352 pjmedia_srtp_keying_method keying[]); 323 353 324 354
Note: See TracChangeset
for help on using the changeset viewer.