From 927f00cc19b7239a1fe12abe30b472d61b753d8d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 9 Jun 2023 21:40:16 +0300 Subject: fixes #3551 (Update libssh2 to 1.11.0) --- libs/libssh2/src/mac.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'libs/libssh2/src/mac.h') diff --git a/libs/libssh2/src/mac.h b/libs/libssh2/src/mac.h index 66d3e61011..696f835aa6 100644 --- a/libs/libssh2/src/mac.h +++ b/libs/libssh2/src/mac.h @@ -1,7 +1,7 @@ #ifndef __LIBSSH2_MAC_H #define __LIBSSH2_MAC_H - -/* Copyright (C) 2009-2010 by Daniel Stenberg +/* Copyright (C) Daniel Stenberg + * All rights reserved. * * Redistribution and use in source and binary forms, * with or without modification, are permitted provided @@ -36,6 +36,7 @@ * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY * OF SUCH DAMAGE. * + * SPDX-License-Identifier: BSD-3-Clause */ #include "libssh2_priv.h" @@ -55,13 +56,17 @@ struct _LIBSSH2_MAC_METHOD void **abstract); int (*hash) (LIBSSH2_SESSION * session, unsigned char *buf, uint32_t seqno, const unsigned char *packet, - uint32_t packet_len, const unsigned char *addtl, - uint32_t addtl_len, void **abstract); + size_t packet_len, const unsigned char *addtl, + size_t addtl_len, void **abstract); int (*dtor) (LIBSSH2_SESSION * session, void **abstract); + + int etm; /* encrypt-then-mac */ }; typedef struct _LIBSSH2_MAC_METHOD LIBSSH2_MAC_METHOD; const LIBSSH2_MAC_METHOD **_libssh2_mac_methods(void); +const LIBSSH2_MAC_METHOD *_libssh2_mac_override( + const LIBSSH2_CRYPT_METHOD *crypt); #endif /* __LIBSSH2_MAC_H */ -- cgit v1.2.3