diff options
author | Werner Koch <[email protected]> | 2001-12-20 13:25:08 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2001-12-20 13:25:08 +0000 |
commit | 5f116e95400453a6053b9b631eccc6d224b01cc9 (patch) | |
tree | 4f142116fa01e042d72bea79b1d59efba6fd2ec4 /sm/keylist.c | |
parent | * keybox-blob.c (_keybox_create_x509_blob): Skip the leading (diff) | |
download | gnupg-5f116e95400453a6053b9b631eccc6d224b01cc9.tar.gz gnupg-5f116e95400453a6053b9b631eccc6d224b01cc9.zip |
* base64.c (base64_reader_cb): Try to detect an S/MIME body part.
* certdump.c (print_sexp): Renamed to gpgsm_dump_serial, made
global.
(print_time): Renamed to gpgsm_dump_time, made global.
(gpgsm_dump_serial): Take a real S-Expression as argument and
print the first item.
* keylist.c (list_cert_colon): Ditto.
* keydb.c (keydb_search_issuer_sn): Ditto.
* decrypt.c (print_integer_sexp): Removed and made callers
use gpgsm_dump_serial.
* verify.c (print_time): Removed, made callers use gpgsm_dump_time.
Diffstat (limited to 'sm/keylist.c')
-rw-r--r-- | sm/keylist.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sm/keylist.c b/sm/keylist.c index 07844fed1..f4c90939f 100644 --- a/sm/keylist.c +++ b/sm/keylist.c @@ -150,11 +150,15 @@ list_cert_colon (KsbaCert cert, FILE *fp) int len; const unsigned char *s = sexp; - for (len=0; *s && *s != ':' && digitp (s); s++) - len = len*10 + atoi_1 (s); - if (*s == ':') - for (s++; len; len--, s++) - fprintf (fp,"%02X", *s); + if (*s == '(') + { + s++; + for (len=0; *s && *s != ':' && digitp (s); s++) + len = len*10 + atoi_1 (s); + if (*s == ':') + for (s++; len; len--, s++) + fprintf (fp,"%02X", *s); + } xfree (sexp); } putc (':', fp); |