summaryrefslogtreecommitdiff
path: root/libs/libssh2/src/mac.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libssh2/src/mac.h')
-rw-r--r--libs/libssh2/src/mac.h13
1 files changed, 9 insertions, 4 deletions
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 */