diff options
author | Werner Koch <[email protected]> | 2007-03-20 16:57:40 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2007-03-20 16:57:40 +0000 |
commit | 12cc96a17617cdb30710ebf51279d0dc39822bb3 (patch) | |
tree | 857c3dd12235e676623088871b636490dc826883 /kbx/keybox.h | |
parent | Make gpgconf aware of --p12-charset. (diff) | |
download | gnupg-12cc96a17617cdb30710ebf51279d0dc39822bb3.tar.gz gnupg-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 'kbx/keybox.h')
-rw-r--r-- | kbx/keybox.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kbx/keybox.h b/kbx/keybox.h index 0f97fb7fc..922bcd5e0 100644 --- a/kbx/keybox.h +++ b/kbx/keybox.h @@ -58,6 +58,11 @@ typedef enum KEYBOX_FLAG_CREATED_AT /* The date the block was created. */ } keybox_flag_t; +/* Flag values used with KEYBOX_FLAG_BLOB. */ +#define KEYBOX_FLAG_BLOB_SECRET 1 +#define KEYBOX_FLAG_BLOB_EPHEMERAL 2 + + /*-- keybox-init.c --*/ void *keybox_register_file (const char *fname, int secret); |