aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2018-11-22 16:01:56 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-01-09 10:31:45 +0100
commitc86a00d06b732c57153bdd5677a5d77f7f1be0a9 (patch)
tree45f849845429ea810eb8e600896383454956eae9 /include
parent8e0c047031d69bdf882f550886e3dd43afd8db05 (diff)
downloadlibssh-c86a00d06b732c57153bdd5677a5d77f7f1be0a9.tar.gz
libssh-c86a00d06b732c57153bdd5677a5d77f7f1be0a9.tar.xz
libssh-c86a00d06b732c57153bdd5677a5d77f7f1be0a9.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/libssh/packet.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libssh/packet.h b/include/libssh/packet.h
index 6334111b..2328cc5b 100644
--- a/include/libssh/packet.h
+++ b/include/libssh/packet.h
@@ -83,6 +83,8 @@ unsigned char *ssh_packet_encrypt(ssh_session session,
unsigned int len);
int ssh_packet_hmac_verify(ssh_session session,ssh_buffer buffer,
unsigned char *mac, enum ssh_hmac_e type);
+int ssh_packet_set_newkeys(ssh_session session,
+ enum ssh_crypto_direction_e direction);
struct ssh_crypto_struct *ssh_packet_get_current_crypto(ssh_session session,
enum ssh_crypto_direction_e direction);