summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSverker Eriksson <sverker@erlang.org>2023-04-25 17:26:28 +0200
committerSverker Eriksson <sverker@erlang.org>2023-04-25 17:26:28 +0200
commit814eddd514c69ad87c89cf303e5a4ec41663c882 (patch)
tree9ea2317c3c922b30fb909c75867fb4385becade1
parent5400ccf243a31d664153a4b9ceb9de3edfce1e0e (diff)
downloaderlang-814eddd514c69ad87c89cf303e5a4ec41663c882.tar.gz
crypto: Fix cmac_update aes_128_cbc for LibreSSL
-rw-r--r--lib/crypto/c_src/openssl_config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/crypto/c_src/openssl_config.h b/lib/crypto/c_src/openssl_config.h
index 647ab25ad4..454902f266 100644
--- a/lib/crypto/c_src/openssl_config.h
+++ b/lib/crypto/c_src/openssl_config.h
@@ -127,6 +127,15 @@
# define HAS_EVP_PKEY_CTX
# define HAVE_EVP_CIPHER_CTX_COPY
# endif
+# if LIBRESSL_VERSION_NUMBER >= 0x3070200fL
+# define HAVE_PKEY_new_raw_private_key
+# endif
+# if LIBRESSL_VERSION_NUMBER >= 0x3030300fL
+# define HAVE_EVP_PKEY_new_CMAC_key
+# endif
+# if LIBRESSL_VERSION_NUMBER >= 0x3040100fL
+# define HAVE_DigestSign_as_single_op
+# endif
#endif
#if defined(HAS_EVP_PKEY_CTX) \