support clang

This commit is contained in:
Shencb@123 2024-08-29 11:07:26 +08:00
parent 555ad0ca7e
commit 5ded3384ac
2 changed files with 38 additions and 2 deletions

33
0001-pkcs.patch Normal file
View File

@ -0,0 +1,33 @@
From d6ee1213730693afdf576297f99bc8cd0208098a Mon Sep 17 00:00:00 2001
From: "Shencb@123" <1944340417@qq.com>
Date: Mon, 26 Aug 2024 22:06:28 +0800
Subject: [PATCH] modify perl-libxml-mm.c
---
lib/pkcs11h-openssl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/pkcs11h-openssl.c b/lib/pkcs11h-openssl.c
index 961c955..5443580 100644
--- a/lib/pkcs11h-openssl.c
+++ b/lib/pkcs11h-openssl.c
@@ -336,7 +336,7 @@ int
__pkcs11h_openssl_ex_data_dup (
CRYPTO_EX_DATA *to,
CRYPTO_EX_DATA *from,
- void *from_d,
+ void **from_d,
int idx,
long argl,
void *argp
@@ -346,7 +346,7 @@ int
__pkcs11h_openssl_ex_data_dup (
CRYPTO_EX_DATA *to,
const CRYPTO_EX_DATA *from,
- void *from_d,
+ void **from_d,
int idx,
long argl,
void *argp
--
2.45.2.windows.1

View File

@ -1,13 +1,13 @@
Name: pkcs11-helper
Version: 1.29.0
Release: 1
Release: 2
Summary: A library that simplifies the interaction with PKCS#11 providers
License: BSD and GPLv2
URL: https://github.com/OpenSC/OpenSC/wiki
Source0: https://github.com/OpenSC/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
Patch1: pkcs11-helper-rfc7512.patch
Patch2:0001-pkcs.patch
BuildRequires: gcc openssl-devel doxygen
%description
@ -65,6 +65,9 @@ This package contains the development files for %{name}.
%{_mandir}/man8/*
%changelog
* Tue Aug 27 2024 shenchenbang <1944340417@qq.com> - 1.29.0-2
- Fix incorrect function definition
* Thu Feb 09 2023 yaoxin <yaoxin30@h-partners.com> - 1.29.0-1
- Update to 1.29.0