From ca7f4c8758019c2781ad07ccd8c30bcb3c85c999 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Mon, 2 Oct 2017 15:29:45 +0900 Subject: [PATCH] More USB fix for GNU/Linux. --- ChangeLog | 2 ++ src/call-rsa.c | 2 +- src/usb-ccid.c | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 847952e..2c50bca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2017-10-02 NIIBE Yutaka + * src/usb-ccid.c (INTR_REQ_USB): Fix for GNU/Linux. + * library/bignum.c (mpi_montsqr): Easy C implementation. 2017-09-30 NIIBE Yutaka diff --git a/src/call-rsa.c b/src/call-rsa.c index 68d47ea..6548ef6 100644 --- a/src/call-rsa.c +++ b/src/call-rsa.c @@ -1,7 +1,7 @@ /* * call-rsa.c -- Glue code between RSA computation and OpenPGP card protocol * - * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015 + * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2017 * Free Software Initiative of Japan * Author: NIIBE Yutaka * diff --git a/src/usb-ccid.c b/src/usb-ccid.c index 8c63e3d..656f695 100644 --- a/src/usb-ccid.c +++ b/src/usb-ccid.c @@ -1555,7 +1555,12 @@ ccid_notify_slot_change (struct ccid *c) #define GPG_THREAD_TERMINATED 0xffff +#ifdef GNU_LINUX_EMULATION +#include +#define INTR_REQ_USB SIGUSR1 +#else #define INTR_REQ_USB 20 +#endif extern uint32_t bDeviceState; extern void usb_device_reset (struct usb_dev *dev);