More USB fix for GNU/Linux.

This commit is contained in:
NIIBE Yutaka
2017-10-02 15:29:45 +09:00
parent 0b4099d6d1
commit ca7f4c8758
3 changed files with 8 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
2017-10-02 NIIBE Yutaka <gniibe@fsij.org> 2017-10-02 NIIBE Yutaka <gniibe@fsij.org>
* src/usb-ccid.c (INTR_REQ_USB): Fix for GNU/Linux.
* library/bignum.c (mpi_montsqr): Easy C implementation. * library/bignum.c (mpi_montsqr): Easy C implementation.
2017-09-30 NIIBE Yutaka <gniibe@fsij.org> 2017-09-30 NIIBE Yutaka <gniibe@fsij.org>

View File

@@ -1,7 +1,7 @@
/* /*
* call-rsa.c -- Glue code between RSA computation and OpenPGP card protocol * 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 * Free Software Initiative of Japan
* Author: NIIBE Yutaka <gniibe@fsij.org> * Author: NIIBE Yutaka <gniibe@fsij.org>
* *

View File

@@ -1555,7 +1555,12 @@ ccid_notify_slot_change (struct ccid *c)
#define GPG_THREAD_TERMINATED 0xffff #define GPG_THREAD_TERMINATED 0xffff
#ifdef GNU_LINUX_EMULATION
#include <signal.h>
#define INTR_REQ_USB SIGUSR1
#else
#define INTR_REQ_USB 20 #define INTR_REQ_USB 20
#endif
extern uint32_t bDeviceState; extern uint32_t bDeviceState;
extern void usb_device_reset (struct usb_dev *dev); extern void usb_device_reset (struct usb_dev *dev);