mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
pkcs12 demo: output correct file names on error.
CLA: Trivial Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/11304)
This commit is contained in:
parent
f11a74ef79
commit
98bdae6a04
@ -79,7 +79,7 @@ int main(int argc, char **argv)
|
||||
name = find_friendly_name(p12);
|
||||
PKCS12_free(p12);
|
||||
if ((fp = fopen(argv[3], "w")) == NULL) {
|
||||
fprintf(stderr, "Error opening file %s\n", argv[1]);
|
||||
fprintf(stderr, "Error opening file %s\n", argv[3]);
|
||||
goto err;
|
||||
}
|
||||
if (name != NULL)
|
||||
|
@ -42,7 +42,7 @@ int main(int argc, char **argv)
|
||||
exit(1);
|
||||
}
|
||||
if ((fp = fopen(argv[4], "wb")) == NULL) {
|
||||
fprintf(stderr, "Error opening file %s\n", argv[1]);
|
||||
fprintf(stderr, "Error opening file %s\n", argv[4]);
|
||||
ERR_print_errors_fp(stderr);
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user