Fix cmd_pso and cmd_internal_authenticate.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 9 Nov 2018 09:57:51 +0000 (18:57 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 9 Nov 2018 09:57:51 +0000 (18:57 +0900)
ChangeLog
src/openpgp.c

index 553f287..a35d60f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2018-11-09  NIIBE Yutaka  <gniibe@fsij.org>
 
+       * src/openpgp.c (cmd_pso, cmd_internal_authenticate): Use
+       ccid_comm.
+
        * src/usb-ccid.c (wait_for_tx_finish): New.
        (ccid_error, ccid_power_on, ccid_send_status, ccid_power_off)
        (ccid_send_data_block_internal, ccid_send_data_block_0x9000)
index 11746bb..984e715 100644 (file)
@@ -1043,6 +1043,8 @@ cmd_pso (struct eventflag *ccid_comm)
 #ifdef ACKBTN_SUPPORT
       if (gpg_do_get_uif (GPG_KEY_FOR_DECRYPTION))
        eventflag_signal (ccid_comm, EV_EXEC_ACK_REQUIRED);
+#else
+      (void)ccid_comm;
 #endif
 
       if (attr == ALGO_RSA2K || attr == ALGO_RSA4K)
@@ -1154,6 +1156,8 @@ cmd_internal_authenticate (struct eventflag *ccid_comm)
 #ifdef ACKBTN_SUPPORT
   if (gpg_do_get_uif (GPG_KEY_FOR_AUTHENTICATION))
     eventflag_signal (ccid_comm, EV_EXEC_ACK_REQUIRED);
+#else
+  (void)ccid_comm;
 #endif
 
   if (attr == ALGO_RSA2K || attr == ALGO_RSA4K)