mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* keyring.h, keyring.c (keyring_register_filename): Return the pointer if
a given keyring is registered twice. * keydb.h, keydb.c (keydb_add_resource): Use flags to indicate a default keyring. (keydb_locate_writable): Prefer the default keyring if possible. * g10.c (main): Add --default-keyring option.
This commit is contained in:
parent
bf4a893586
commit
7911a5ed86
6 changed files with 89 additions and 29 deletions
|
@ -26,7 +26,7 @@
|
|||
|
||||
typedef struct keyring_handle *KEYRING_HANDLE;
|
||||
|
||||
void *keyring_register_filename (const char *fname, int secret);
|
||||
int keyring_register_filename (const char *fname, int secret, void **ptr);
|
||||
int keyring_is_writable (void *token);
|
||||
|
||||
KEYRING_HANDLE keyring_new (void *token, int secret);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue