mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
Extend error output of apps/opt_format() to all error cases
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11998)
This commit is contained in:
parent
2620c38ba8
commit
f009e37c76
@ -209,6 +209,7 @@ int opt_format(const char *s, unsigned long flags, int *result)
|
|||||||
{
|
{
|
||||||
switch (*s) {
|
switch (*s) {
|
||||||
default:
|
default:
|
||||||
|
opt_printf_stderr("%s: Bad format \"%s\"\n", prog, s);
|
||||||
return 0;
|
return 0;
|
||||||
case 'D':
|
case 'D':
|
||||||
case 'd':
|
case 'd':
|
||||||
@ -275,6 +276,7 @@ int opt_format(const char *s, unsigned long flags, int *result)
|
|||||||
return opt_format_error(s, flags);
|
return opt_format_error(s, flags);
|
||||||
*result = FORMAT_PKCS12;
|
*result = FORMAT_PKCS12;
|
||||||
} else {
|
} else {
|
||||||
|
opt_printf_stderr("%s: Bad format \"%s\"\n", prog, s);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user