]> granicus.if.org Git - apache/commitdiff
Use namespace protection on mode and type constants.
authorGraham Leggett <minfrin@apache.org>
Sun, 15 May 2011 11:39:00 +0000 (11:39 +0000)
committerGraham Leggett <minfrin@apache.org>
Sun, 15 May 2011 11:39:00 +0000 (11:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1103331 13f79535-47bb-0310-9956-ffa450edef68

modules/session/mod_session_crypto.c

index 4583fbf0576fdc0519371be0dfac271e5ff57b20..c378ec5cf6f23c82966f1b5f4c0a290d657706ec 100644 (file)
@@ -115,7 +115,7 @@ static apr_status_t crypt_init(request_rec * r,
 #endif
                 strlen(dconf->passphrase),
                 (unsigned char *) salt, salt ? sizeof(apr_uuid_t) : 0,
-                dconf->cipher, MODE_CBC, 1, 4096, key, ivSize);
+                dconf->cipher, APR_MODE_CBC, 1, 4096, key, ivSize);
     }
 
     if (APR_STATUS_IS_ENOKEY(res)) {
@@ -481,7 +481,7 @@ static void *create_session_crypto_dir_config(apr_pool_t * p, char *dummy)
     (session_crypto_dir_conf *) apr_pcalloc(p, sizeof(session_crypto_dir_conf));
 
     /* default cipher AES256-SHA */
-    new->cipher = KEY_AES_256;
+    new->cipher = APR_KEY_AES_256;
 
     return (void *) new;
 }
@@ -595,11 +595,11 @@ static const char *set_crypto_passphrase(cmd_parms * cmd, void *config, const ch
             }
             else if (!strcasecmp(word, "cipher")) {
                 if (!strcasecmp(val, "3des192")) {
-                    dconf->cipher = KEY_3DES_192;
+                    dconf->cipher = APR_KEY_3DES_192;
                     dconf->cipher_set = 1;
                 }
                 else if (!strcasecmp(val, "aes256")) {
-                    dconf->cipher = KEY_AES_256;
+                    dconf->cipher = APR_KEY_AES_256;
                     dconf->cipher_set = 1;
                 }
                 else {