diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2023-08-04 08:23:58 +0200 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-09-05 11:47:59 +0100 |
commit | 49e097344ba51a8b25016794d482813b9c1e137f (patch) | |
tree | b9f72636ccbde72ad1861d5cf59c2dfc87a1227c /apps | |
parent | 81d037b8adb0232c8a4d4654f79c883dafb102bc (diff) | |
download | openssl-49e097344ba51a8b25016794d482813b9c1e137f.tar.gz |
apps.c: improve warning texts of parse_name() when skipping RDN input
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21659)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/lib/apps.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/lib/apps.c b/apps/lib/apps.c index 824ef16c2c..e29a01a4d1 100644 --- a/apps/lib/apps.c +++ b/apps/lib/apps.c @@ -1977,16 +1977,17 @@ X509_NAME *parse_name(const char *cp, int chtype, int canmulti, nid = OBJ_txt2nid(typestr); if (nid == NID_undef) { BIO_printf(bio_err, - "%s: Skipping unknown %s name attribute \"%s\"\n", + "%s warning: Skipping unknown %s name attribute \"%s\"\n", opt_getprog(), desc, typestr); if (ismulti) BIO_printf(bio_err, - "Hint: a '+' in a value string needs be escaped using '\\' else a new member of a multi-valued RDN is expected\n"); + "%s hint: a '+' in a value string needs be escaped using '\\' else a new member of a multi-valued RDN is expected\n", + opt_getprog()); continue; } if (*valstr == '\0') { BIO_printf(bio_err, - "%s: No value provided for %s name attribute \"%s\", skipped\n", + "%s warning: No value provided for %s name attribute \"%s\", skipped\n", opt_getprog(), desc, typestr); continue; } |