1
/* $OpenLDAP: pkg/ldap/include/ldap_pvt.h,v 1.91.2.6 2008/02/11 23:26:40 kurt Exp $ */
1
/* $OpenLDAP: pkg/ldap/include/ldap_pvt.h,v 1.91.2.9 2009/02/02 22:53:14 quanah Exp $ */
2
2
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
4
* Copyright 1998-2008 The OpenLDAP Foundation.
4
* Copyright 1998-2009 The OpenLDAP Foundation.
5
5
* All rights reserved.
7
7
* Redistribution and use in source and binary forms, with or without
217
218
LDAP_F (int) ldap_pvt_sasl_mutex_lock LDAP_P((void *mutex));
218
219
LDAP_F (int) ldap_pvt_sasl_mutex_unlock LDAP_P((void *mutex));
219
220
LDAP_F (void) ldap_pvt_sasl_mutex_dispose LDAP_P((void *mutex));
221
#endif /* HAVE_CYRUS_SASL */
221
223
struct sockbuf; /* avoid pulling in <lber.h> */
222
224
LDAP_F (int) ldap_pvt_sasl_install LDAP_P(( struct sockbuf *, void * ));
223
225
LDAP_F (void) ldap_pvt_sasl_remove LDAP_P(( struct sockbuf * ));
224
#endif /* HAVE_CYRUS_SASL */
228
* SASL encryption support for LBER Sockbufs
231
struct sb_sasl_generic_data;
233
struct sb_sasl_generic_ops {
234
void (*init)(struct sb_sasl_generic_data *p,
237
ber_len_t *max_recv);
238
ber_int_t (*encode)(struct sb_sasl_generic_data *p,
242
ber_int_t (*decode)(struct sb_sasl_generic_data *p,
243
const Sockbuf_Buf *src,
245
void (*reset_buf)(struct sb_sasl_generic_data *p,
247
void (*fini)(struct sb_sasl_generic_data *p);
250
struct sb_sasl_generic_install {
251
const struct sb_sasl_generic_ops *ops;
255
struct sb_sasl_generic_data {
256
const struct sb_sasl_generic_ops *ops;
258
Sockbuf_IO_Desc *sbiod;
262
Sockbuf_Buf sec_buf_in;
226
267
#ifndef LDAP_PVT_SASL_LOCAL_SSF
227
268
#define LDAP_PVT_SASL_LOCAL_SSF 71 /* SSF for Unix Domain Sockets */
228
269
#endif /* ! LDAP_PVT_SASL_LOCAL_SSF */
263
304
ldap_bv2escaped_filter_value_x LDAP_P(( struct berval *in, struct berval *out,
264
305
int inplace, void *ctx ));
307
LDAP_F (int) ldap_pvt_search LDAP_P((
309
LDAP_CONST char *base,
311
LDAP_CONST char *filter,
314
struct ldapcontrol **sctrls,
315
struct ldapcontrol **cctrls,
316
struct timeval *timeout,
321
LDAP_F(int) ldap_pvt_search_s LDAP_P((
323
LDAP_CONST char *base,
325
LDAP_CONST char *filter,
328
struct ldapcontrol **sctrls,
329
struct ldapcontrol **cctrls,
330
struct timeval *timeout,
333
struct ldapmsg **res ));
268
337
ldap_pvt_str2upper LDAP_P(( char *str ));