aboutsummaryrefslogtreecommitdiffstats
path: root/g10/getkey.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/getkey.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/g10/getkey.c b/g10/getkey.c
index 9591502e3..fb4a8492d 100644
--- a/g10/getkey.c
+++ b/g10/getkey.c
@@ -123,6 +123,16 @@ get_keyring( int sequence )
return sl? sl->d : NULL;
}
+const char *
+get_secret_keyring( int sequence )
+{
+ STRLIST sl;
+
+ for(sl = secret_keyrings; sl && sequence; sl = sl->next, sequence-- )
+ ;
+ return sl? sl->d : NULL;
+}
+
void
add_secret_keyring( const char *name )