From 12cc96a17617cdb30710ebf51279d0dc39822bb3 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 20 Mar 2007 16:57:40 +0000 Subject: kbx/ * keybox.h (KEYBOX_FLAG_BLOB_SECRET, KEYBOX_FLAG_BLOB_EPHEMERAL): New. * keybox-update.c (keybox_compress): Use it here instead of a magic constant. sm/ * fingerprint.c (gpgsm_get_fingerprint): Add caching. (gpgsm_get_fingerprint_string): Use bin2hexcolon(). (gpgsm_get_fingerprint_hexstring): Use bin2hex and allocate only as much memory as required. (gpgsm_get_keygrip_hexstring): Use bin2hex. * certchain.c (gpgsm_validate_chain): Keep track of the certificate chain and reset the ephemeral flags. * keydb.c (keydb_set_cert_flags): New args EPHEMERAL and MASK. Changed caller to use a mask of ~0. Return a proper error code if the certificate is not available. --- sm/import.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sm/import.c') diff --git a/sm/import.c b/sm/import.c index 5dcd09508..f5e7cf00c 100644 --- a/sm/import.c +++ b/sm/import.c @@ -147,7 +147,8 @@ print_imported_summary (ctrl_t ctrl, struct stats_s *stats) static void -check_and_store (ctrl_t ctrl, struct stats_s *stats, ksba_cert_t cert, int depth) +check_and_store (ctrl_t ctrl, struct stats_s *stats, + ksba_cert_t cert, int depth) { int rc; -- cgit v1.2.3