diff options
author | Hans Nilsson <[email protected]> | 2018-09-12 13:40:10 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2018-09-12 13:44:31 +0200 |
commit | 304f75806ce1a2462948fc6da22b89256a501ce0 (patch) | |
tree | 6563ba2cb2bd207e486f7a6406ae8c08f7a04a72 /lib/crypto/c_src/crypto.c | |
parent | 99818214c45ebbe9e7a20f739ab1f9e801d61d98 (diff) | |
download | otp-304f75806ce1a2462948fc6da22b89256a501ce0.tar.gz otp-304f75806ce1a2462948fc6da22b89256a501ce0.tar.bz2 otp-304f75806ce1a2462948fc6da22b89256a501ce0.zip |
crypto: sha3_224 and sha3_256 errors fixed
Diffstat (limited to 'lib/crypto/c_src/crypto.c')
-rw-r--r-- | lib/crypto/c_src/crypto.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/crypto/c_src/crypto.c b/lib/crypto/c_src/crypto.c index 5ee7961fd5..ba50dd4a53 100644 --- a/lib/crypto/c_src/crypto.c +++ b/lib/crypto/c_src/crypto.c @@ -149,12 +149,15 @@ #endif // SHA3: +#if OPENSSL_VERSION_NUMBER >= PACKED_OPENSSL_VERSION_PLAIN(1,1,1) +// An error in beta releases of 1.1.1 fixed in production release # ifdef NID_sha3_224 -//Error # define HAVE_SHA3_224 +# define HAVE_SHA3_224 # endif # ifdef NID_sha3_256 -//Error # define HAVE_SHA3_256 +# define HAVE_SHA3_256 # endif +#endif # ifdef NID_sha3_384 # define HAVE_SHA3_384 # endif |