Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Ismael Luceno (04b4812523b65b38b7ae26bdb7301df556d2d6ad)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Ismael Luceno (04b4812523b65b38b7ae26bdb7301df556d2d6ad)
  • Date: Tue, 15 Aug 2023 13:56:13 +0000

GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:

crypto/opensc/HISTORY |
4 +
crypto/opensc/PRE_BUILD |
3 +
crypto/opensc/patches/0001-fixed-compatibility-with-LibreSSL-3.7.0.patch |
28 ++++++++++
3 files changed, 35 insertions(+)

New commits:
commit 04b4812523b65b38b7ae26bdb7301df556d2d6ad
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

opensc: Fix build against LibreSSL 3.7+

diff --git a/crypto/opensc/HISTORY b/crypto/opensc/HISTORY
index 2bd1a6d..e87e96b 100644
--- a/crypto/opensc/HISTORY
+++ b/crypto/opensc/HISTORY
@@ -1,3 +1,7 @@
+2023-08-15 Ismael Luceno <ismael AT sourcemage.org>
+ * PRE_BUILD, 0001-fixed-compatibility-with-LibreSSL-3.7.0.patch:
+ fixed build against libressl 3.7+
+
2023-08-01 Ismael Luceno <ismael AT sourcemage.org>
* DETAILS: updated spell to 0.23.0

diff --git a/crypto/opensc/PRE_BUILD b/crypto/opensc/PRE_BUILD
new file mode 100755
index 0000000..c230ad1
--- /dev/null
+++ b/crypto/opensc/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+apply_patch_dir patches
diff --git
a/crypto/opensc/patches/0001-fixed-compatibility-with-LibreSSL-3.7.0.patch
b/crypto/opensc/patches/0001-fixed-compatibility-with-LibreSSL-3.7.0.patch
new file mode 100644
index 0000000..f192cc1
--- /dev/null
+++ b/crypto/opensc/patches/0001-fixed-compatibility-with-LibreSSL-3.7.0.patch
@@ -0,0 +1,28 @@
+From 8d80c2b7902445399f011b3f430095c74da0e39f Mon Sep 17 00:00:00 2001
+From: Frank Morgner <frankmorgner AT gmail.com>
+Date: Fri, 16 Dec 2022 11:56:28 +0100
+Subject: [PATCH] fixed compatibility with LibreSSL 3.7.0
+
+Origin: Upstream
+Upstream-Status: Backport [https://github.com/OpenSC/OpenSC/pull/2665/]
+Signed-off-by: Ismael Luceno <ismael AT sourcemage.org>
+---
+ src/libopensc/sc-ossl-compat.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/libopensc/sc-ossl-compat.h b/src/libopensc/sc-ossl-compat.h
+index 8c0f96701c..4425da93f3 100644
+--- a/src/libopensc/sc-ossl-compat.h
++++ b/src/libopensc/sc-ossl-compat.h
+@@ -54,9 +54,11 @@ extern "C" {
+ #define EVP_sha3_256() (NULL)
+ #define EVP_sha3_384() (NULL)
+ #define EVP_sha3_512() (NULL)
++#if LIBRESSL_VERSION_NUMBER < 0x3070000fL
+ #define EVP_PKEY_new_raw_public_key(t, e, p, l) (NULL)
+ #define EVP_PKEY_get_raw_public_key(p, pu, l) (0)
+ #endif
++#endif
+
+ /* OpenSSL 1.1.1 has FIPS_mode function */
+ #if OPENSSL_VERSION_NUMBER >= 0x30000000L



  • [SM-Commit] GIT changes to master grimoire by Ismael Luceno (04b4812523b65b38b7ae26bdb7301df556d2d6ad), Ismael Luceno, 08/15/2023

Archive powered by MHonArc 2.6.24.

Top of Page