You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by bn...@apache.org on 2005/01/19 23:39:21 UTC

svn commit: r125676 - /httpd/httpd/trunk/modules/ldap/util_ldap.c

Author: bnicholes
Date: Wed Jan 19 14:39:19 2005
New Revision: 125676

URL: http://svn.apache.org/viewcvs?view=rev&rev=125676
Log:
Fix some inline C++ style declarations that other compilers can't handle
Modified:
   httpd/httpd/trunk/modules/ldap/util_ldap.c

Modified: httpd/httpd/trunk/modules/ldap/util_ldap.c
Url: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/ldap/util_ldap.c?view=diff&rev=125676&p1=httpd/httpd/trunk/modules/ldap/util_ldap.c&r1=125675&p2=httpd/httpd/trunk/modules/ldap/util_ldap.c&r2=125676
==============================================================================
--- httpd/httpd/trunk/modules/ldap/util_ldap.c	(original)
+++ httpd/httpd/trunk/modules/ldap/util_ldap.c	Wed Jan 19 14:39:19 2005
@@ -1424,6 +1424,7 @@
     apr_finfo_t finfo;
     apr_status_t rv;
     int cert_type = 0;
+    apr_ldap_opt_tls_cert_t *cert;
 
     if (err != NULL) {
         return err;
@@ -1450,7 +1451,7 @@
                        file, type);
 
     /* add the certificate to the global array */
-    apr_ldap_opt_tls_cert_t *cert = (apr_ldap_opt_tls_cert_t *)apr_array_push(st->global_certs);
+    cert = (apr_ldap_opt_tls_cert_t *)apr_array_push(st->global_certs);
     cert->type = cert_type;
     cert->path = file;
     cert->password = password;
@@ -1491,6 +1492,7 @@
     apr_finfo_t finfo;
     apr_status_t rv;
     int cert_type = 0;
+    apr_ldap_opt_tls_cert_t *cert;
 
     /* handle the certificate type */
     if (type) {
@@ -1524,7 +1526,7 @@
                        file, type);
 
     /* add the certificate to the global array */
-    apr_ldap_opt_tls_cert_t *cert = (apr_ldap_opt_tls_cert_t *)apr_array_push(st->global_certs);
+    cert = (apr_ldap_opt_tls_cert_t *)apr_array_push(st->global_certs);
     cert->type = cert_type; 
     cert->path = file;
     cert->password = password;
@@ -1658,6 +1660,8 @@
 
     void *data;
     const char *userdata_key = "util_ldap_init";
+    apr_ldap_err_t *result_err = NULL;
+    int rc;
 
     /* util_ldap_post_config() will be called twice. Don't bother
      * going through all of the initialization on the first call
@@ -1755,11 +1759,10 @@
      * If SSL is not supported it is not necessarily an error, as the
      * application may not want to use it.
      */
-    apr_ldap_err_t *result_err = NULL;
-    int rc = apr_ldap_ssl_init(p,
-                               NULL,
-                               NULL,
-                               &(result_err));
+    rc = apr_ldap_ssl_init(p, 
+                      NULL, 
+                      0, 
+                      &(result_err));
     if (APR_SUCCESS == rc) {
         rc = apr_ldap_set_option(p, NULL, APR_LDAP_OPT_TLS_CERT,
                                  (void *)st->global_certs, &(result_err));