Most of libssh2 already has conditional support for AES-CTR according to
the LIBSSH2_AES_CTR crypto backend #define, but global.c needed fixing.
---
src/global.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/global.c b/src/global.c
index dc45e70..353ffce 100644
--- a/src/global.c
+++ b/src/global.c
@@ -46,7 +46,9 @@ libssh2_init(int flags)
{
if (_libssh2_initialized == 0 && !(flags & LIBSSH2_INIT_NO_CRYPTO)) {
libssh2_crypto_init();
+#if LIBSSH2_AES_CTR
_libssh2_init_aes_ctr();
+#endif
}
_libssh2_initialized++;
--
_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2016-10-27