aboutsummaryrefslogtreecommitdiffstats
path: root/scd/card.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2003-07-28 08:59:18 +0000
committerWerner Koch <[email protected]>2003-07-28 08:59:18 +0000
commit860f56b08989ebd51fafc3d3974b8f7856a80c12 (patch)
treeac0cb108d674419305120f0983c269f74ce27bc7 /scd/card.c
parent* options.h, g10.c (main, add_keyserver_url): Add (diff)
downloadgnupg-860f56b08989ebd51fafc3d3974b8f7856a80c12.tar.gz
gnupg-860f56b08989ebd51fafc3d3974b8f7856a80c12.zip
Adjusted for use with current libgcrypt (1.1.42).
Diffstat (limited to '')
-rw-r--r--scd/card.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/scd/card.c b/scd/card.c
index 00c190fa1..02b7bfdbf 100644
--- a/scd/card.c
+++ b/scd/card.c
@@ -196,6 +196,7 @@ card_close (CARD card)
return a pointer to value as well as its length in NBYTES. Return
NULL if it was not found. Note, that the function does not check
whether the value fits into the provided buffer. */
+#ifdef HAVE_OPENSC
static const char *
find_simple_tlv (const unsigned char *buffer, size_t length,
int tag, size_t *nbytes)
@@ -228,11 +229,13 @@ find_simple_tlv (const unsigned char *buffer, size_t length,
s += len; n -= len;
}
}
+#endif /*HAVE_OPENSC*/
/* Find the ICC Serial Number within the provided BUFFER of LENGTH
(which should contain the GDO file) and return it as a hex encoded
string and allocated string in SERIAL. Return an error code when
the ICCSN was not found. */
+#ifdef HAVE_OPENSC
static int
find_iccsn (const unsigned char *buffer, size_t length, char **serial)
{
@@ -271,7 +274,7 @@ find_iccsn (const unsigned char *buffer, size_t length, char **serial)
*p = 0;
return 0;
}
-
+#endif /*HAVE_OPENSC*/
/* Retrieve the serial number and the time of the last update of the
card. The serial number is returned as a malloced string (hex