summaryrefslogtreecommitdiffstats
path: root/scd/card.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2004-01-27 17:40:42 +0100
committerWerner Koch <wk@gnupg.org>2004-01-27 17:40:42 +0100
commiteb24d8b751750cf96cb200f80b45ed3806648883 (patch)
treee78feb11795ff62728bc443352006ae33e50ec9c /scd/card.c
parent* call-scd.c (atfork_cb): New. (diff)
downloadgnupg2-eb24d8b751750cf96cb200f80b45ed3806648883.tar.xz
gnupg2-eb24d8b751750cf96cb200f80b45ed3806648883.zip
Some minor bug fixes, new test utilities and started support for other
smartcard applications.
Diffstat (limited to 'scd/card.c')
-rw-r--r--scd/card.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/scd/card.c b/scd/card.c
index 95149074d..53c89f3a4 100644
--- a/scd/card.c
+++ b/scd/card.c
@@ -53,7 +53,10 @@ map_sc_err (int rc)
#endif
default: e = GPG_ERR_CARD; break;
}
- return gpg_err_make (GPG_ERR_SOURCE_UNKNOWN, e);
+ /* It does not make much sense to further distingusih the error
+ source between OpenSC and SCD. Thus we use SCD as source
+ here. */
+ return gpg_err_make (GPG_ERR_SOURCE_SCD, e);
}
/* Get the keygrip from CERT, return 0 on success */
@@ -462,6 +465,7 @@ card_enum_keypairs (CARD card, int idx,
100 := Regular X.509 cert
101 := Trusted X.509 cert
102 := Useful X.509 cert
+ 110 := Root CA cert (DINSIG)
*/
int
card_enum_certs (CARD card, int idx, char **certid, int *certtype)