~ubuntu-branches/ubuntu/maverick/openldap/maverick-proposed

« back to all changes in this revision

Viewing changes to libraries/libldap/ldap-int.h

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug, Steve Langasek, Mathias Gug
  • Date: 2009-02-18 18:44:00 UTC
  • mfrom: (1.1.2 upstream) (0.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20090218184400-zw4mjse9eywt5566
Tags: 2.4.14-0ubuntu1
[ Steve Langasek ]
* New upstream version
  - Fixes a bug with the pcache overlay not returning cached entries
    (closes: #497697)
  - Update evolution-ntlm patch to apply to current Makefiles.
  - (tentatively) drop gnutls-ciphers, since this bug was reported to be
    fixed upstream in 2.4.8.  The fix applied in 2.4.8 didn't match the
    patch from the bug report, so this should be watched for regressions.
* Build against db4.7 instead of db4.2 at last!  Closes: #421946.
* Build with --disable-ndb, to avoid a misbuild when libmysqlclient is
  installed in the build environment.
* New patch, no-crlcheck-for-gnutls, to fix a build failure when using
  --with-tls=gnutls.

[ Mathias Gug ]
* Merge from debian unstable, remaining changes:
  - debian/apparmor-profile: add AppArmor profile
  - debian/slapd.postinst: Reload AA profile on configuration
  - updated debian/slapd.README.Debian for note on AppArmor
  - debian/control: Recommends apparmor >= 2.1+1075-0ubuntu6
  - debian/control: Conflicts with apparmor-profiles << 2.1+1075-0ubuntu4
    to make sure that if earlier version of apparmour-profiles gets
    installed it won't overwrite our profile.
  - Modify Maintainer value to match the DebianMaintainerField
    speficication.
  - follow ApparmorProfileMigration and force apparmor compalin mode on 
    some upgrades (LP: #203529)
  - debian/slapd.dirs: add etc/apparmor.d/force-complain
  - debian/slapd.preinst: create symlink for force-complain on pre-feisty
    upgrades, upgrades where apparmor-profiles profile is unchanged (ie
    non-enforcing) and upgrades where apparmor profile does not exist.
  - debian/slapd.postrm: remove symlink in force-complain/ on purge
  - debian/patches/fix-ucred-libc due to changes how newer glibc handle
    the ucred struct now.
  - debian/control:
    - Build-depend on libltdl7-dev rather then libltdl3-dev.
  - debian/patches/autogen.sh:
    - Call libtoolize with the --install option to install config.{guess,sub}
      files.
  - Don't use local statement in config script as it fails if /bin/sh
    points to bash (LP: #286063).
  - Disable the testsuite on hppa. Allows building of packages on this
    architecture again, once this package is in the archive.
    LP: #288908.
  - debian/slapd.postinst, debian/slapd.script-common: set correct ownership
    and permissions on /var/lib/ldap, /etc/ldap/slapd.d (group readable) and
    /var/run/slapd (world readable). (LP: #257667).
  - debian/patches/nssov-build, debian/rules: 
    Build and package the nss overlay.
    debian/schema/misc.ldif: add ldif file for the misc schema, which defines
    rfc822MailMember (required by the nss overlay).
  - debian/{control,rules}: enable PIE hardening
  - Use cn=config as the default configuration backend instead of 
    slapd.conf. Migrate slapd.conf  file to /etc/ldap/slapd.d/ on upgrade
    asking the end user to enter a new password to control the access to the
    cn=config tree.
* debian/patches/corrupt-contextCSN: The contextCSN can get corrupted at
  times. (ITS: #5947)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*  ldap-int.h - defines & prototypes internal to the LDAP library */
2
 
/* $OpenLDAP: pkg/ldap/libraries/libldap/ldap-int.h,v 1.168.2.7 2008/02/11 23:26:41 kurt Exp $ */
 
2
/* $OpenLDAP: pkg/ldap/libraries/libldap/ldap-int.h,v 1.168.2.13 2009/02/02 22:53:14 quanah Exp $ */
3
3
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
4
4
 *
5
 
 * Copyright 1998-2008 The OpenLDAP Foundation.
 
5
 * Copyright 1998-2009 The OpenLDAP Foundation.
6
6
 * All rights reserved.
7
7
 *
8
8
 * Redistribution and use in source and binary forms, with or without
121
121
#define LDAP_BOOL_RESTART               1
122
122
#define LDAP_BOOL_TLS                   3
123
123
#define LDAP_BOOL_CONNECT_ASYNC         4
 
124
#define LDAP_BOOL_SASL_NOCANON          5
124
125
 
125
126
#define LDAP_BOOLEANS   unsigned long
126
127
#define LDAP_BOOL(n)    ((LDAP_BOOLEANS)1 << (n))
154
155
        char            *lt_cacertfile;
155
156
        char            *lt_cacertdir;
156
157
        char            *lt_ciphersuite;
157
 
#ifdef HAVE_GNUTLS
158
158
        char            *lt_crlfile;
159
 
#endif
 
159
        char            *lt_randfile;   /* OpenSSL only */
 
160
        int             lt_protocol_min;
160
161
};
161
162
#endif
162
163
 
 
164
typedef struct ldaplist {
 
165
        struct ldaplist *ll_next;
 
166
        void *ll_data;
 
167
} ldaplist;
 
168
 
163
169
/*
164
170
 * structure representing get/set'able options
165
171
 * which have global defaults.
199
205
#define ldo_tls_cacertfile      ldo_tls_info.lt_cacertfile
200
206
#define ldo_tls_cacertdir       ldo_tls_info.lt_cacertdir
201
207
#define ldo_tls_ciphersuite     ldo_tls_info.lt_ciphersuite
 
208
#define ldo_tls_protocol_min    ldo_tls_info.lt_protocol_min
202
209
#define ldo_tls_crlfile ldo_tls_info.lt_crlfile
 
210
#define ldo_tls_randfile        ldo_tls_info.lt_randfile
203
211
        int                     ldo_tls_mode;
204
212
        int                     ldo_tls_require_cert;
 
213
        int                     ldo_tls_impl;
205
214
#ifdef HAVE_OPENSSL_CRL
206
215
        int                     ldo_tls_crlcheck;
207
216
#endif
222
231
        struct sasl_security_properties ldo_sasl_secprops;
223
232
#endif
224
233
 
 
234
#ifdef HAVE_GSSAPI
 
235
        unsigned gssapi_flags;
 
236
 
 
237
        unsigned ldo_gssapi_flags;
 
238
#define LDAP_GSSAPI_OPT_DO_NOT_FREE_GSS_CONTEXT 0x0001
 
239
#define LDAP_GSSAPI_OPT_ALLOW_REMOTE_PRINCIPAL  0x0002
 
240
        unsigned ldo_gssapi_options;
 
241
#endif
 
242
 
225
243
        int             ldo_refhoplimit;        /* limit on referral nesting */
226
244
 
227
245
        /* LDAPv3 server and client controls */
236
254
        LDAP_URLLIST_PROC *ldo_urllist_proc;
237
255
        void *ldo_urllist_params;
238
256
 
 
257
        /* LDAP connection callback stack */
 
258
        ldaplist *ldo_conn_cbs;
 
259
 
239
260
        LDAP_BOOLEANS ldo_booleans;     /* boolean options */
240
261
};
241
262
 
249
270
        void            *lconn_sasl_authctx;    /* context for bind */
250
271
        void            *lconn_sasl_sockctx;    /* for security layer */
251
272
#endif
 
273
#ifdef HAVE_GSSAPI
 
274
        void            *lconn_gss_ctx;         /* gss_ctx_id_t */
 
275
#endif
252
276
        int                     lconn_refcnt;
253
277
        time_t          lconn_created;  /* time */
254
278
        time_t          lconn_lastused; /* time */
393
417
#ifdef HAVE_CYRUS_SASL
394
418
LDAP_V( ldap_pvt_thread_mutex_t ) ldap_int_sasl_mutex;
395
419
#endif
 
420
#ifdef HAVE_GSSAPI
 
421
LDAP_V( ldap_pvt_thread_mutex_t ) ldap_int_gssapi_mutex;
 
422
#endif
396
423
#endif
397
424
 
398
425
#ifdef LDAP_R_COMPILE
503
530
LDAP_F (int) ldap_int_timeval_dup( struct timeval **dest,
504
531
        const struct timeval *tm );
505
532
LDAP_F (int) ldap_connect_to_host( LDAP *ld, Sockbuf *sb,
506
 
        int proto, const char *host, int port, int async );
 
533
        int proto, LDAPURLDesc *srv, int async );
507
534
LDAP_F (int) ldap_int_poll( LDAP *ld, ber_socket_t s,
508
535
        struct timeval *tvp );
509
536
 
522
549
LDAP_F (int) ldap_is_read_ready( LDAP *ld, Sockbuf *sb );
523
550
LDAP_F (int) ldap_is_write_ready( LDAP *ld, Sockbuf *sb );
524
551
 
 
552
LDAP_F (int) ldap_int_connect_cbs( LDAP *ld, Sockbuf *sb,
 
553
        ber_socket_t *s, LDAPURLDesc *srv, struct sockaddr *addr );
 
554
 
525
555
/*
526
556
 * in os-local.c
527
557
 */
528
558
#ifdef LDAP_PF_LOCAL
529
559
LDAP_F (int) ldap_connect_to_path( LDAP *ld, Sockbuf *sb,
530
 
        const char *path, int async );
 
560
        LDAPURLDesc *srv, int async );
531
561
#endif /* LDAP_PF_LOCAL */
532
562
 
533
563
/*
572
602
        LDAPControl **cctrls,
573
603
        ber_int_t timelimit,
574
604
        ber_int_t sizelimit,
 
605
        ber_int_t deref,
575
606
        ber_int_t *msgidp));
576
607
 
577
608