From a26b295d26e681fbe124f2223faf25ae46945bfa Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Tue, 27 Mar 2012 13:49:36 +0200 Subject: [PATCH] only need aes key for SLOT_CONFIG and SLOT_CONFIG2 --- ykpersonalize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ykpersonalize.c b/ykpersonalize.c index c60e826..ef24ebc 100644 --- a/ykpersonalize.c +++ b/ykpersonalize.c @@ -178,7 +178,7 @@ int main(int argc, char **argv) if (inf) { if (!ykp_read_config(cfg, reader, inf)) goto err; - } else if (! aesviahash) { + } else if (! aesviahash && (ykp_command(cfg) == SLOT_CONFIG || ykp_command(cfg) == SLOT_CONFIG2)) { char passphrasebuf[256]; size_t passphraselen; fprintf(stderr, "Passphrase to create AES key: "); fflush(stderr); -- 2.39.5