[rs-commit] r61 - /redwax-tool/trunk/redwax_openssl.c

rs-commit at redwax.eu rs-commit at redwax.eu
Tue Nov 23 16:29:23 CET 2021


Author: minfrin at redwax.eu
Date: Tue Nov 23 16:29:23 2021
New Revision: 61

Log:
Format.

Modified:
    redwax-tool/trunk/redwax_openssl.c

Modified: redwax-tool/trunk/redwax_openssl.c
==============================================================================
--- redwax-tool/trunk/redwax_openssl.c	(original)
+++ redwax-tool/trunk/redwax_openssl.c	Tue Nov 23 16:29:23 2021
@@ -2400,29 +2400,29 @@
         }
 
         for (j = 0; j < sk_X509_num(chain_index); j++) {
-             X509 *xi = sk_X509_value(chain_index, j);
-
-             if (X509_check_issued(xi, x) == X509_V_OK) {
-
-                  redwax_certificate_t *chain =
-                          X509_get_ex_data(xi, redwax_get_x509_index());
-
-                  /* detect loops / depth */
-
-                  ncert = apr_array_push(r->intermediates_out);
-
-                  ncert->header = chain->header;
-                  ncert->der = chain->der;
-                  ncert->len = chain->len;
-
-                  if (X509_NAME_cmp(X509_get_issuer_name(x),
-                          X509_get_subject_name(x))) {
-
-                      rt_run_search_chain(r, chain);
-                  }
-             }
-
-         }
+            X509 *xi = sk_X509_value(chain_index, j);
+
+            if (X509_check_issued(xi, x) == X509_V_OK) {
+
+                redwax_certificate_t *chain = X509_get_ex_data(xi,
+                        redwax_get_x509_index());
+
+                /* detect loops / depth */
+
+                ncert = apr_array_push(r->intermediates_out);
+
+                ncert->header = chain->header;
+                ncert->der = chain->der;
+                ncert->len = chain->len;
+
+                if (X509_NAME_cmp(X509_get_issuer_name(x),
+                        X509_get_subject_name(x))) {
+
+                    rt_run_search_chain(r, chain);
+                }
+            }
+
+        }
 
         X509_free(x);
     }



More information about the rs-commit mailing list