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 12:51:34 +0000 (12:51 +0000)
This reverts commit 1e05c6d07ff963107286d028f6778d2ccc863a9a.

Empty subjects should be permissible.

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

apps/ca.c

index 2819fead40e0ea2bafd98a80605349d531b96190..db886117f41bbd5f952816e4e8e06e17ace5bf71 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -664,10 +664,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);