diff options
Diffstat (limited to 'src/lib/libcrypto/rc4/rc4.c')
-rw-r--r-- | src/lib/libcrypto/rc4/rc4.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/rc4/rc4.c b/src/lib/libcrypto/rc4/rc4.c index b39c070292..c900b26055 100644 --- a/src/lib/libcrypto/rc4/rc4.c +++ b/src/lib/libcrypto/rc4/rc4.c | |||
@@ -60,6 +60,7 @@ | |||
60 | #include <stdlib.h> | 60 | #include <stdlib.h> |
61 | #include <string.h> | 61 | #include <string.h> |
62 | #include <openssl/rc4.h> | 62 | #include <openssl/rc4.h> |
63 | #include <openssl/evp.h> | ||
63 | 64 | ||
64 | char *usage[]={ | 65 | char *usage[]={ |
65 | "usage: rc4 args\n", | 66 | "usage: rc4 args\n", |
@@ -162,7 +163,7 @@ bad: | |||
162 | keystr=buf; | 163 | keystr=buf; |
163 | } | 164 | } |
164 | 165 | ||
165 | EVP_Digest((unsigned char *)keystr,(unsigned long)strlen(keystr),md,NULL,EVP_md5()); | 166 | EVP_Digest((unsigned char *)keystr,strlen(keystr),md,NULL,EVP_md5(),NULL); |
166 | OPENSSL_cleanse(keystr,strlen(keystr)); | 167 | OPENSSL_cleanse(keystr,strlen(keystr)); |
167 | RC4_set_key(&key,MD5_DIGEST_LENGTH,md); | 168 | RC4_set_key(&key,MD5_DIGEST_LENGTH,md); |
168 | 169 | ||