| 3256 | } |
| 3257 | |
| 3258 | int JLSRTP::setMasterSalt(std::vector<unsigned char> &salt, ActiveCrypto crypto_attrib /*= ACTIVE_CRYPTO*/) |
| 3259 | { |
| 3260 | int retVal = -1; |
| 3261 | ActiveCrypto active_crypto = INVALID_CRYPTO; |
| 3262 | |
| 3263 | if (crypto_attrib == ACTIVE_CRYPTO) |
| 3264 | { |
| 3265 | active_crypto = _active_crypto; |
| 3266 | } |
| 3267 | else |
| 3268 | { |
| 3269 | active_crypto = crypto_attrib; |
| 3270 | } |
| 3271 | |
| 3272 | switch (active_crypto) |
| 3273 | { |
| 3274 | case PRIMARY_CRYPTO: |
| 3275 | { |
| 3276 | _primary_crypto.master_salt = salt; |
| 3277 | retVal = 0; |
| 3278 | } |
| 3279 | break; |
| 3280 | |
| 3281 | case SECONDARY_CRYPTO: |
| 3282 | { |
| 3283 | _secondary_crypto.master_salt = salt; |
| 3284 | retVal = 0; |
| 3285 | } |
| 3286 | break; |
| 3287 | |
| 3288 | default: |
| 3289 | { |
| 3290 | retVal = -1; |
| 3291 | } |
| 3292 | break; |
| 3293 | } |
| 3294 | |
| 3295 | return retVal; |
| 3296 | } |
| 3297 | |
| 3298 | int JLSRTP::swapCrypto() |
| 3299 | { |
nothing calls this directly
no outgoing calls
no test coverage detected