Disable pinpad by default

This commit is contained in:
Jakub Jelen 2018-10-22 14:37:49 +02:00
parent d215b3e7b6
commit 795e813a0c
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff -up opensc-0.19.0/etc/opensc.conf.pinpad opensc-0.19.0/etc/opensc.conf
--- opensc-0.19.0/etc/opensc.conf.pinpad 2018-10-22 14:31:12.082963540 +0200
+++ opensc-0.19.0/etc/opensc.conf 2018-10-22 14:33:59.939410701 +0200
@@ -4,4 +4,9 @@ app default {
framework pkcs15 {
# use_file_caching = true;
}
+ reader_driver pcsc {
+ # The pinpad is disabled by default,
+ # because of many broken readers out there
+ enable_pinpad = false;
+ }
}

View File

@ -28,6 +28,7 @@ Obsoletes: opensc-devel < 0.12.0
Obsoletes: coolkey <= 1.1.0-36 Obsoletes: coolkey <= 1.1.0-36
# https://github.com/OpenSC/OpenSC/pull/1435 # https://github.com/OpenSC/OpenSC/pull/1435
Patch2: opensc-0.19.0-rsa-pss.patch Patch2: opensc-0.19.0-rsa-pss.patch
Patch3: opensc-0.19.0-pinpad.patch
%description %description
OpenSC provides a set of libraries and utilities to work with smart cards. Its OpenSC provides a set of libraries and utilities to work with smart cards. Its
@ -42,6 +43,7 @@ every software/card that does so, too.
%prep %prep
%setup -q %setup -q
%patch2 -p1 -b .pss %patch2 -p1 -b .pss
%patch3 -p1 -b .pinpad
cp -p src/pkcs15init/README ./README.pkcs15init cp -p src/pkcs15init/README ./README.pkcs15init
cp -p src/scconf/README.scconf . cp -p src/scconf/README.scconf .