| 1664 | } |
| 1665 | |
| 1666 | int JLSRTP::selectDecryptionKey() |
| 1667 | { |
| 1668 | int rc = 0; |
| 1669 | |
| 1670 | assert(!_session_enc_key.empty()); |
| 1671 | if (!_session_enc_key.empty()) |
| 1672 | { |
| 1673 | rc = setAESSessionEncryptionKey(); |
| 1674 | if (rc == 0) |
| 1675 | { |
| 1676 | return 0; |
| 1677 | } |
| 1678 | |
| 1679 | return -2; |
| 1680 | } |
| 1681 | else |
| 1682 | { |
| 1683 | return -1; |
| 1684 | } |
| 1685 | } |
| 1686 | |
| 1687 | CipherType JLSRTP::getCipherAlgorithm(ActiveCrypto crypto_attrib /*= ACTIVE_CRYPTO*/) |
| 1688 | { |