You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pkcs11-helper/SOURCES/pkcs11-helper-openssl3.patch

25 lines
739 B

From 086d551251cebb67cd74ab2e735427969bbf215f Mon Sep 17 00:00:00 2001
From: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Wed, 4 Aug 2021 19:02:34 +0300
Subject: [PATCH] build: openssl: remove RSA_SSLV23_PADDING constant usage
Due to openssl-3 compatibility, thanks to t0b3
---
lib/pkcs11h-openssl.c | 3 ---
1 files changed, 3 deletions(-)
diff --git a/lib/pkcs11h-openssl.c b/lib/pkcs11h-openssl.c
index dfb00136..78bb7fc1 100644
--- a/lib/pkcs11h-openssl.c
+++ b/lib/pkcs11h-openssl.c
@@ -474,9 +474,6 @@ __pkcs11h_openssl_rsa_dec (
case RSA_PKCS1_OAEP_PADDING:
mech = CKM_RSA_PKCS_OAEP;
break;
- case RSA_SSLV23_PADDING:
- rv = CKR_MECHANISM_INVALID;
- break;
case RSA_NO_PADDING:
mech = CKM_RSA_X_509;
break;