aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2018-09-13 11:41:35 +0200
committerHans Nilsson <[email protected]>2018-09-14 11:58:39 +0200
commit94d4676a7f73cb948d3baa617d1f8fcd8ee5aec2 (patch)
tree6e4427b01bcbf47b6ac1b8baa26d2254873180fd /lib/crypto/c_src
parent35eac8acb8c47416a0fde79280a2fef60bc9339e (diff)
downloadotp-94d4676a7f73cb948d3baa617d1f8fcd8ee5aec2.tar.gz
otp-94d4676a7f73cb948d3baa617d1f8fcd8ee5aec2.tar.bz2
otp-94d4676a7f73cb948d3baa617d1f8fcd8ee5aec2.zip
crypto: Add forgotten #ifdef
MAY prevent compilation errors if the symbol is configured to not be defined in an OpenSSL version where it exists by default.
Diffstat (limited to 'lib/crypto/c_src')
-rw-r--r--lib/crypto/c_src/crypto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/crypto/c_src/crypto.c b/lib/crypto/c_src/crypto.c
index 592027d946..3939a6f309 100644
--- a/lib/crypto/c_src/crypto.c
+++ b/lib/crypto/c_src/crypto.c
@@ -4707,6 +4707,7 @@ printf("\r\n");
if (argv[0] == atom_rsa) {
if (EVP_PKEY_CTX_set_rsa_padding(ctx, sig_opt.rsa_padding) <= 0) goto badarg;
+#ifdef HAVE_RSA_PKCS1_PSS_PADDING
if (sig_opt.rsa_padding == RSA_PKCS1_PSS_PADDING) {
if (sig_opt.rsa_mgf1_md != NULL) {
#if OPENSSL_VERSION_NUMBER >= PACKED_OPENSSL_VERSION_PLAIN(1,0,1)
@@ -4721,6 +4722,7 @@ printf("\r\n");
&& EVP_PKEY_CTX_set_rsa_pss_saltlen(ctx, sig_opt.rsa_pss_saltlen) <= 0)
goto badarg;
}
+#endif
}
if (EVP_PKEY_sign(ctx, NULL, &siglen, tbs, tbslen) <= 0) goto badarg;