diff options
| author | djm <> | 2008-09-06 12:15:54 +0000 |
|---|---|---|
| committer | djm <> | 2008-09-06 12:15:54 +0000 |
| commit | f1625f274acf5dcd5601f6cb5e29e233b2a441a3 (patch) | |
| tree | 44899ddfbef8f24aacbea50086c041c1b150f6d6 /src/lib/libcrypto/rc4/rc4.c | |
| parent | 4f828b924f54507141fb95ebe49dfcd261945e85 (diff) | |
| download | openbsd-f1625f274acf5dcd5601f6cb5e29e233b2a441a3.tar.gz openbsd-f1625f274acf5dcd5601f6cb5e29e233b2a441a3.tar.bz2 openbsd-f1625f274acf5dcd5601f6cb5e29e233b2a441a3.zip | |
import of OpenSSL 0.9.8h
Diffstat (limited to '')
| -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 | ||
