1*549b59edSchristos /* $NetBSD: openldap.h,v 1.3 2021/08/14 16:14:55 christos Exp $ */ 24e27b3e8Schristos 34e27b3e8Schristos /* $OpenLDAP$ */ 44e27b3e8Schristos /* This work is part of OpenLDAP Software <http://www.openldap.org/>. 54e27b3e8Schristos * 6*549b59edSchristos * Copyright 2019-2021 The OpenLDAP Foundation. 74e27b3e8Schristos * All rights reserved. 84e27b3e8Schristos * 94e27b3e8Schristos * Redistribution and use in source and binary forms, with or without 104e27b3e8Schristos * modification, are permitted only as authorized by the OpenLDAP 114e27b3e8Schristos * Public License. 124e27b3e8Schristos * 134e27b3e8Schristos * A copy of this license is available in file LICENSE in the 144e27b3e8Schristos * top-level directory of the distribution or, alternatively, at 154e27b3e8Schristos * <http://www.OpenLDAP.org/license.html>. 164e27b3e8Schristos */ 174e27b3e8Schristos 184e27b3e8Schristos /* openldap.h - Header for openldap specific interfaces. */ 194e27b3e8Schristos 204e27b3e8Schristos #ifndef _OPENLDAP_H 214e27b3e8Schristos #define _OPENLDAP_H 1 224e27b3e8Schristos 234e27b3e8Schristos #include <ldap.h> 244e27b3e8Schristos 254e27b3e8Schristos LDAP_BEGIN_DECL 264e27b3e8Schristos 274e27b3e8Schristos #define LDAP_PROTO_TCP 1 /* ldap:// */ 284e27b3e8Schristos #define LDAP_PROTO_UDP 2 /* reserved */ 294e27b3e8Schristos #define LDAP_PROTO_IPC 3 /* ldapi:// */ 304e27b3e8Schristos #define LDAP_PROTO_EXT 4 /* user-defined socket/sockbuf */ 314e27b3e8Schristos 324e27b3e8Schristos LDAP_F( int ) 334e27b3e8Schristos ldap_init_fd LDAP_P(( 344e27b3e8Schristos ber_socket_t fd, 354e27b3e8Schristos int proto, 364e27b3e8Schristos LDAP_CONST char *url, 374e27b3e8Schristos LDAP **ldp )); 384e27b3e8Schristos 394e27b3e8Schristos LDAP_END_DECL 404e27b3e8Schristos 414e27b3e8Schristos #endif /* _OPENLDAP_H */ 42