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