summaryrefslogtreecommitdiffstats
path: root/scd/pcsc-wrapper.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2005-09-05 16:36:36 +0200
committerWerner Koch <wk@gnupg.org>2005-09-05 16:36:36 +0200
commit1b2f7cbe3ba731c5d94990b3f019b8c0bf641372 (patch)
tree5e09a115940b2dcde6a1f340619551f7bf9c9938 /scd/pcsc-wrapper.c
parentUse a default argument for --write-env-file. (diff)
downloadgnupg2-1b2f7cbe3ba731c5d94990b3f019b8c0bf641372.tar.xz
gnupg2-1b2f7cbe3ba731c5d94990b3f019b8c0bf641372.zip
Basically made Belgian EID cards work.
Signature creation has not yet been tested. Also other changes to better cope with T=0 cards.
Diffstat (limited to '')
-rw-r--r--scd/pcsc-wrapper.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/scd/pcsc-wrapper.c b/scd/pcsc-wrapper.c
index 21af16fba..f149e785a 100644
--- a/scd/pcsc-wrapper.c
+++ b/scd/pcsc-wrapper.c
@@ -15,7 +15,8 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+ * USA.
*/
/*
@@ -587,6 +588,11 @@ handle_status (unsigned char *argbuf, size_t arglen)
buf[5] = (rdrstates[0].event_state >> 16);
buf[6] = (rdrstates[0].event_state >> 8);
buf[7] = (rdrstates[0].event_state >> 0);
+ /* The third word is the protocol. */
+ buf[8] = (pcsc_protocol >> 24);
+ buf[9] = (pcsc_protocol >> 16);
+ buf[10] = (pcsc_protocol >> 8);
+ buf[11] = (pcsc_protocol);
request_succeeded (buf, 8);
}