aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorXiang Xiao <xiaoxiang781216@gmail.com>2021-05-09 07:47:58 -0700
committerJakub Jelen <jjelen@redhat.com>2021-05-10 12:17:17 +0200
commit053ed5bd91fe8b181cdc304b0b11c7f4e4ba2e9e (patch)
tree7b1c76378fc8399cfbe2ef5f42a051dc860da21a /include
parentb59184fc8917d76b92de39b650e8ef055b522075 (diff)
downloadlibssh-053ed5bd91fe8b181cdc304b0b11c7f4e4ba2e9e.tar.gz
libssh-053ed5bd91fe8b181cdc304b0b11c7f4e4ba2e9e.tar.xz
libssh-053ed5bd91fe8b181cdc304b0b11c7f4e4ba2e9e.zip
packet: Change the last argument of ssh_packet_encrypt to uint32_t
to match the implemntation in packet_crypt.c Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Sahana Prasad <sahana@redhat.com> Change-Id: Ib76c3585f67dae22ed0f1dfc10dadcd03c762032
Diffstat (limited to 'include')
-rw-r--r--include/libssh/packet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libssh/packet.h b/include/libssh/packet.h
index 8fc7ce42..561bba8e 100644
--- a/include/libssh/packet.h
+++ b/include/libssh/packet.h
@@ -80,7 +80,7 @@ int ssh_packet_decrypt(ssh_session session, uint8_t *destination, uint8_t *sourc
size_t start, size_t encrypted_size);
unsigned char *ssh_packet_encrypt(ssh_session session,
void *packet,
- unsigned int len);
+ uint32_t len);
int ssh_packet_hmac_verify(ssh_session session, const void *data, size_t len,
unsigned char *mac, enum ssh_hmac_e type);
int ssh_packet_set_newkeys(ssh_session session,