diff options
| author | mpi <> | 2014-04-13 21:11:19 +0000 |
|---|---|---|
| committer | mpi <> | 2014-04-13 21:11:19 +0000 |
| commit | ae78c6479af472ceb516bbebcb5d5930bcb4138a (patch) | |
| tree | 1dfda1f42bb153069c45620d1c4a0e984040d299 /src/lib/libssl/src/ssl/ssltest.c | |
| parent | 12b49770c8357608b124a4d9a697ecfe169f1e83 (diff) | |
| download | openbsd-ae78c6479af472ceb516bbebcb5d5930bcb4138a.tar.gz openbsd-ae78c6479af472ceb516bbebcb5d5930bcb4138a.tar.bz2 openbsd-ae78c6479af472ceb516bbebcb5d5930bcb4138a.zip | |
Do not include "e_os.h" anymore. Simply pull in the necessary headers.
ok miod@, deraadt@
Diffstat (limited to 'src/lib/libssl/src/ssl/ssltest.c')
| -rw-r--r-- | src/lib/libssl/src/ssl/ssltest.c | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/src/lib/libssl/src/ssl/ssltest.c b/src/lib/libssl/src/ssl/ssltest.c index 8a602cc551..1e285a5c52 100644 --- a/src/lib/libssl/src/ssl/ssltest.c +++ b/src/lib/libssl/src/ssl/ssltest.c | |||
| @@ -142,17 +142,21 @@ | |||
| 142 | 142 | ||
| 143 | #define _BSD_SOURCE 1 /* Or gethostname won't be declared properly | 143 | #define _BSD_SOURCE 1 /* Or gethostname won't be declared properly |
| 144 | on Linux and GNU platforms. */ | 144 | on Linux and GNU platforms. */ |
| 145 | #include <sys/types.h> | ||
| 146 | #include <sys/param.h> | ||
| 147 | #include <sys/socket.h> | ||
| 148 | |||
| 149 | #include <netinet/in.h> | ||
| 145 | 150 | ||
| 146 | #include <assert.h> | 151 | #include <assert.h> |
| 147 | #include <errno.h> | 152 | #include <errno.h> |
| 148 | #include <limits.h> | 153 | #include <limits.h> |
| 154 | #include <netdb.h> | ||
| 149 | #include <stdio.h> | 155 | #include <stdio.h> |
| 150 | #include <stdlib.h> | 156 | #include <stdlib.h> |
| 151 | #include <string.h> | 157 | #include <string.h> |
| 152 | #include <time.h> | 158 | #include <time.h> |
| 153 | 159 | #include <unistd.h> | |
| 154 | #define USE_SOCKETS | ||
| 155 | #include "e_os.h" | ||
| 156 | 160 | ||
| 157 | #ifdef OPENSSL_SYS_VMS | 161 | #ifdef OPENSSL_SYS_VMS |
| 158 | #define _XOPEN_SOURCE 500 /* Or isascii won't be declared properly on | 162 | #define _XOPEN_SOURCE 500 /* Or isascii won't be declared properly on |
| @@ -161,6 +165,8 @@ | |||
| 161 | 165 | ||
| 162 | #include <ctype.h> | 166 | #include <ctype.h> |
| 163 | 167 | ||
| 168 | #include <openssl/opensslconf.h> | ||
| 169 | #include <openssl/e_os2.h> | ||
| 164 | #include <openssl/bio.h> | 170 | #include <openssl/bio.h> |
| 165 | #include <openssl/crypto.h> | 171 | #include <openssl/crypto.h> |
| 166 | #include <openssl/evp.h> | 172 | #include <openssl/evp.h> |
| @@ -586,7 +592,7 @@ int main(int argc, char *argv[]) | |||
| 586 | fips_mode=1; | 592 | fips_mode=1; |
| 587 | #else | 593 | #else |
| 588 | fprintf(stderr,"not compiled with FIPS support, so exitting without running.\n"); | 594 | fprintf(stderr,"not compiled with FIPS support, so exitting without running.\n"); |
| 589 | EXIT(0); | 595 | exit(0); |
| 590 | #endif | 596 | #endif |
| 591 | } | 597 | } |
| 592 | else if (strcmp(*argv,"-server_auth") == 0) | 598 | else if (strcmp(*argv,"-server_auth") == 0) |
| @@ -785,7 +791,7 @@ bad: | |||
| 785 | { | 791 | { |
| 786 | /* ensure that the cipher list are correctly sorted and exit */ | 792 | /* ensure that the cipher list are correctly sorted and exit */ |
| 787 | if (do_test_cipherlist() == 0) | 793 | if (do_test_cipherlist() == 0) |
| 788 | EXIT(1); | 794 | exit(1); |
| 789 | ret = 0; | 795 | ret = 0; |
| 790 | goto end; | 796 | goto end; |
| 791 | } | 797 | } |
| @@ -796,7 +802,7 @@ bad: | |||
| 796 | "the test anyway (and\n-d to see what happens), " | 802 | "the test anyway (and\n-d to see what happens), " |
| 797 | "or add one of -ssl2, -ssl3, -tls1, -reuse\n" | 803 | "or add one of -ssl2, -ssl3, -tls1, -reuse\n" |
| 798 | "to avoid protocol mismatch.\n"); | 804 | "to avoid protocol mismatch.\n"); |
| 799 | EXIT(1); | 805 | exit(1); |
| 800 | } | 806 | } |
| 801 | 807 | ||
| 802 | #ifdef OPENSSL_FIPS | 808 | #ifdef OPENSSL_FIPS |
| @@ -806,7 +812,7 @@ bad: | |||
| 806 | { | 812 | { |
| 807 | ERR_load_crypto_strings(); | 813 | ERR_load_crypto_strings(); |
| 808 | ERR_print_errors(BIO_new_fp(stderr,BIO_NOCLOSE)); | 814 | ERR_print_errors(BIO_new_fp(stderr,BIO_NOCLOSE)); |
| 809 | EXIT(1); | 815 | exit(1); |
| 810 | } | 816 | } |
| 811 | else | 817 | else |
| 812 | fprintf(stderr,"*** IN FIPS MODE ***\n"); | 818 | fprintf(stderr,"*** IN FIPS MODE ***\n"); |
| @@ -1150,7 +1156,7 @@ end: | |||
| 1150 | EVP_cleanup(); | 1156 | EVP_cleanup(); |
| 1151 | CRYPTO_mem_leaks(bio_err); | 1157 | CRYPTO_mem_leaks(bio_err); |
| 1152 | if (bio_err != NULL) BIO_free(bio_err); | 1158 | if (bio_err != NULL) BIO_free(bio_err); |
| 1153 | EXIT(ret); | 1159 | exit(ret); |
| 1154 | return ret; | 1160 | return ret; |
| 1155 | } | 1161 | } |
| 1156 | 1162 | ||
| @@ -2144,7 +2150,7 @@ static int process_proxy_cond_multipliers(unsigned int letters[26], | |||
| 2144 | default: | 2150 | default: |
| 2145 | fprintf(stderr, "SOMETHING IS SERIOUSLY WRONG!" | 2151 | fprintf(stderr, "SOMETHING IS SERIOUSLY WRONG!" |
| 2146 | " STOPPING\n"); | 2152 | " STOPPING\n"); |
| 2147 | EXIT(1); | 2153 | exit(1); |
| 2148 | } | 2154 | } |
| 2149 | } | 2155 | } |
| 2150 | break; | 2156 | break; |
| @@ -2207,7 +2213,7 @@ static int process_proxy_cond_adders(unsigned int letters[26], | |||
| 2207 | default: | 2213 | default: |
| 2208 | fprintf(stderr, "SOMETHING IS SERIOUSLY WRONG!" | 2214 | fprintf(stderr, "SOMETHING IS SERIOUSLY WRONG!" |
| 2209 | " STOPPING\n"); | 2215 | " STOPPING\n"); |
| 2210 | EXIT(1); | 2216 | exit(1); |
| 2211 | } | 2217 | } |
| 2212 | } | 2218 | } |
| 2213 | break; | 2219 | break; |
| @@ -2306,7 +2312,7 @@ static int app_verify_callback(X509_STORE_CTX *ctx, void *arg) | |||
| 2306 | cb_arg->proxy_cond, &cond_end); | 2312 | cb_arg->proxy_cond, &cond_end); |
| 2307 | 2313 | ||
| 2308 | if (ok < 0) | 2314 | if (ok < 0) |
| 2309 | EXIT(3); | 2315 | exit(3); |
| 2310 | if (*cond_end) | 2316 | if (*cond_end) |
| 2311 | { | 2317 | { |
| 2312 | fprintf(stderr, "Stopped processing condition before it's end.\n"); | 2318 | fprintf(stderr, "Stopped processing condition before it's end.\n"); |
