1d11b170bStron/* $OpenLDAP$ */ 22de962bdSlukem/* This work is part of OpenLDAP Software <http://www.openldap.org/>. 32de962bdSlukem * 4*e670fd5cSchristos * Copyright 1998-2021 The OpenLDAP Foundation. 52de962bdSlukem * All rights reserved. 62de962bdSlukem * 72de962bdSlukem * Redistribution and use in source and binary forms, with or without 82de962bdSlukem * modification, are permitted only as authorized by the OpenLDAP 92de962bdSlukem * Public License. 102de962bdSlukem * 112de962bdSlukem * A copy of this license is available in file LICENSE in the 122de962bdSlukem * top-level directory of the distribution or, alternatively, at 132de962bdSlukem * <http://www.OpenLDAP.org/license.html>. 142de962bdSlukem */ 152de962bdSlukem 162de962bdSlukem/* 172de962bdSlukem * LDAP Features 182de962bdSlukem */ 192de962bdSlukem 202de962bdSlukem#ifndef _LDAP_FEATURES_H 212de962bdSlukem#define _LDAP_FEATURES_H 1 222de962bdSlukem 232de962bdSlukem/* OpenLDAP API version macros */ 242de962bdSlukem#undef LDAP_VENDOR_VERSION 252de962bdSlukem#undef LDAP_VENDOR_VERSION_MAJOR 262de962bdSlukem#undef LDAP_VENDOR_VERSION_MINOR 272de962bdSlukem#undef LDAP_VENDOR_VERSION_PATCH 282de962bdSlukem 292de962bdSlukem/* 302de962bdSlukem** WORK IN PROGRESS! 312de962bdSlukem** 322de962bdSlukem** OpenLDAP reentrancy/thread-safeness should be dynamically 332de962bdSlukem** checked using ldap_get_option(). 342de962bdSlukem** 35*e670fd5cSchristos** If built with thread support, the -lldap implementation is: 362de962bdSlukem** LDAP_API_FEATURE_THREAD_SAFE (basic thread safety) 372de962bdSlukem** LDAP_API_FEATURE_SESSION_THREAD_SAFE 382de962bdSlukem** LDAP_API_FEATURE_OPERATION_THREAD_SAFE 392de962bdSlukem** 402de962bdSlukem** The preprocessor flag LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 41*e670fd5cSchristos** can be used to determine if -lldap is thread safe at compile 42*e670fd5cSchristos** time. 432de962bdSlukem** 442de962bdSlukem*/ 452de962bdSlukem 46*e670fd5cSchristos/* is -lldap reentrant or not */ 47*e670fd5cSchristos#undef LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 48*e670fd5cSchristos 49*e670fd5cSchristos/* is -lldap thread safe or not */ 502de962bdSlukem#undef LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 512de962bdSlukem 522de962bdSlukem/* LDAP v2 Referrals */ 532de962bdSlukem#undef LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS 542de962bdSlukem 552de962bdSlukem#endif /* LDAP_FEATURES */ 56