diff options
Diffstat (limited to 'g10/getkey.c')
-rw-r--r-- | g10/getkey.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/g10/getkey.c b/g10/getkey.c index 67b86ccf3..2195762f5 100644 --- a/g10/getkey.c +++ b/g10/getkey.c @@ -88,6 +88,21 @@ add_keyring( const char *name ) log_error("keyblock resource '%s': %s\n", name, g10_errstr(rc) ); } + +/**************** + * Get the name of the keyrings, start with a sequence number of 0. + */ +const char * +get_keyring( int sequence ) +{ + STRLIST sl; + + for(sl = keyrings; sl && sequence; sl = sl->next, sequence-- ) + ; + return sl? sl->d : NULL; +} + + void add_secret_keyring( const char *name ) { |