]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
vms: move otherwise dead code into the VMS relevant path.
authorPauli <paul.dale@oracle.com>
Thu, 8 Oct 2020 00:25:06 +0000 (10:25 +1000)
committerPauli <paul.dale@oracle.com>
Mon, 12 Oct 2020 00:27:16 +0000 (10:27 +1000)
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13091)

crypto/x509/by_dir.c

index 3f44d541cf17ce977efa9d370f062b105bed6f35..f182764899ac24bee01f49761f09ead4470396e3 100644 (file)
@@ -284,6 +284,7 @@ static int get_cert_by_subject_ex(X509_LOOKUP *xl, X509_LOOKUP_TYPE type,
         }
         for (;;) {
             char c = '/';
+
 #ifdef OPENSSL_SYS_VMS
             c = ent->dir[strlen(ent->dir) - 1];
             if (c != ':' && c != '>' && c != ']') {
@@ -297,7 +298,7 @@ static int get_cert_by_subject_ex(X509_LOOKUP *xl, X509_LOOKUP_TYPE type,
             } else {
                 c = '\0';
             }
-#endif
+
             if (c == '\0') {
                 /*
                  * This is special.  When c == '\0', no directory separator
@@ -305,7 +306,9 @@ static int get_cert_by_subject_ex(X509_LOOKUP *xl, X509_LOOKUP_TYPE type,
                  */
                 BIO_snprintf(b->data, b->max,
                              "%s%08lx.%s%d", ent->dir, h, postfix, k);
-            } else {
+            } else
+#endif
+            {
                 BIO_snprintf(b->data, b->max,
                              "%s%c%08lx.%s%d", ent->dir, c, h, postfix, k);
             }