summaryrefslogtreecommitdiff
path: root/package/strongswan/patches/patch-src_libstrongswan_plugins_openssl_openssl_rsa_private_key_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2022-03-21 17:58:16 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2022-03-21 20:11:16 +0100
commit7b6d51bed2af151260f2a9a1d20446bb8f4b737d (patch)
treeec732451a4614a27dca5c745dfb594340b149258 /package/strongswan/patches/patch-src_libstrongswan_plugins_openssl_openssl_rsa_private_key_c
parentf715dd8d406a8d16ee4f0cb570003b47acc3ea5b (diff)
strongswan: update to 5.9.5
Diffstat (limited to 'package/strongswan/patches/patch-src_libstrongswan_plugins_openssl_openssl_rsa_private_key_c')
-rw-r--r--package/strongswan/patches/patch-src_libstrongswan_plugins_openssl_openssl_rsa_private_key_c11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/strongswan/patches/patch-src_libstrongswan_plugins_openssl_openssl_rsa_private_key_c b/package/strongswan/patches/patch-src_libstrongswan_plugins_openssl_openssl_rsa_private_key_c
new file mode 100644
index 000000000..1e459f0ef
--- /dev/null
+++ b/package/strongswan/patches/patch-src_libstrongswan_plugins_openssl_openssl_rsa_private_key_c
@@ -0,0 +1,11 @@
+--- strongswan-5.9.5.orig/src/libstrongswan/plugins/openssl/openssl_rsa_private_key.c 2021-12-29 12:08:27.000000000 +0100
++++ strongswan-5.9.5/src/libstrongswan/plugins/openssl/openssl_rsa_private_key.c 2022-03-21 16:48:57.605794714 +0100
+@@ -280,7 +280,7 @@ METHOD(private_key_t, sign, bool,
+ return build_emsa_pkcs1_signature(this, NID_sha384, data, signature);
+ case SIGN_RSA_EMSA_PKCS1_SHA2_512:
+ return build_emsa_pkcs1_signature(this, NID_sha512, data, signature);
+-#if OPENSSL_VERSION_NUMBER >= 0x1010100fL && !defined(OPENSSL_NO_SHA3)
++#if OPENSSL_VERSION_NUMBER >= 0x1010100fL && !defined(OPENSSL_NO_SHA3) && !defined(LIBRESSL_VERSION_NUMBER)
+ case SIGN_RSA_EMSA_PKCS1_SHA3_224:
+ return build_emsa_pkcs1_signature(this, NID_sha3_224, data, signature);
+ case SIGN_RSA_EMSA_PKCS1_SHA3_256: