MCPcopy Create free account
hub / github.com/SIPp/sipp / selectActiveCrypto

Method selectActiveCrypto

src/jlsrtp.cpp:3365–3394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3363}
3364
3365int JLSRTP::selectActiveCrypto(ActiveCrypto activeCrypto)
3366{
3367 int retVal = -1;
3368
3369 switch (activeCrypto)
3370 {
3371 case PRIMARY_CRYPTO:
3372 {
3373 _active_crypto = activeCrypto;
3374 retVal = 0;
3375 }
3376 break;
3377
3378 case SECONDARY_CRYPTO:
3379 {
3380 _active_crypto = activeCrypto;
3381 retVal = 0;
3382 }
3383 break;
3384
3385 default:
3386 {
3387 _active_crypto = INVALID_CRYPTO;
3388 retVal = -1;
3389 }
3390 break;
3391 }
3392
3393 return retVal;
3394}
3395
3396ActiveCrypto JLSRTP::getActiveCrypto()
3397{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected