1/*	$NetBSD: openldap.h,v 1.3 2021/08/14 16:14:55 christos Exp $	*/
2
3/* $OpenLDAP$ */
4/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 *
6 * Copyright 2019-2021 The OpenLDAP Foundation.
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted only as authorized by the OpenLDAP
11 * Public License.
12 *
13 * A copy of this license is available in file LICENSE in the
14 * top-level directory of the distribution or, alternatively, at
15 * <http://www.OpenLDAP.org/license.html>.
16 */
17
18/* openldap.h - Header for openldap specific interfaces. */
19
20#ifndef _OPENLDAP_H
21#define _OPENLDAP_H 1
22
23#include <ldap.h>
24
25LDAP_BEGIN_DECL
26
27#define LDAP_PROTO_TCP 1 /* ldap://  */
28#define LDAP_PROTO_UDP 2 /* reserved */
29#define LDAP_PROTO_IPC 3 /* ldapi:// */
30#define LDAP_PROTO_EXT 4 /* user-defined socket/sockbuf */
31
32LDAP_F( int )
33ldap_init_fd LDAP_P((
34	ber_socket_t fd,
35	int proto,
36	LDAP_CONST char *url,
37	LDAP **ldp ));
38
39LDAP_END_DECL
40
41#endif /* _OPENLDAP_H */
42