~ubuntu-branches/debian/wheezy/apache2/wheezy

« back to all changes in this revision

Viewing changes to srclib/apr-util/ldap/apr_ldap_init.c

  • Committer: Package Import Robot
  • Author(s): Stefan Fritsch, Stefan Fritsch, Arno Töll
  • Date: 2012-02-01 21:49:04 UTC
  • mfrom: (0.13.15)
  • Revision ID: package-import@ubuntu.com-20120201214904-nlchebp6wu7z55jw
Tags: 2.2.22-1
[ Stefan Fritsch ]
* New upstream release, urgency medium due to security fixes:
  - Fix CVE-2012-0021: mod_log_config: DoS with '%{cookiename}C' log format
  - Fix CVE-2012-0031: Unprivileged child process could cause the parent to
    crash at shutdown
  - Fix CVE-2012-0053: Exposure of "httpOnly" cookies in code 400 error
    message.
* Move httxt2dbm to apache2-utils
* Adjust debian/control to point to new git repository.

[ Arno Töll ]
* Fix "typo in /etc/apache2/apache2.conf" (Closes: #653801)

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
    *result_err = result;
157
157
 
158
158
#if APR_HAS_LDAPSSL_INIT
 
159
#if APR_HAS_SOLARIS_LDAPSDK
 
160
    /*
 
161
     * Using the secure argument should aways be possible.  But as LDAP SDKs
 
162
     * tend to have different quirks and bugs, this needs to be tested for
 
163
     * for each of them, first. For Solaris LDAP it works, and the method
 
164
     * with ldap_set_option doesn't.
 
165
     */
 
166
    *ldap = ldapssl_init(hostname, portno, secure == APR_LDAP_SSL);
 
167
#else
159
168
    *ldap = ldapssl_init(hostname, portno, 0);
 
169
#endif
160
170
#elif APR_HAS_LDAP_SSLINIT
161
171
    *ldap = ldap_sslinit((char *)hostname, portno, 0);
162
172
#else
163
173
    *ldap = ldap_init((char *)hostname, portno);
164
174
#endif
 
175
 
165
176
    if (*ldap != NULL) {
 
177
#if APR_HAS_SOLARIS_LDAPSDK
 
178
        if (secure == APR_LDAP_SSL)
 
179
            return APR_SUCCESS;
 
180
        else
 
181
#endif
166
182
        return apr_ldap_set_option(pool, *ldap, APR_LDAP_OPT_TLS, &secure, result_err);
167
183
    }
168
184
    else {