[rs-commit] r60 - /redwax-tool/trunk/redwax_openssl.c
rs-commit at redwax.eu
rs-commit at redwax.eu
Tue Nov 23 16:28:36 CET 2021
Author: minfrin at redwax.eu
Date: Tue Nov 23 16:28:35 2021
New Revision: 60
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:28:35 2021
@@ -2375,29 +2375,29 @@
}
for (j = 0; j < sk_X509_num(trusted_index); j++) {
- X509 *xi = sk_X509_value(trusted_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 */
-
- ncert = apr_array_push(r->trusted_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(trusted_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 */
+
+ ncert = apr_array_push(r->trusted_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);
+ }
+ }
+
+ }
for (j = 0; j < sk_X509_num(chain_index); j++) {
X509 *xi = sk_X509_value(chain_index, j);
More information about the rs-commit
mailing list