diff options
| author | beck <> | 1999-09-29 04:37:45 +0000 |
|---|---|---|
| committer | beck <> | 1999-09-29 04:37:45 +0000 |
| commit | de8f24ea083384bb66b32ec105dc4743c5663cdf (patch) | |
| tree | 1412176ae62a3cab2cf2b0b92150fcbceaac6092 /src/lib/libcrypto/rc4/rc4test.c | |
| parent | cb929d29896bcb87c2a97417fbd03e50078fc178 (diff) | |
| download | openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.gz openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.bz2 openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.zip | |
OpenSSL 0.9.4 merge
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/rc4/rc4test.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/lib/libcrypto/rc4/rc4test.c b/src/lib/libcrypto/rc4/rc4test.c index 041e1aff95..5abf8cff30 100644 --- a/src/lib/libcrypto/rc4/rc4test.c +++ b/src/lib/libcrypto/rc4/rc4test.c | |||
| @@ -59,7 +59,15 @@ | |||
| 59 | #include <stdio.h> | 59 | #include <stdio.h> |
| 60 | #include <stdlib.h> | 60 | #include <stdlib.h> |
| 61 | #include <string.h> | 61 | #include <string.h> |
| 62 | #include "rc4.h" | 62 | |
| 63 | #ifdef NO_RC4 | ||
| 64 | int main(int argc, char *argv[]) | ||
| 65 | { | ||
| 66 | printf("No RC4 support\n"); | ||
| 67 | return(0); | ||
| 68 | } | ||
| 69 | #else | ||
| 70 | #include <openssl/rc4.h> | ||
| 63 | 71 | ||
| 64 | unsigned char keys[7][30]={ | 72 | unsigned char keys[7][30]={ |
| 65 | {8,0x01,0x23,0x45,0x67,0x89,0xab,0xcd,0xef}, | 73 | {8,0x01,0x23,0x45,0x67,0x89,0xab,0xcd,0xef}, |
| @@ -101,9 +109,7 @@ unsigned char output[7][30]={ | |||
| 101 | {0}, | 109 | {0}, |
| 102 | }; | 110 | }; |
| 103 | 111 | ||
| 104 | int main(argc,argv) | 112 | int main(int argc, char *argv[]) |
| 105 | int argc; | ||
| 106 | char *argv[]; | ||
| 107 | { | 113 | { |
| 108 | int i,err=0; | 114 | int i,err=0; |
| 109 | int j; | 115 | int j; |
| @@ -192,4 +198,4 @@ char *argv[]; | |||
| 192 | exit(err); | 198 | exit(err); |
| 193 | return(0); | 199 | return(0); |
| 194 | } | 200 | } |
| 195 | 201 | #endif | |
