]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Sync with APR-util deprecated functions.
authorJustin Erenkrantz <jerenkrantz@apache.org>
Sun, 16 Nov 2003 02:22:25 +0000 (02:22 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Sun, 16 Nov 2003 02:22:25 +0000 (02:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101789 13f79535-47bb-0310-9956-ffa450edef68

include/util_ldap.h
modules/aaa/mod_auth_digest.c
modules/experimental/mod_auth_ldap.c
modules/experimental/util_ldap.c
modules/experimental/util_ldap_cache.c
modules/experimental/util_ldap_cache.h
modules/experimental/util_ldap_cache_mgr.c
modules/ssl/mod_ssl.c
server/util_md5.c

index b0a3b0442cb8a9d8a0b8e3a3a0b74d45ffe66d78..4d9c606ee905e3fc41fe7856f169e45cbb3b154e 100644 (file)
@@ -58,7 +58,7 @@
 #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>
@@ -328,5 +328,5 @@ char *util_ald_cache_display(apr_pool_t *pool, util_ldap_state_t *st);
  */
 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 */
index 6eb33d586e8fb96b7d527e5d6cac525ced33aaa0..b9e14594f3194b56421624fd827345679fa8e112 100644 (file)
@@ -164,7 +164,7 @@ typedef struct hash_entry {
     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;
 
index 920365e6befafdcfa974f6a0a36b8162dd73dbc1..e33455e5d8e0446f9851a2c519e7f356536438f3 100644 (file)
@@ -81,7 +81,7 @@
 #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
 
index e588201b14c3872e126c50230509f27b15b76f35..43aa1e90cf9f20c10a28549c8cbf5aecea773866 100644 (file)
@@ -77,7 +77,7 @@
 #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
 
index 6fb2934bda80d230c15c08e48a8b907886c7cdbd..cb20f29473febf98c9e3a6f9d64369858fb4a05a 100644 (file)
@@ -64,7 +64,7 @@
 #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"
@@ -331,4 +331,4 @@ apr_status_t util_ldap_cache_init(apr_pool_t *pool, util_ldap_state_t *st)
 }
 
 
-#endif /* APU_HAS_LDAP */
+#endif /* APR_HAS_LDAP */
index e9c2937360f137f7ad1c2bff1723be6383c3c0a2..caab8b9adf51f684d9b80a4223173d8c4008a428 100644 (file)
@@ -61,7 +61,7 @@
  */
 
 /* this whole thing disappears if LDAP is not enabled */
-#ifdef APU_HAS_LDAP
+#if APR_HAS_LDAP
 
 
 /*
@@ -235,5 +235,5 @@ void util_ald_cache_remove(util_ald_cache_t *cache, void *payload);
 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 */
index 58e26551acdaaee89ecb306ce96186dd38132ba2..1046dc6c0f94b2a8a7bc9bbbfc79ce79daad78f0 100644 (file)
@@ -65,7 +65,7 @@
 #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>
@@ -552,4 +552,4 @@ char *util_ald_cache_display(apr_pool_t *pool, util_ldap_state_t *st)
     return buf;
 }
 
-#endif /* APU_HAS_LDAP */
+#endif /* APR_HAS_LDAP */
index cdff9f61038c18381254073cd991ea3b11b5ab0d..361937e5ee3afdfd59d24f42fc387a0e6abb89d4 100644 (file)
@@ -397,7 +397,7 @@ int ssl_init_ssl_connection(conn_rec *c)
                               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);
index 6ec4571e1c6f2c1df3f95e69ed41eb4877c17bde..4f028e2ece12cbf412659ae01ee78fdc5d5392de 100644 (file)
@@ -96,7 +96,7 @@ AP_DECLARE(char *) ap_md5_binary(apr_pool_t *p, const unsigned char *buf, int le
 {
     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;
 
@@ -111,13 +111,13 @@ AP_DECLARE(char *) ap_md5_binary(apr_pool_t *p, const unsigned char *buf, int le
     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)