Revert "Don't crash on a missing Subject in index.txt"
authorMatt Caswell <matt@openssl.org>
Fri, 23 Feb 2018 09:46:06 +0000 (09:46 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 15 Mar 2018 13:32:23 +0000 (13:32 +0000)
This reverts commit 462163e91a6f06e8bf0791a01f6e0a1897ad2081.

Empty subjects should be permissible.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5627)

apps/ca.c

index ad8c5c8bbef8e6c87351ae5e7616690eeb9fa99b..603adfd406eb93672a2b4bfbefb7927cdea96fdb 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -666,10 +666,6 @@ end_of_options:
                 goto end;
             }
         }
-        if (pp[DB_name][0] == '\0') {
-            BIO_printf(bio_err, "entry %d: bad Subject\n", i + 1);
-            goto end;
-        }
     }
     if (verbose) {
         TXT_DB_write(bio_out, db->db);