Make the -a flag to opiekey(1) actually work as advertised.
Reviewed by: ache, audit, security MFC after: 1 week
This commit is contained in:
parent
127713f491
commit
32eb5fea1a
|
@ -119,7 +119,7 @@ static void getsecret FUNCTION((secret, promptextra, retype), char *secret AND c
|
|||
}
|
||||
memset(verify, 0, sizeof(verify));
|
||||
}
|
||||
if (!(flags & 2) && opiepasscheck(secret)) {
|
||||
if (!(flags & 2) && !aflag && opiepasscheck(secret)) {
|
||||
memset(secret, 0, sizeof(secret));
|
||||
fprintf(stderr, "Secret pass phrases must be between %d and %d characters long.\n", OPIE_SECRET_MIN, OPIE_SECRET_MAX);
|
||||
exit(1);
|
||||
|
|
Loading…
Reference in New Issue