summaryrefslogtreecommitdiff
path: root/apps/x509.c
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-06-27 10:28:45 +0200
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-08-04 09:17:47 +0200
commit57c05c57c3aab2755ec6eeae5d1800ac9cbd2f6d (patch)
treee880975a593a1b24c3d9276fe4cde84dfd2b9702 /apps/x509.c
parent02ae130e3dd1e4b4252692f65cb1f975bfe47935 (diff)
downloadopenssl-new-57c05c57c3aab2755ec6eeae5d1800ac9cbd2f6d.tar.gz
apps: Correct and extend diagnostics of parse_name()
Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/12296)
Diffstat (limited to 'apps/x509.c')
-rw-r--r--apps/x509.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/x509.c b/apps/x509.c
index d8f69c08eb..fbe4b8cefe 100644
--- a/apps/x509.c
+++ b/apps/x509.c
@@ -536,7 +536,8 @@ int x509_main(int argc, char **argv)
"The -new option requires a subject to be set using -subj\n");
goto end;
}
- if (subj != NULL && (fsubj = parse_name(subj, chtype, multirdn)) == NULL)
+ if (subj != NULL
+ && (fsubj = parse_name(subj, chtype, multirdn, "subject")) == NULL)
goto end;
if (CAkeyfile == NULL && CA_flag && CAformat == FORMAT_PEM) {