From 287b21c65303209e719ca464615b1568caba1a21 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Thu, 22 Jan 2015 19:36:27 +0000 Subject: [PATCH] Fixed bug to also make it possible to use T=0 protocol cards git-svn-id: https://svn.php.net/repository/pecl/pcsc/trunk@335785 c90b9560-bf6c-de11-be94-00142212c4b1 --- CREDITS | 2 +- pcsc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CREDITS b/CREDITS index b4953c5..c5f957a 100644 --- a/CREDITS +++ b/CREDITS @@ -1,2 +1,2 @@ pcsc -Johann Dantant, Johannes Findeisen +Johann Dantant, Johannes Findeisen, Marco Schuster diff --git a/pcsc.c b/pcsc.c index 5d6f7d8..cad2008 100644 --- a/pcsc.c +++ b/pcsc.c @@ -590,7 +590,7 @@ PHP_FUNCTION(scard_list_readers) Return a handle to the card */ PHP_FUNCTION(scard_connect) { - DWORD dwPreferredProtocol = SCARD_PROTOCOL_T1; + DWORD dwPreferredProtocol = SCARD_PROTOCOL_T1|SCARD_PROTOCOL_T0; DWORD dwCurrentProtocol; SCARDHANDLE hCard = 0; LONG rc = 0;