apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r915666 - /apr/apr/trunk/ldap/apr_ldap_option.c
Date Wed, 24 Feb 2010 04:19:09 GMT
Author: covener
Date: Wed Feb 24 04:19:09 2010
New Revision: 915666

URL: http://svn.apache.org/viewvc?rev=915666&view=rev
Log:
protect LDAP_OPT_X_TLS_NEWCTX from reference on older openldap

Modified:
    apr/apr/trunk/ldap/apr_ldap_option.c

Modified: apr/apr/trunk/ldap/apr_ldap_option.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/ldap/apr_ldap_option.c?rev=915666&r1=915665&r2=915666&view=diff
==============================================================================
--- apr/apr/trunk/ldap/apr_ldap_option.c (original)
+++ apr/apr/trunk/ldap/apr_ldap_option.c Wed Feb 24 04:19:09 2010
@@ -624,6 +624,7 @@
             break;
         }
     }
+#ifdef LDAP_OPT_X_TLS_NEWCTX 
     /*  Certificate settings are now configured, but we also need a new
      *  TLS context to be created.  This applies to both gnuTLS and openssl
      */
@@ -632,6 +633,7 @@
         result->rc = ldap_set_option(ldap, LDAP_OPT_X_TLS_NEWCTX, &IS_SERVER);
         result->msg = ldap_err2string(result->rc);
     }
+#endif
 
 #else
     result->reason = "LDAP: LDAP_OPT_X_TLS_CACERTFILE not "



Mime
View raw message