Skip to content

Commit

Permalink
openssl: enable AES-GCM with wolfSSL
Browse files Browse the repository at this point in the history
Follow-up to 3c953c0 libssh2#797

There is pending issue with wolfSSL, where encryption/decryption is not
working (both with and without this patch). Ref: libssh2#1020

Cherry-picked from libssh2#1017
  • Loading branch information
vszakats committed May 3, 2023
1 parent 82ef896 commit df513c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/openssl.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@
# define LIBSSH2_AES_CBC 0
#endif

#if (OPENSSL_VERSION_NUMBER >= 0x01010100fL && !defined(OPENSSL_NO_AES))
#if (OPENSSL_VERSION_NUMBER >= 0x01010100fL && !defined(OPENSSL_NO_AES)) || \
(defined(LIBSSH2_WOLFSSL) && defined(HAVE_AESGCM))
# define LIBSSH2_AES_GCM 1
#else
# define LIBSSH2_AES_GCM 0
Expand Down

0 comments on commit df513c0

Please sign in to comment.