diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/bio/b_sock.c | 13 | ||||
| -rw-r--r-- | src/lib/libcrypto/bio/bss_bio.c | 2 | ||||
| -rw-r--r-- | src/lib/libcrypto/bio/bss_dgram.c | 24 | ||||
| -rw-r--r-- | src/lib/libcrypto/cast/cast_lcl.h | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/conf/conf_api.c | 1 | ||||
| -rw-r--r-- | src/lib/libcrypto/cryptlib.h | 2 | ||||
| -rw-r--r-- | src/lib/libcrypto/des/cfb64ede.c | 1 | ||||
| -rw-r--r-- | src/lib/libcrypto/des/cfb_enc.c | 1 | ||||
| -rw-r--r-- | src/lib/libcrypto/o_str.c | 1 | ||||
| -rw-r--r-- | src/lib/libcrypto/ocsp/ocsp_ht.c | 1 | ||||
| -rw-r--r-- | src/lib/libcrypto/rand/randfile.c | 1 | ||||
| -rw-r--r-- | src/lib/libcrypto/rc5/rc5test.c | 2 |
12 files changed, 3 insertions, 49 deletions
diff --git a/src/lib/libcrypto/bio/b_sock.c b/src/lib/libcrypto/bio/b_sock.c index cd8216b7e2..0baece8cdb 100644 --- a/src/lib/libcrypto/bio/b_sock.c +++ b/src/lib/libcrypto/bio/b_sock.c | |||
| @@ -273,9 +273,7 @@ BIO_get_accept_socket(char *host, int bind_mode) | |||
| 273 | union { | 273 | union { |
| 274 | struct sockaddr sa; | 274 | struct sockaddr sa; |
| 275 | struct sockaddr_in sa_in; | 275 | struct sockaddr_in sa_in; |
| 276 | #if OPENSSL_USE_IPV6 | ||
| 277 | struct sockaddr_in6 sa_in6; | 276 | struct sockaddr_in6 sa_in6; |
| 278 | #endif | ||
| 279 | } server, client; | 277 | } server, client; |
| 280 | int s = -1, cs, addrlen; | 278 | int s = -1, cs, addrlen; |
| 281 | unsigned char ip[4]; | 279 | unsigned char ip[4]; |
| @@ -338,11 +336,7 @@ BIO_get_accept_socket(char *host, int bind_mode) | |||
| 338 | if (strchr(h, ':')) { | 336 | if (strchr(h, ':')) { |
| 339 | if (h[1] == '\0') | 337 | if (h[1] == '\0') |
| 340 | h = NULL; | 338 | h = NULL; |
| 341 | #if OPENSSL_USE_IPV6 | ||
| 342 | hint.ai_family = AF_INET6; | 339 | hint.ai_family = AF_INET6; |
| 343 | #else | ||
| 344 | h = NULL; | ||
| 345 | #endif | ||
| 346 | } else if (h[0] == '*' && h[1] == '\0') { | 340 | } else if (h[0] == '*' && h[1] == '\0') { |
| 347 | hint.ai_family = AF_INET; | 341 | hint.ai_family = AF_INET; |
| 348 | h = NULL; | 342 | h = NULL; |
| @@ -405,13 +399,10 @@ again: | |||
| 405 | (err_num == EADDRINUSE)) { | 399 | (err_num == EADDRINUSE)) { |
| 406 | client = server; | 400 | client = server; |
| 407 | if (h == NULL || strcmp(h, "*") == 0) { | 401 | if (h == NULL || strcmp(h, "*") == 0) { |
| 408 | #if OPENSSL_USE_IPV6 | ||
| 409 | if (client.sa.sa_family == AF_INET6) { | 402 | if (client.sa.sa_family == AF_INET6) { |
| 410 | memset(&client.sa_in6.sin6_addr, 0, sizeof(client.sa_in6.sin6_addr)); | 403 | memset(&client.sa_in6.sin6_addr, 0, sizeof(client.sa_in6.sin6_addr)); |
| 411 | client.sa_in6.sin6_addr.s6_addr[15] = 1; | 404 | client.sa_in6.sin6_addr.s6_addr[15] = 1; |
| 412 | } else | 405 | } else if (client.sa.sa_family == AF_INET) { |
| 413 | #endif | ||
| 414 | if (client.sa.sa_family == AF_INET) { | ||
| 415 | client.sa_in.sin_addr.s_addr = htonl(0x7F000001); | 406 | client.sa_in.sin_addr.s_addr = htonl(0x7F000001); |
| 416 | } else | 407 | } else |
| 417 | goto err; | 408 | goto err; |
| @@ -490,9 +481,7 @@ BIO_accept(int sock, char **addr) | |||
| 490 | union { | 481 | union { |
| 491 | struct sockaddr sa; | 482 | struct sockaddr sa; |
| 492 | struct sockaddr_in sa_in; | 483 | struct sockaddr_in sa_in; |
| 493 | #if OPENSSL_USE_IPV6 | ||
| 494 | struct sockaddr_in6 sa_in6; | 484 | struct sockaddr_in6 sa_in6; |
| 495 | #endif | ||
| 496 | } from; | 485 | } from; |
| 497 | } sa; | 486 | } sa; |
| 498 | 487 | ||
diff --git a/src/lib/libcrypto/bio/bss_bio.c b/src/lib/libcrypto/bio/bss_bio.c index 27faaa211c..d31e59872e 100644 --- a/src/lib/libcrypto/bio/bss_bio.c +++ b/src/lib/libcrypto/bio/bss_bio.c | |||
| @@ -83,8 +83,6 @@ | |||
| 83 | #include <openssl/err.h> | 83 | #include <openssl/err.h> |
| 84 | #include <openssl/crypto.h> | 84 | #include <openssl/crypto.h> |
| 85 | 85 | ||
| 86 | #include "e_os.h" | ||
| 87 | |||
| 88 | static int bio_new(BIO *bio); | 86 | static int bio_new(BIO *bio); |
| 89 | static int bio_free(BIO *bio); | 87 | static int bio_free(BIO *bio); |
| 90 | static int bio_read(BIO *bio, char *buf, int size); | 88 | static int bio_read(BIO *bio, char *buf, int size); |
diff --git a/src/lib/libcrypto/bio/bss_dgram.c b/src/lib/libcrypto/bio/bss_dgram.c index e950528a42..79a6c2aa67 100644 --- a/src/lib/libcrypto/bio/bss_dgram.c +++ b/src/lib/libcrypto/bio/bss_dgram.c | |||
| @@ -147,9 +147,7 @@ typedef struct bio_dgram_data_st { | |||
| 147 | union { | 147 | union { |
| 148 | struct sockaddr sa; | 148 | struct sockaddr sa; |
| 149 | struct sockaddr_in sa_in; | 149 | struct sockaddr_in sa_in; |
| 150 | #if OPENSSL_USE_IPV6 | ||
| 151 | struct sockaddr_in6 sa_in6; | 150 | struct sockaddr_in6 sa_in6; |
| 152 | #endif | ||
| 153 | } peer; | 151 | } peer; |
| 154 | unsigned int connected; | 152 | unsigned int connected; |
| 155 | unsigned int _errno; | 153 | unsigned int _errno; |
| @@ -169,9 +167,7 @@ typedef struct bio_dgram_sctp_data_st { | |||
| 169 | union { | 167 | union { |
| 170 | struct sockaddr sa; | 168 | struct sockaddr sa; |
| 171 | struct sockaddr_in sa_in; | 169 | struct sockaddr_in sa_in; |
| 172 | #if OPENSSL_USE_IPV6 | ||
| 173 | struct sockaddr_in6 sa_in6; | 170 | struct sockaddr_in6 sa_in6; |
| 174 | #endif | ||
| 175 | } peer; | 171 | } peer; |
| 176 | unsigned int connected; | 172 | unsigned int connected; |
| 177 | unsigned int _errno; | 173 | unsigned int _errno; |
| @@ -346,9 +342,7 @@ dgram_read(BIO *b, char *out, int outl) | |||
| 346 | union { | 342 | union { |
| 347 | struct sockaddr sa; | 343 | struct sockaddr sa; |
| 348 | struct sockaddr_in sa_in; | 344 | struct sockaddr_in sa_in; |
| 349 | #if OPENSSL_USE_IPV6 | ||
| 350 | struct sockaddr_in6 sa_in6; | 345 | struct sockaddr_in6 sa_in6; |
| 351 | #endif | ||
| 352 | } peer; | 346 | } peer; |
| 353 | } sa; | 347 | } sa; |
| 354 | 348 | ||
| @@ -395,10 +389,8 @@ dgram_write(BIO *b, const char *in, int inl) | |||
| 395 | 389 | ||
| 396 | if (data->peer.sa.sa_family == AF_INET) | 390 | if (data->peer.sa.sa_family == AF_INET) |
| 397 | peerlen = sizeof(data->peer.sa_in); | 391 | peerlen = sizeof(data->peer.sa_in); |
| 398 | #if OPENSSL_USE_IPV6 | ||
| 399 | else if (data->peer.sa.sa_family == AF_INET6) | 392 | else if (data->peer.sa.sa_family == AF_INET6) |
| 400 | peerlen = sizeof(data->peer.sa_in6); | 393 | peerlen = sizeof(data->peer.sa_in6); |
| 401 | #endif | ||
| 402 | ret = sendto(b->num, in, inl, 0, &data->peer.sa, peerlen); | 394 | ret = sendto(b->num, in, inl, 0, &data->peer.sa, peerlen); |
| 403 | } | 395 | } |
| 404 | 396 | ||
| @@ -432,9 +424,7 @@ dgram_ctrl(BIO *b, int cmd, long num, void *ptr) | |||
| 432 | union { | 424 | union { |
| 433 | struct sockaddr sa; | 425 | struct sockaddr sa; |
| 434 | struct sockaddr_in s4; | 426 | struct sockaddr_in s4; |
| 435 | #if OPENSSL_USE_IPV6 | ||
| 436 | struct sockaddr_in6 s6; | 427 | struct sockaddr_in6 s6; |
| 437 | #endif | ||
| 438 | } addr; | 428 | } addr; |
| 439 | #endif | 429 | #endif |
| 440 | 430 | ||
| @@ -485,11 +475,9 @@ dgram_ctrl(BIO *b, int cmd, long num, void *ptr) | |||
| 485 | case AF_INET: | 475 | case AF_INET: |
| 486 | memcpy(&data->peer, to, sizeof(data->peer.sa_in)); | 476 | memcpy(&data->peer, to, sizeof(data->peer.sa_in)); |
| 487 | break; | 477 | break; |
| 488 | #if OPENSSL_USE_IPV6 | ||
| 489 | case AF_INET6: | 478 | case AF_INET6: |
| 490 | memcpy(&data->peer, to, sizeof(data->peer.sa_in6)); | 479 | memcpy(&data->peer, to, sizeof(data->peer.sa_in6)); |
| 491 | break; | 480 | break; |
| 492 | #endif | ||
| 493 | default: | 481 | default: |
| 494 | memcpy(&data->peer, to, sizeof(data->peer.sa)); | 482 | memcpy(&data->peer, to, sizeof(data->peer.sa)); |
| 495 | break; | 483 | break; |
| @@ -512,7 +500,7 @@ dgram_ctrl(BIO *b, int cmd, long num, void *ptr) | |||
| 512 | sizeof(sockopt_val))) < 0) | 500 | sizeof(sockopt_val))) < 0) |
| 513 | perror("setsockopt"); | 501 | perror("setsockopt"); |
| 514 | break; | 502 | break; |
| 515 | #if OPENSSL_USE_IPV6 && defined(IPV6_MTU_DISCOVER) && defined(IPV6_PMTUDISC_DO) | 503 | #if defined(IPV6_MTU_DISCOVER) && defined(IPV6_PMTUDISC_DO) |
| 516 | case AF_INET6: | 504 | case AF_INET6: |
| 517 | sockopt_val = IPV6_PMTUDISC_DO; | 505 | sockopt_val = IPV6_PMTUDISC_DO; |
| 518 | if ((ret = setsockopt(b->num, IPPROTO_IPV6, | 506 | if ((ret = setsockopt(b->num, IPPROTO_IPV6, |
| @@ -552,7 +540,7 @@ dgram_ctrl(BIO *b, int cmd, long num, void *ptr) | |||
| 552 | ret = data->mtu; | 540 | ret = data->mtu; |
| 553 | } | 541 | } |
| 554 | break; | 542 | break; |
| 555 | #if OPENSSL_USE_IPV6 && defined(IPV6_MTU) | 543 | #if defined(IPV6_MTU) |
| 556 | case AF_INET6: | 544 | case AF_INET6: |
| 557 | if ((ret = getsockopt(b->num, IPPROTO_IPV6, IPV6_MTU, | 545 | if ((ret = getsockopt(b->num, IPPROTO_IPV6, IPV6_MTU, |
| 558 | (void *)&sockopt_val, &sockopt_len)) < 0 || | 546 | (void *)&sockopt_val, &sockopt_len)) < 0 || |
| @@ -580,7 +568,6 @@ default: | |||
| 580 | case AF_INET: | 568 | case AF_INET: |
| 581 | ret = 576 - 20 - 8; | 569 | ret = 576 - 20 - 8; |
| 582 | break; | 570 | break; |
| 583 | #if OPENSSL_USE_IPV6 | ||
| 584 | case AF_INET6: | 571 | case AF_INET6: |
| 585 | #ifdef IN6_IS_ADDR_V4MAPPED | 572 | #ifdef IN6_IS_ADDR_V4MAPPED |
| 586 | if (IN6_IS_ADDR_V4MAPPED(&data->peer.sa_in6.sin6_addr)) | 573 | if (IN6_IS_ADDR_V4MAPPED(&data->peer.sa_in6.sin6_addr)) |
| @@ -589,7 +576,6 @@ default: | |||
| 589 | #endif | 576 | #endif |
| 590 | ret = 1280 - 40 - 8; | 577 | ret = 1280 - 40 - 8; |
| 591 | break; | 578 | break; |
| 592 | #endif | ||
| 593 | default: | 579 | default: |
| 594 | ret = 576 - 20 - 8; | 580 | ret = 576 - 20 - 8; |
| 595 | break; | 581 | break; |
| @@ -611,11 +597,9 @@ default: | |||
| 611 | case AF_INET: | 597 | case AF_INET: |
| 612 | memcpy(&data->peer, to, sizeof(data->peer.sa_in)); | 598 | memcpy(&data->peer, to, sizeof(data->peer.sa_in)); |
| 613 | break; | 599 | break; |
| 614 | #if OPENSSL_USE_IPV6 | ||
| 615 | case AF_INET6: | 600 | case AF_INET6: |
| 616 | memcpy(&data->peer, to, sizeof(data->peer.sa_in6)); | 601 | memcpy(&data->peer, to, sizeof(data->peer.sa_in6)); |
| 617 | break; | 602 | break; |
| 618 | #endif | ||
| 619 | default: | 603 | default: |
| 620 | memcpy(&data->peer, to, sizeof(data->peer.sa)); | 604 | memcpy(&data->peer, to, sizeof(data->peer.sa)); |
| 621 | break; | 605 | break; |
| @@ -630,11 +614,9 @@ default: | |||
| 630 | case AF_INET: | 614 | case AF_INET: |
| 631 | ret = sizeof(data->peer.sa_in); | 615 | ret = sizeof(data->peer.sa_in); |
| 632 | break; | 616 | break; |
| 633 | #if OPENSSL_USE_IPV6 | ||
| 634 | case AF_INET6: | 617 | case AF_INET6: |
| 635 | ret = sizeof(data->peer.sa_in6); | 618 | ret = sizeof(data->peer.sa_in6); |
| 636 | break; | 619 | break; |
| 637 | #endif | ||
| 638 | default: | 620 | default: |
| 639 | ret = sizeof(data->peer.sa); | 621 | ret = sizeof(data->peer.sa); |
| 640 | break; | 622 | break; |
| @@ -649,11 +631,9 @@ default: | |||
| 649 | case AF_INET: | 631 | case AF_INET: |
| 650 | memcpy(&data->peer, to, sizeof(data->peer.sa_in)); | 632 | memcpy(&data->peer, to, sizeof(data->peer.sa_in)); |
| 651 | break; | 633 | break; |
| 652 | #if OPENSSL_USE_IPV6 | ||
| 653 | case AF_INET6: | 634 | case AF_INET6: |
| 654 | memcpy(&data->peer, to, sizeof(data->peer.sa_in6)); | 635 | memcpy(&data->peer, to, sizeof(data->peer.sa_in6)); |
| 655 | break; | 636 | break; |
| 656 | #endif | ||
| 657 | default: | 637 | default: |
| 658 | memcpy(&data->peer, to, sizeof(data->peer.sa)); | 638 | memcpy(&data->peer, to, sizeof(data->peer.sa)); |
| 659 | break; | 639 | break; |
diff --git a/src/lib/libcrypto/cast/cast_lcl.h b/src/lib/libcrypto/cast/cast_lcl.h index cf0ca9e607..ec14804fbb 100644 --- a/src/lib/libcrypto/cast/cast_lcl.h +++ b/src/lib/libcrypto/cast/cast_lcl.h | |||
| @@ -56,9 +56,6 @@ | |||
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | |||
| 60 | #include "e_os.h" | ||
| 61 | |||
| 62 | #ifdef OPENSSL_SYS_WIN32 | 59 | #ifdef OPENSSL_SYS_WIN32 |
| 63 | #include <stdlib.h> | 60 | #include <stdlib.h> |
| 64 | #endif | 61 | #endif |
diff --git a/src/lib/libcrypto/conf/conf_api.c b/src/lib/libcrypto/conf/conf_api.c index dc6eb579bf..f484000d0c 100644 --- a/src/lib/libcrypto/conf/conf_api.c +++ b/src/lib/libcrypto/conf/conf_api.c | |||
| @@ -68,7 +68,6 @@ | |||
| 68 | #include <string.h> | 68 | #include <string.h> |
| 69 | #include <openssl/conf.h> | 69 | #include <openssl/conf.h> |
| 70 | #include <openssl/conf_api.h> | 70 | #include <openssl/conf_api.h> |
| 71 | #include "e_os.h" | ||
| 72 | 71 | ||
| 73 | static void value_free_hash_doall_arg(CONF_VALUE *a, | 72 | static void value_free_hash_doall_arg(CONF_VALUE *a, |
| 74 | LHASH_OF(CONF_VALUE) *conf); | 73 | LHASH_OF(CONF_VALUE) *conf); |
diff --git a/src/lib/libcrypto/cryptlib.h b/src/lib/libcrypto/cryptlib.h index e8ec91f9c1..a785024159 100644 --- a/src/lib/libcrypto/cryptlib.h +++ b/src/lib/libcrypto/cryptlib.h | |||
| @@ -64,8 +64,6 @@ | |||
| 64 | #include <string.h> | 64 | #include <string.h> |
| 65 | #include <unistd.h> | 65 | #include <unistd.h> |
| 66 | 66 | ||
| 67 | #include "e_os.h" | ||
| 68 | |||
| 69 | #include <openssl/crypto.h> | 67 | #include <openssl/crypto.h> |
| 70 | #include <openssl/buffer.h> | 68 | #include <openssl/buffer.h> |
| 71 | #include <openssl/bio.h> | 69 | #include <openssl/bio.h> |
diff --git a/src/lib/libcrypto/des/cfb64ede.c b/src/lib/libcrypto/des/cfb64ede.c index de34ecceb9..453b078d30 100644 --- a/src/lib/libcrypto/des/cfb64ede.c +++ b/src/lib/libcrypto/des/cfb64ede.c | |||
| @@ -57,7 +57,6 @@ | |||
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include "des_locl.h" | 59 | #include "des_locl.h" |
| 60 | #include "e_os.h" | ||
| 61 | 60 | ||
| 62 | /* The input and output encrypted as though 64bit cfb mode is being | 61 | /* The input and output encrypted as though 64bit cfb mode is being |
| 63 | * used. The extra state information to record how much of the | 62 | * used. The extra state information to record how much of the |
diff --git a/src/lib/libcrypto/des/cfb_enc.c b/src/lib/libcrypto/des/cfb_enc.c index 720f29a28e..dd5237a86d 100644 --- a/src/lib/libcrypto/des/cfb_enc.c +++ b/src/lib/libcrypto/des/cfb_enc.c | |||
| @@ -56,7 +56,6 @@ | |||
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include "e_os.h" | ||
| 60 | #include "des_locl.h" | 59 | #include "des_locl.h" |
| 61 | #include <assert.h> | 60 | #include <assert.h> |
| 62 | 61 | ||
diff --git a/src/lib/libcrypto/o_str.c b/src/lib/libcrypto/o_str.c index a22b6d7d09..6d56673b44 100644 --- a/src/lib/libcrypto/o_str.c +++ b/src/lib/libcrypto/o_str.c | |||
| @@ -3,7 +3,6 @@ | |||
| 3 | */ | 3 | */ |
| 4 | 4 | ||
| 5 | #include <ctype.h> | 5 | #include <ctype.h> |
| 6 | #include <e_os.h> | ||
| 7 | #include <string.h> | 6 | #include <string.h> |
| 8 | 7 | ||
| 9 | int OPENSSL_strcasecmp(const char *str1, const char *str2); | 8 | int OPENSSL_strcasecmp(const char *str1, const char *str2); |
diff --git a/src/lib/libcrypto/ocsp/ocsp_ht.c b/src/lib/libcrypto/ocsp/ocsp_ht.c index db20759d3b..4bb6fce83c 100644 --- a/src/lib/libcrypto/ocsp/ocsp_ht.c +++ b/src/lib/libcrypto/ocsp/ocsp_ht.c | |||
| @@ -60,7 +60,6 @@ | |||
| 60 | #include <stdlib.h> | 60 | #include <stdlib.h> |
| 61 | #include <ctype.h> | 61 | #include <ctype.h> |
| 62 | #include <string.h> | 62 | #include <string.h> |
| 63 | #include "e_os.h" | ||
| 64 | #include <openssl/asn1.h> | 63 | #include <openssl/asn1.h> |
| 65 | #include <openssl/ocsp.h> | 64 | #include <openssl/ocsp.h> |
| 66 | #include <openssl/err.h> | 65 | #include <openssl/err.h> |
diff --git a/src/lib/libcrypto/rand/randfile.c b/src/lib/libcrypto/rand/randfile.c index 23efa17388..2525804668 100644 --- a/src/lib/libcrypto/rand/randfile.c +++ b/src/lib/libcrypto/rand/randfile.c | |||
| @@ -61,7 +61,6 @@ | |||
| 61 | #include <stdlib.h> | 61 | #include <stdlib.h> |
| 62 | #include <string.h> | 62 | #include <string.h> |
| 63 | 63 | ||
| 64 | #include "e_os.h" | ||
| 65 | #include <openssl/crypto.h> | 64 | #include <openssl/crypto.h> |
| 66 | #include <openssl/rand.h> | 65 | #include <openssl/rand.h> |
| 67 | #include <openssl/buffer.h> | 66 | #include <openssl/buffer.h> |
diff --git a/src/lib/libcrypto/rc5/rc5test.c b/src/lib/libcrypto/rc5/rc5test.c index ce3d0cc16f..1a0260ee1d 100644 --- a/src/lib/libcrypto/rc5/rc5test.c +++ b/src/lib/libcrypto/rc5/rc5test.c | |||
| @@ -63,8 +63,6 @@ | |||
| 63 | #include <string.h> | 63 | #include <string.h> |
| 64 | #include <stdlib.h> | 64 | #include <stdlib.h> |
| 65 | 65 | ||
| 66 | #include "../e_os.h" | ||
| 67 | |||
| 68 | #ifdef OPENSSL_NO_RC5 | 66 | #ifdef OPENSSL_NO_RC5 |
| 69 | int main(int argc, char *argv[]) | 67 | int main(int argc, char *argv[]) |
| 70 | { | 68 | { |
