mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-29 13:01:13 +03:00
packet: Provide a function to switch crypto in separate directions
This also fixes the test using the crypto directly Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Daiki Ueno <dueno@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
8e0c047031
commit
c86a00d06b
@ -102,6 +102,7 @@ torture_packet(const char *cipher, const char *mac_type,
|
||||
rc = out_cipher->set_encrypt_key(out_cipher,
|
||||
session->current_crypto->encryptkey,
|
||||
session->current_crypto->encryptIV);
|
||||
session->current_crypto->used = SSH_DIRECTION_BOTH;
|
||||
assert_int_equal(rc, SSH_OK);
|
||||
|
||||
assert_non_null(session->out_buffer);
|
||||
|
Reference in New Issue
Block a user