kumquat-buildroot/package/libp11/0001-Update-wp11_rsa.c.patch
Fabrice Fontaine 581d397ec0 package/libp11: fix build with libressl
Fix the following build failure with libressl:

p11_rsa.c:355:14: error: static declaration of 'RSA_meth_get_finish' follows non-static declaration
  355 | static int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa)
      |              ^~~~~~~~~~~~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/de3b1e97796f717eac47d291911e3e1517cb557b

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2022-04-04 21:47:55 +02:00

27 lines
1000 B
Diff

From 4968cfc64dbaa39bb479a24d9578d75099e2f337 Mon Sep 17 00:00:00 2001
From: patchMonkey156 <pagorman@asu.edu>
Date: Mon, 19 Oct 2020 17:12:15 -0400
Subject: [PATCH] Update p11_rsa.c
Bugfix for new LibreSSL version 3.2.2
[Retrieved from:
https://github.com/OpenSC/libp11/commit/4968cfc64dbaa39bb479a24d9578d75099e2f337]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
src/p11_rsa.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/p11_rsa.c b/src/p11_rsa.c
index b6beef0..ff12ed7 100644
--- a/src/p11_rsa.c
+++ b/src/p11_rsa.c
@@ -336,7 +336,7 @@ int pkcs11_get_key_size(PKCS11_KEY *key)
return RSA_size(rsa);
}
-#if OPENSSL_VERSION_NUMBER < 0x10100005L || defined(LIBRESSL_VERSION_NUMBER)
+#if ( ( defined (OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x10100005L ) || ( defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x3020199L ) )
int (*RSA_meth_get_priv_enc(const RSA_METHOD *meth))
(int flen, const unsigned char *from,