summaryrefslogtreecommitdiffstats
path: root/bin/ykfde.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ykfde.c')
-rw-r--r--bin/ykfde.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ykfde.c b/bin/ykfde.c
index 96b5559..e72fd0d 100644
--- a/bin/ykfde.c
+++ b/bin/ykfde.c
@@ -264,7 +264,7 @@ int main(int argc, char **argv) {
if (second_factor == NULL) {
/* get second factor from key store */
- if ((key = request_key("user", "ykfde-2f", NULL, 0)) < 0)
+ if ((key = keyctl_search(KEY_SPEC_USER_KEYRING, "user", "ykfde-2f", 0)) < 0)
fprintf(stderr, "Failed requesting key. That's ok if you do not use\n"
"second factor. Give it manually if required.\n");