don't print password
instead remind the user the password might be wrong.
This commit is contained in:
+1
-1
@@ -521,7 +521,7 @@ static bool import_key(SCARDHANDLE *card, enum enum_key_format key_format,
|
|||||||
goto import_out;
|
goto import_out;
|
||||||
}
|
}
|
||||||
if(PKCS12_parse(p12, password, &private_key, &cert, NULL) == 0) {
|
if(PKCS12_parse(p12, password, &private_key, &cert, NULL) == 0) {
|
||||||
fprintf(stderr, "Failed to parse PKCS12 structure. (password: %s)\n", password);
|
fprintf(stderr, "Failed to parse PKCS12 structure. (wrong password?)\n");
|
||||||
ret = false;
|
ret = false;
|
||||||
goto import_out;
|
goto import_out;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user