Make it also work for the card.
authorWerner Koch <wk@gnupg.org>
Fri, 6 Oct 2006 11:06:15 +0000 (11:06 +0000)
committerWerner Koch <wk@gnupg.org>
Fri, 6 Oct 2006 11:06:15 +0000 (11:06 +0000)
agent/ChangeLog
agent/divert-scd.c

index fd24855..3b5999c 100644 (file)
@@ -1,3 +1,7 @@
+2006-10-06  Werner Koch  <wk@g10code.com>
+
+       * divert-scd.c (divert_pksign): Use PKAUTH for the TLS algo.
+
 2006-10-05  Werner Koch  <wk@g10code.com>
 
        * command.c (has_option_name): New.
index 67c9f46..49768fe 100644 (file)
@@ -326,8 +326,11 @@ divert_pksign (ctrl_t ctrl,
 
   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
     {