fix EVP_CIPHER_mode macro
[oweals/openssl.git] / crypto / evp / e_rc4.c
index 7e212b3be582c27c579eb814f1619e23bb1c451e..1c1e3b38575a3a5885cbe9ba910c49771b7140a3 100644 (file)
@@ -56,7 +56,7 @@
  * [including the GNU Public Licence.]
  */
 
-#ifndef OPENSSL_NO_RC4
+#ifndef NO_RC4
 
 #include <stdio.h>
 #include "cryptlib.h"
@@ -67,7 +67,7 @@ static int rc4_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
                        const unsigned char *iv,int enc);
 static int rc4_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
                      const unsigned char *in, unsigned int inl);
-static const EVP_CIPHER r4_cipher=
+static EVP_CIPHER r4_cipher=
        {
        NID_rc4,
        1,EVP_RC4_KEY_SIZE,0,
@@ -82,7 +82,7 @@ static const EVP_CIPHER r4_cipher=
        NULL
        };
 
-static const EVP_CIPHER r4_40_cipher=
+static EVP_CIPHER r4_40_cipher=
        {
        NID_rc4_40,
        1,5 /* 40 bit */,0,
@@ -97,12 +97,12 @@ static const EVP_CIPHER r4_40_cipher=
        NULL
        };
 
-const EVP_CIPHER *EVP_rc4(void)
+EVP_CIPHER *EVP_rc4(void)
        {
        return(&r4_cipher);
        }
 
-const EVP_CIPHER *EVP_rc4_40(void)
+EVP_CIPHER *EVP_rc4_40(void)
        {
        return(&r4_40_cipher);
        }