summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2017-06-20 14:47:00 +0200
committerGravatar Christian Hesse <mail@eworm.de>2017-06-20 14:47:00 +0200
commitd0d025a737c3b8fa2a07580a138b90e408121e27 (patch)
tree51bea4d8588f70dc4e40a16cade482bcb4307963
parent778bc2efdc8835e73bd22a16dcb059634b2c2826 (diff)
downloadmkinitcpio-ykfde-d0d025a737c3b8fa2a07580a138b90e408121e27.tar.gz
mkinitcpio-ykfde-d0d025a737c3b8fa2a07580a138b90e408121e27.tar.zst
Revert "request key from user keyring"
This reverts commit e90e36ae106b4c6ff30a6ce0c0b1d03a5615a363. The argument expects a destination keyring to create a key in case it is not found. So keep the zero, which means not to create a key.
-rw-r--r--udev/ykfde.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/ykfde.c b/udev/ykfde.c
index 7460140..98ca946 100644
--- a/udev/ykfde.c
+++ b/udev/ykfde.c
@@ -131,7 +131,7 @@ static int try_answer(const unsigned int serial, uint8_t slot, const char * ask_
/* get second factor from key store
* if this fails it is not critical... possibly we just do not
* use second factor */
- key = request_key("user", "ykfde-2f", NULL, KEY_SPEC_USER_KEYRING);
+ key = request_key("user", "ykfde-2f", NULL, 0);
if (key > 0) {
/* if we have a key id we have a key - so this should succeed */