openbsd-ports/security/gnupg2/patches/patch-scd_apdu_c
dcoppa 0fe34d24b6 Re-enable smartcard support: it works again with rthreads.
Internal CCID driver only, as it was before.

OK pea@ (maintainer)
2012-05-14 08:49:54 +00:00

26 lines
811 B
Plaintext

$OpenBSD: patch-scd_apdu_c,v 1.3 2012/05/14 08:49:54 dcoppa Exp $
No PC/SC-Lite (pcsc-lite) support for now
--- scd/apdu.c.orig Tue Mar 27 10:00:38 2012
+++ scd/apdu.c Sun May 13 18:41:37 2012
@@ -66,7 +66,7 @@
/* Due to conflicting use of threading libraries we usually can't link
against libpcsclite. Instead we use a wrapper program. */
#ifdef USE_GNU_PTH
-#if !defined(HAVE_W32_SYSTEM) && !defined(__CYGWIN__)
+#if !defined(HAVE_W32_SYSTEM) && !defined(__CYGWIN__) && !defined(__OpenBSD__)
#define NEED_PCSC_WRAPPER 1
#endif
#endif
@@ -2389,6 +2389,9 @@ apdu_open_reader (const char *portstr, int *r_no_servi
/* No ctAPI configured, so lets try the PC/SC API */
if (!pcsc_api_loaded)
{
+#ifdef __OpenBSD__
+ return -1;
+#endif
#ifndef NEED_PCSC_WRAPPER
void *handle;