mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* keybox-init.c (keybox_set_ephemeral): New.
* keybox-blob.c (create_blob_header): Store epheermal flag. (_keybox_create_x509_blob): Pass epheermal flag on. * keybox-update.c (keybox_insert_cert): Ditto. * keybox-search.c (blob_get_blob_flags): New. (keybox_search): Ignore ephemeral blobs when not in ephemeral mode. * keybox-dump.c (_keybox_dump_blob): Print blob flags as strings.
This commit is contained in:
parent
dfcdec0db2
commit
031a856a7e
9 changed files with 79 additions and 15 deletions
|
@ -134,8 +134,28 @@ _keybox_dump_blob (KEYBOXBLOB blob, FILE *fp)
|
|||
fprintf (fp, "Version: %d\n", buffer[5]);
|
||||
|
||||
n = get16 (buffer + 6);
|
||||
fprintf( fp, "Blob-Flags: %04lX\n", n);
|
||||
|
||||
fprintf( fp, "Blob-Flags: %04lX", n);
|
||||
if (n)
|
||||
{
|
||||
int any = 0;
|
||||
|
||||
fputs (" (", fp);
|
||||
if ((n & 1))
|
||||
{
|
||||
fputs ("secret", fp);
|
||||
any++;
|
||||
}
|
||||
if ((n & 2))
|
||||
{
|
||||
if (any)
|
||||
putc (',', fp);
|
||||
fputs ("ephemeral", fp);
|
||||
any++;
|
||||
}
|
||||
putc (')', fp);
|
||||
}
|
||||
putc ('\n', fp);
|
||||
|
||||
rawdata_off = get32 (buffer + 8);
|
||||
rawdata_len = get32 (buffer + 12);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue