]> granicus.if.org Git - apache/commitdiff
Style cleanup
authorDaniel Ruggeri <druggeri@apache.org>
Mon, 19 Sep 2011 10:48:45 +0000 (10:48 +0000)
committerDaniel Ruggeri <druggeri@apache.org>
Mon, 19 Sep 2011 10:48:45 +0000 (10:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1172562 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_init.c

index 0d8ec06faaee9611dcbc7fc583f98380ab72dd2d..f9784ee95b5c76f0c20ebfb26414bba71771b667 100644 (file)
@@ -1189,7 +1189,7 @@ static void ssl_init_proxy_certs(server_rec *s,
         X509_NAME_oneline(name, cert_cn, sizeof(cert_cn));
         X509_STORE_CTX_init(sctx, store, inf->x509, NULL);
 
-        res=X509_verify_cert(sctx);
+        res = X509_verify_cert(sctx);
         chain = X509_STORE_CTX_get1_chain(sctx);
 
         if (res == 1) {
@@ -1201,13 +1201,13 @@ static void ssl_init_proxy_certs(server_rec *s,
             X509_free(sk_X509_shift(chain));
         }
         else {
-            int n=X509_STORE_CTX_get_error(sctx);
+            int err = X509_STORE_CTX_get_error(sctx);
             ap_log_error(APLOG_MARK, APLOG_WARNING, 0, s,
                          "SSL proxy client cert chain verification failed for %s: %s",
-                         cert_cn, X509_verify_cert_error_string(n));
+                         cert_cn, X509_verify_cert_error_string(err));
         }
         ERR_clear_error();
-        i=sk_X509_num(chain);
+        i = sk_X509_num(chain);
         pkp->ca_certs[n] = chain;
 
         if (i == 0 || (res != 1 && i == 1) ) {
@@ -1217,7 +1217,7 @@ static void ssl_init_proxy_certs(server_rec *s,
             i = 0;
             pkp->ca_certs[n] = NULL;
         }
-         
+
         X509_STORE_CTX_cleanup(sctx);
 
         ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s,