X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fevp%2Fe_rc4.c;h=1c1e3b38575a3a5885cbe9ba910c49771b7140a3;hb=4d4744ef48714875e9e3177468bd9f0a196319be;hp=7e212b3be582c27c579eb814f1619e23bb1c451e;hpb=135883505078a868349e0a3c24514099e3cb2dac;p=oweals%2Fopenssl.git diff --git a/crypto/evp/e_rc4.c b/crypto/evp/e_rc4.c index 7e212b3be5..1c1e3b3857 100644 --- a/crypto/evp/e_rc4.c +++ b/crypto/evp/e_rc4.c @@ -56,7 +56,7 @@ * [including the GNU Public Licence.] */ -#ifndef OPENSSL_NO_RC4 +#ifndef NO_RC4 #include #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); }