| 1643 | } |
| 1644 | |
| 1645 | int JLSRTP::selectEncryptionKey() |
| 1646 | { |
| 1647 | int rc = 0; |
| 1648 | |
| 1649 | assert(!_session_enc_key.empty()); |
| 1650 | if (!_session_enc_key.empty()) |
| 1651 | { |
| 1652 | rc = setAESSessionEncryptionKey(); |
| 1653 | if (rc == 0) |
| 1654 | { |
| 1655 | return 0; |
| 1656 | } |
| 1657 | |
| 1658 | return -2; |
| 1659 | } |
| 1660 | else |
| 1661 | { |
| 1662 | return -1; |
| 1663 | } |
| 1664 | } |
| 1665 | |
| 1666 | int JLSRTP::selectDecryptionKey() |
| 1667 | { |