[svn] GnuPG - r4293 - trunk/agent

svn author wk cvs at cvs.gnupg.org
Fri Oct 6 13:06:15 CEST 2006


Author: wk
Date: 2006-10-06 13:06:15 +0200 (Fri, 06 Oct 2006)
New Revision: 4293

Modified:
   trunk/agent/ChangeLog
   trunk/agent/divert-scd.c
Log:
Make it also work for the card.


Modified: trunk/agent/ChangeLog
===================================================================
--- trunk/agent/ChangeLog	2006-10-06 10:58:18 UTC (rev 4292)
+++ trunk/agent/ChangeLog	2006-10-06 11:06:15 UTC (rev 4293)
@@ -1,3 +1,7 @@
+2006-10-06  Werner Koch  <wk at g10code.com>
+
+	* divert-scd.c (divert_pksign): Use PKAUTH for the TLS algo.
+
 2006-10-05  Werner Koch  <wk at g10code.com>
 
 	* command.c (has_option_name): New.

Modified: trunk/agent/divert-scd.c
===================================================================
--- trunk/agent/divert-scd.c	2006-10-06 10:58:18 UTC (rev 4292)
+++ trunk/agent/divert-scd.c	2006-10-06 11:06:15 UTC (rev 4293)
@@ -326,8 +326,11 @@
 
   if (algo == GCRY_MD_USER_TLS_MD5SHA1)
     {
+      int save = ctrl->use_auth_call;
+      ctrl->use_auth_call = 1;
       rc = agent_card_pksign (ctrl, kid, getpin_cb, ctrl,
                               digest, digestlen, &sigval, &siglen);
+      ctrl->use_auth_call = save;
     }
   else
     {




More information about the Gnupg-commits mailing list