diff options
| -rw-r--r-- | meta-oe/recipes-crypto/pkcs11-helper/pkcs11-helper/0001-build-openssl-remove-RSA_SSLV23_PADDING-constant-usa.patch | 27 | ||||
| -rw-r--r-- | meta-oe/recipes-crypto/pkcs11-helper/pkcs11-helper/0001-nss-use-nss-pkcs11-h.patch | 61 | ||||
| -rw-r--r-- | meta-oe/recipes-crypto/pkcs11-helper/pkcs11-helper_1.28.bb (renamed from meta-oe/recipes-crypto/pkcs11-helper/pkcs11-helper_1.27.bb) | 7 |
3 files changed, 2 insertions, 93 deletions
diff --git a/meta-oe/recipes-crypto/pkcs11-helper/pkcs11-helper/0001-build-openssl-remove-RSA_SSLV23_PADDING-constant-usa.patch b/meta-oe/recipes-crypto/pkcs11-helper/pkcs11-helper/0001-build-openssl-remove-RSA_SSLV23_PADDING-constant-usa.patch deleted file mode 100644 index f2baae9149..0000000000 --- a/meta-oe/recipes-crypto/pkcs11-helper/pkcs11-helper/0001-build-openssl-remove-RSA_SSLV23_PADDING-constant-usa.patch +++ /dev/null | |||
| @@ -1,27 +0,0 @@ | |||
| 1 | From 5b9a8da964ee0b998955cd986000cfa27cfa698d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alon Bar-Lev <alon.barlev@gmail.com> | ||
| 3 | Date: Wed, 4 Aug 2021 19:02:34 +0300 | ||
| 4 | Subject: [PATCH] build: openssl: remove RSA_SSLV23_PADDING constant usage | ||
| 5 | |||
| 6 | Due to openssl-3 compatibility, thanks to t0b3 | ||
| 7 | |||
| 8 | Upstream-Status: Backport | ||
| 9 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
| 10 | --- | ||
| 11 | lib/pkcs11h-openssl.c | 3 --- | ||
| 12 | 1 file changed, 3 deletions(-) | ||
| 13 | |||
| 14 | diff --git a/lib/pkcs11h-openssl.c b/lib/pkcs11h-openssl.c | ||
| 15 | index 9c9b2cd..85c8193 100644 | ||
| 16 | --- a/lib/pkcs11h-openssl.c | ||
| 17 | +++ b/lib/pkcs11h-openssl.c | ||
| 18 | @@ -474,9 +474,6 @@ __pkcs11h_openssl_rsa_dec ( | ||
| 19 | case RSA_PKCS1_OAEP_PADDING: | ||
| 20 | mech = CKM_RSA_PKCS_OAEP; | ||
| 21 | break; | ||
| 22 | - case RSA_SSLV23_PADDING: | ||
| 23 | - rv = CKR_MECHANISM_INVALID; | ||
| 24 | - break; | ||
| 25 | case RSA_NO_PADDING: | ||
| 26 | mech = CKM_RSA_X_509; | ||
| 27 | break; | ||
diff --git a/meta-oe/recipes-crypto/pkcs11-helper/pkcs11-helper/0001-nss-use-nss-pkcs11-h.patch b/meta-oe/recipes-crypto/pkcs11-helper/pkcs11-helper/0001-nss-use-nss-pkcs11-h.patch deleted file mode 100644 index 3070fc41a0..0000000000 --- a/meta-oe/recipes-crypto/pkcs11-helper/pkcs11-helper/0001-nss-use-nss-pkcs11-h.patch +++ /dev/null | |||
| @@ -1,61 +0,0 @@ | |||
| 1 | From 083a3a62f2e631deec2fb2799d10660a41c50294 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alon Bar-Lev <alon.barlev@gmail.com> | ||
| 3 | Date: Fri, 30 Jul 2021 20:06:36 +0300 | ||
| 4 | Subject: [PATCH] nss: use nss pkcs11.h | ||
| 5 | |||
| 6 | make nss happy with its own extensions and non-standard behavior. | ||
| 7 | |||
| 8 | Taken from Archlinux [1] | ||
| 9 | |||
| 10 | [1] https://github.com/archlinux/svntogit-packages/commit/238f5e90946f527b2d4a507e02c30e977db38a97 | ||
| 11 | |||
| 12 | Upstream-Status: Pending | ||
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 14 | --- | ||
| 15 | lib/_pkcs11h-crypto-nss.c | 14 ++++++++++---- | ||
| 16 | lib/common.h | 7 +++++++ | ||
| 17 | 2 files changed, 17 insertions(+), 4 deletions(-) | ||
| 18 | |||
| 19 | --- a/lib/_pkcs11h-crypto-nss.c | ||
| 20 | +++ b/lib/_pkcs11h-crypto-nss.c | ||
| 21 | @@ -48,15 +48,21 @@ | ||
| 22 | * POSSIBILITY OF SUCH DAMAGE. | ||
| 23 | */ | ||
| 24 | |||
| 25 | -#include "common.h" | ||
| 26 | - | ||
| 27 | -#include "_pkcs11h-crypto.h" | ||
| 28 | +#ifdef HAVE_CONFIG_H | ||
| 29 | +#include <config.h> | ||
| 30 | +#endif | ||
| 31 | |||
| 32 | #if defined(ENABLE_PKCS11H_ENGINE_NSS) | ||
| 33 | -#define _PKCS11T_H_ /* required so no conflict with ours */ | ||
| 34 | #include <nss.h> | ||
| 35 | #include <cert.h> | ||
| 36 | |||
| 37 | +/* Use PKCS#11 of nss to avoid conflicts and make nss happy with its own extensions */ | ||
| 38 | +#define PKCS11_H 1 | ||
| 39 | + | ||
| 40 | +#include "common.h" | ||
| 41 | + | ||
| 42 | +#include "_pkcs11h-crypto.h" | ||
| 43 | + | ||
| 44 | static | ||
| 45 | int | ||
| 46 | __pkcs11h_crypto_nss_initialize ( | ||
| 47 | --- a/lib/common.h | ||
| 48 | +++ b/lib/common.h | ||
| 49 | @@ -72,5 +72,12 @@ | ||
| 50 | |||
| 51 | #define _PKCS11H_ASSERT assert | ||
| 52 | |||
| 53 | +#ifndef FALSE | ||
| 54 | +#define FALSE 0 | ||
| 55 | +#endif | ||
| 56 | +#ifndef TRUE | ||
| 57 | +#define TRUE 1 | ||
| 58 | +#endif | ||
| 59 | + | ||
| 60 | #endif | ||
| 61 | |||
diff --git a/meta-oe/recipes-crypto/pkcs11-helper/pkcs11-helper_1.27.bb b/meta-oe/recipes-crypto/pkcs11-helper/pkcs11-helper_1.28.bb index 389d1bc7bb..afad03c9a6 100644 --- a/meta-oe/recipes-crypto/pkcs11-helper/pkcs11-helper_1.27.bb +++ b/meta-oe/recipes-crypto/pkcs11-helper/pkcs11-helper_1.28.bb | |||
| @@ -15,14 +15,11 @@ LIC_FILES_CHKSUM = " \ | |||
| 15 | file://COPYING.GPL;md5=8a71d0475d08eee76d8b6d0c6dbec543 \ | 15 | file://COPYING.GPL;md5=8a71d0475d08eee76d8b6d0c6dbec543 \ |
| 16 | file://COPYING.BSD;md5=66b7a37c3c10483c1fd86007726104d7 \ | 16 | file://COPYING.BSD;md5=66b7a37c3c10483c1fd86007726104d7 \ |
| 17 | " | 17 | " |
| 18 | SRC_URI = "git://github.com/OpenSC/${BPN}.git;branch=master;protocol=https \ | 18 | SRC_URI = "git://github.com/OpenSC/${BPN}.git;branch=master;protocol=https" |
| 19 | file://0001-build-openssl-remove-RSA_SSLV23_PADDING-constant-usa.patch \ | ||
| 20 | file://0001-nss-use-nss-pkcs11-h.patch \ | ||
| 21 | " | ||
| 22 | 19 | ||
| 23 | S = "${WORKDIR}/git" | 20 | S = "${WORKDIR}/git" |
| 24 | # v1.27 | 21 | # v1.27 |
| 25 | SRCREV = "564a582d600c7eec7b8e303a22b575fd52622174" | 22 | SRCREV = "a4b46d545c33459610d4b4ae85a43a76e03a8c5e" |
| 26 | 23 | ||
| 27 | UPSTREAM_CHECK_GITTAGREGEX = "pkcs11-helper-(?P<pver>\d+(\.\d+)+)" | 24 | UPSTREAM_CHECK_GITTAGREGEX = "pkcs11-helper-(?P<pver>\d+(\.\d+)+)" |
| 28 | 25 | ||
