123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- #ifndef APR_LDAP_URL_H
- #define APR_LDAP_URL_H
- #if defined(DOXYGEN)
- #include "apr_ldap.h"
- #endif
- #if APR_HAS_LDAP
- #include "apu.h"
- #include "apr_pools.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef struct apr_ldap_url_desc_t {
- struct apr_ldap_url_desc_t *lud_next;
- char *lud_scheme;
- char *lud_host;
- int lud_port;
- char *lud_dn;
- char **lud_attrs;
- int lud_scope;
- char *lud_filter;
- char **lud_exts;
- int lud_crit_exts;
- } apr_ldap_url_desc_t;
- #ifndef APR_LDAP_URL_SUCCESS
- #define APR_LDAP_URL_SUCCESS 0x00
- #define APR_LDAP_URL_ERR_MEM 0x01
- #define APR_LDAP_URL_ERR_PARAM 0x02
- #define APR_LDAP_URL_ERR_BADSCHEME 0x03
- #define APR_LDAP_URL_ERR_BADENCLOSURE 0x04
- #define APR_LDAP_URL_ERR_BADURL 0x05
- #define APR_LDAP_URL_ERR_BADHOST 0x06
- #define APR_LDAP_URL_ERR_BADATTRS 0x07
- #define APR_LDAP_URL_ERR_BADSCOPE 0x08
- #define APR_LDAP_URL_ERR_BADFILTER 0x09
- #define APR_LDAP_URL_ERR_BADEXTS 0x0a
- #endif
- APU_DECLARE(int) apr_ldap_is_ldap_url(const char *url);
- APU_DECLARE(int) apr_ldap_is_ldaps_url(const char *url);
- APU_DECLARE(int) apr_ldap_is_ldapi_url(const char *url);
- APU_DECLARE(int) apr_ldap_url_parse_ext(apr_pool_t *pool,
- const char *url_in,
- apr_ldap_url_desc_t **ludpp,
- apr_ldap_err_t **result_err);
- APU_DECLARE(int) apr_ldap_url_parse(apr_pool_t *pool,
- const char *url_in,
- apr_ldap_url_desc_t **ludpp,
- apr_ldap_err_t **result_err);
- #ifdef __cplusplus
- }
- #endif
- #endif
- #endif
|