[packages/pam-pam_p11] - up to 0.2.0
baggins
baggins at pld-linux.org
Sun Oct 21 15:42:29 CEST 2018
commit 4358cf88287f1b98505b49b563cdf9a02a7dea4b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Oct 21 15:42:18 2018 +0200
- up to 0.2.0
openssl-1.1.1.patch | 11 +++++++++++
pam-pam_p11.spec | 11 ++++++-----
2 files changed, 17 insertions(+), 5 deletions(-)
---
diff --git a/pam-pam_p11.spec b/pam-pam_p11.spec
index e2d1baf..2d9e0de 100644
--- a/pam-pam_p11.spec
+++ b/pam-pam_p11.spec
@@ -1,13 +1,14 @@
Summary: PAM module for using cryptographic tokens
Summary(pl.UTF-8): Moduł PAM umożliwiający używanie tokenów kryptograficznych
Name: pam-pam_p11
-Version: 0.1.6
-Release: 2
+Version: 0.2.0
+Release: 1
License: LGPL v2.1+
Group: Libraries
#Source0Download: https://github.com/OpenSC/pam_p11/releases
Source0: https://github.com/OpenSC/pam_p11/releases/download/pam_p11-%{version}/pam_p11-%{version}.tar.gz
-# Source0-md5: 2198d5451654ca5c1736343544cc78f5
+# Source0-md5: 05ca327726120bd6cd31ac298691a762
+Patch0: openssl-1.1.1.patch
URL: https://github.com/OpenSC/pam_p11
BuildRequires: libp11-devel >= 0.2.4
BuildRequires: openssl-devel >= 0.9.7d
@@ -32,6 +33,7 @@ karty procesorowe i tokeny kryptograficzne USB.
%prep
%setup -q -n pam_p11-%{version}
+%patch0 -p1
%build
%configure \
@@ -54,5 +56,4 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc NEWS
-%attr(755,root,root) /%{_lib}/security/pam_p11_opensc.so
-%attr(755,root,root) /%{_lib}/security/pam_p11_openssh.so
+%attr(755,root,root) /%{_lib}/security/pam_p11.so
diff --git a/openssl-1.1.1.patch b/openssl-1.1.1.patch
new file mode 100644
index 0000000..0c968d8
--- /dev/null
+++ b/openssl-1.1.1.patch
@@ -0,0 +1,11 @@
+--- pam_p11-0.2.0/src/pam_p11.c~ 2018-05-04 16:52:04.000000000 +0200
++++ pam_p11-0.2.0/src/pam_p11.c 2018-10-21 15:40:13.939277013 +0200
+@@ -590,7 +590,7 @@
+ || !EVP_SignInit(md_ctx, md)
+ || !EVP_SignUpdate(md_ctx, challenge, sizeof challenge)
+ || !EVP_SignFinal(md_ctx, signature, &siglen, privkey)
+- || !EVP_MD_CTX_cleanup(md_ctx)
++ || !EVP_MD_CTX_reset(md_ctx)
+ || !EVP_VerifyInit(md_ctx, md)
+ || !EVP_VerifyUpdate(md_ctx, challenge, sizeof challenge)
+ || 1 != EVP_VerifyFinal(md_ctx, signature, siglen, pubkey)) {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pam-pam_p11.git/commitdiff/4358cf88287f1b98505b49b563cdf9a02a7dea4b
More information about the pld-cvs-commit
mailing list