Revert "Don't crash on a missing Subject in index.txt"
authorMatt Caswell <matt@openssl.org>
Fri, 23 Feb 2018 11:05:24 +0000 (11:05 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 15 Mar 2018 13:34:57 +0000 (13:34 +0000)
This reverts commit a3d684ffca282796511cb8f3593a59a80109eed8.

Empty Subjects are permissible

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

apps/ca.c

index 4671767..3d23e17 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -880,10 +880,6 @@ int MAIN(int argc, char **argv)
             }
             p++;
         }
-        if (pp[DB_name][0] == '\0') {
-            BIO_printf(bio_err, "entry %d: bad Subject\n", i + 1);
-            goto err;
-        }
     }
     if (verbose) {
         BIO_set_fp(out, stdout, BIO_NOCLOSE | BIO_FP_TEXT); /* cannot fail */