#include <apr_ldap.h>
/* this whole thing disappears if LDAP is not enabled */
-#ifdef APU_HAS_LDAP
+#if APR_HAS_LDAP
/* APR header files */
#include <apr_thread_mutex.h>
*/
char *util_ald_cache_display(apr_pool_t *pool, util_ldap_state_t *st);
-#endif /* APU_HAS_LDAP */
+#endif /* APR_HAS_LDAP */
#endif /* UTIL_LDAP_H */
unsigned long key; /* the key for this entry */
struct hash_entry *next; /* next entry in the bucket */
unsigned long nonce_count; /* for nonce-count checking */
- char ha1[2*MD5_DIGESTSIZE+1]; /* for algorithm=MD5-sess */
+ char ha1[2*APR_MD5_DIGESTSIZE+1]; /* for algorithm=MD5-sess */
char last_nonce[NONCE_LEN+1]; /* for one-time nonce's */
} client_entry;
#include "http_request.h"
#include "util_ldap.h"
-#ifndef APU_HAS_LDAP
+#if !APR_HAS_LDAP
#error mod_auth_ldap requires APR-util to have LDAP support built in
#endif
#include <unistd.h>
#endif
-#ifndef APU_HAS_LDAP
+#if !APR_HAS_LDAP
#error mod_ldap requires APR-util to have LDAP support built in
#endif
#include "util_ldap.h"
#include "util_ldap_cache.h"
-#ifdef APU_HAS_LDAP
+#if APR_HAS_LDAP
#if APR_HAS_SHARED_MEMORY
#define MODLDAP_SHMEM_CACHE "/tmp/mod_ldap_cache"
}
-#endif /* APU_HAS_LDAP */
+#endif /* APR_HAS_LDAP */
*/
/* this whole thing disappears if LDAP is not enabled */
-#ifdef APU_HAS_LDAP
+#if APR_HAS_LDAP
/*
char *util_ald_cache_display_stats(apr_pool_t *p, util_ald_cache_t *cache,
char *name);
-#endif /* APU_HAS_LDAP */
+#endif /* APR_HAS_LDAP */
#endif /* APU_LDAP_CACHE_H */
#include "util_ldap_cache.h"
#include <apr_strings.h>
-#ifdef APU_HAS_LDAP
+#if APR_HAS_LDAP
/* only here until strdup is gone */
#include <string.h>
return buf;
}
-#endif /* APU_HAS_LDAP */
+#endif /* APR_HAS_LDAP */
sc->vhost_id_len);
if (!SSL_set_session_id_context(ssl, (unsigned char *)vhost_md5,
- MD5_DIGESTSIZE*2))
+ APR_MD5_DIGESTSIZE*2))
{
ap_log_error(APLOG_MARK, APLOG_ERR, 0, c->base_server,
"Unable to set session id context to `%s'", vhost_md5);
{
const char *hex = "0123456789abcdef";
apr_md5_ctx_t my_md5;
- unsigned char hash[MD5_DIGESTSIZE];
+ unsigned char hash[APR_MD5_DIGESTSIZE];
char *r, result[33]; /* (MD5_DIGESTSIZE * 2) + 1 */
int i;
apr_md5_update(&my_md5, buf, (unsigned int)length);
apr_md5_final(hash, &my_md5);
- for (i = 0, r = result; i < MD5_DIGESTSIZE; i++) {
+ for (i = 0, r = result; i < APR_MD5_DIGESTSIZE; i++) {
*r++ = hex[hash[i] >> 4];
*r++ = hex[hash[i] & 0xF];
}
*r = '\0';
- return apr_pstrndup(p, result, MD5_DIGESTSIZE*2);
+ return apr_pstrndup(p, result, APR_MD5_DIGESTSIZE*2);
}
AP_DECLARE(char *) ap_md5(apr_pool_t *p, const unsigned char *string)