From: Klas Lindfors Date: Tue, 27 Mar 2012 11:49:36 +0000 (+0200) Subject: only need aes key for SLOT_CONFIG and SLOT_CONFIG2 X-Git-Tag: v1.7.0~1^2~54 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a26b295d26e681fbe124f2223faf25ae46945bfa;p=yubikey-personalization only need aes key for SLOT_CONFIG and SLOT_CONFIG2 --- 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);