summaryrefslogtreecommitdiffstats
path: root/sm/keydb.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2007-03-20 17:57:40 +0100
committerWerner Koch <wk@gnupg.org>2007-03-20 17:57:40 +0100
commit12cc96a17617cdb30710ebf51279d0dc39822bb3 (patch)
tree857c3dd12235e676623088871b636490dc826883 /sm/keydb.h
parentMake gpgconf aware of --p12-charset. (diff)
downloadgnupg2-12cc96a17617cdb30710ebf51279d0dc39822bb3.tar.xz
gnupg2-12cc96a17617cdb30710ebf51279d0dc39822bb3.zip
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.
Diffstat (limited to 'sm/keydb.h')
-rw-r--r--sm/keydb.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sm/keydb.h b/sm/keydb.h
index e12afe1f6..24744e864 100644
--- a/sm/keydb.h
+++ b/sm/keydb.h
@@ -74,8 +74,9 @@ int keydb_search_subject (KEYDB_HANDLE hd, const char *issuer);
int keydb_classify_name (const char *name, KEYDB_SEARCH_DESC *desc);
int keydb_store_cert (ksba_cert_t cert, int ephemeral, int *existed);
-gpg_error_t keydb_set_cert_flags (ksba_cert_t cert, int which, int idx,
- unsigned int value);
+gpg_error_t keydb_set_cert_flags (ksba_cert_t cert, int ephemeral,
+ int which, int idx,
+ unsigned int mask, unsigned int value);
void keydb_clear_some_cert_flags (ctrl_t ctrl, strlist_t names);