diff options
| author | tedu <> | 2014-04-17 22:22:28 +0000 |
|---|---|---|
| committer | tedu <> | 2014-04-17 22:22:28 +0000 |
| commit | 3bd2be6a216cb902461209117b8430ffa01454c6 (patch) | |
| tree | 16c370957860a29bc0874b03de029d0dc7ac0a86 /src/lib/libssl/src | |
| parent | 94d35b5b00cda89723429cae9d9158a8d9df2432 (diff) | |
| download | openbsd-3bd2be6a216cb902461209117b8430ffa01454c6.tar.gz openbsd-3bd2be6a216cb902461209117b8430ffa01454c6.tar.bz2 openbsd-3bd2be6a216cb902461209117b8430ffa01454c6.zip | |
more windows/netware leftovers
Diffstat (limited to 'src/lib/libssl/src')
| -rw-r--r-- | src/lib/libssl/src/crypto/bio/b_sock.c | 21 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/bio/bss_dgram.c | 4 |
2 files changed, 3 insertions, 22 deletions
diff --git a/src/lib/libssl/src/crypto/bio/b_sock.c b/src/lib/libssl/src/crypto/bio/b_sock.c index 43b27e0406..b43cb713a7 100644 --- a/src/lib/libssl/src/crypto/bio/b_sock.c +++ b/src/lib/libssl/src/crypto/bio/b_sock.c | |||
| @@ -81,21 +81,6 @@ | |||
| 81 | #define MAX_LISTEN 32 | 81 | #define MAX_LISTEN 32 |
| 82 | #endif | 82 | #endif |
| 83 | 83 | ||
| 84 | #if defined(OPENSSL_SYS_WINDOWS) || (defined(OPENSSL_SYS_NETWARE) && !defined(NETWARE_BSDSOCK)) | ||
| 85 | static int wsa_init_done = 0; | ||
| 86 | #endif | ||
| 87 | |||
| 88 | /* | ||
| 89 | * WSAAPI specifier is required to make indirect calls to run-time | ||
| 90 | * linked WinSock 2 functions used in this module, to be specific | ||
| 91 | * [get|free]addrinfo and getnameinfo. This is because WinSock uses | ||
| 92 | * uses non-C calling convention, __stdcall vs. __cdecl, on x86 | ||
| 93 | * Windows. On non-WinSock platforms WSAAPI needs to be void. | ||
| 94 | */ | ||
| 95 | #ifndef WSAAPI | ||
| 96 | #define WSAAPI | ||
| 97 | #endif | ||
| 98 | |||
| 99 | static int get_ip(const char *str, unsigned char *ip); | 84 | static int get_ip(const char *str, unsigned char *ip); |
| 100 | 85 | ||
| 101 | int | 86 | int |
| @@ -324,13 +309,13 @@ BIO_get_accept_socket(char *host, int bind_mode) | |||
| 324 | do { | 309 | do { |
| 325 | static union { | 310 | static union { |
| 326 | void *p; | 311 | void *p; |
| 327 | int (WSAAPI *f)(const char *, const char *, | 312 | int (*f)(const char *, const char *, |
| 328 | const struct addrinfo *, | 313 | const struct addrinfo *, |
| 329 | struct addrinfo **); | 314 | struct addrinfo **); |
| 330 | } p_getaddrinfo = {NULL}; | 315 | } p_getaddrinfo = {NULL}; |
| 331 | static union { | 316 | static union { |
| 332 | void *p; | 317 | void *p; |
| 333 | void (WSAAPI *f)(struct addrinfo *); | 318 | void (*f)(struct addrinfo *); |
| 334 | } p_freeaddrinfo = {NULL}; | 319 | } p_freeaddrinfo = {NULL}; |
| 335 | struct addrinfo *res, hint; | 320 | struct addrinfo *res, hint; |
| 336 | 321 | ||
| @@ -536,7 +521,7 @@ BIO_accept(int sock, char **addr) | |||
| 536 | size_t nl; | 521 | size_t nl; |
| 537 | static union { | 522 | static union { |
| 538 | void *p; | 523 | void *p; |
| 539 | int (WSAAPI *f)(const struct sockaddr *, | 524 | int (*f)(const struct sockaddr *, |
| 540 | size_t/*socklen_t*/, char *, size_t, | 525 | size_t/*socklen_t*/, char *, size_t, |
| 541 | char *, size_t, int); | 526 | char *, size_t, int); |
| 542 | } p_getnameinfo = {NULL}; | 527 | } p_getnameinfo = {NULL}; |
diff --git a/src/lib/libssl/src/crypto/bio/bss_dgram.c b/src/lib/libssl/src/crypto/bio/bss_dgram.c index c1e85a21c6..69cf436f44 100644 --- a/src/lib/libssl/src/crypto/bio/bss_dgram.c +++ b/src/lib/libssl/src/crypto/bio/bss_dgram.c | |||
| @@ -398,11 +398,7 @@ dgram_write(BIO *b, const char *in, int inl) | |||
| 398 | else if (data->peer.sa.sa_family == AF_INET6) | 398 | else if (data->peer.sa.sa_family == AF_INET6) |
| 399 | peerlen = sizeof(data->peer.sa_in6); | 399 | peerlen = sizeof(data->peer.sa_in6); |
| 400 | #endif | 400 | #endif |
| 401 | #if defined(NETWARE_CLIB) && defined(NETWARE_BSDSOCK) | ||
| 402 | ret = sendto(b->num, (char *)in, inl, 0, &data->peer.sa, peerlen); | ||
| 403 | #else | ||
| 404 | ret = sendto(b->num, in, inl, 0, &data->peer.sa, peerlen); | 401 | ret = sendto(b->num, in, inl, 0, &data->peer.sa, peerlen); |
| 405 | #endif | ||
| 406 | } | 402 | } |
| 407 | 403 | ||
| 408 | BIO_clear_retry_flags(b); | 404 | BIO_clear_retry_flags(b); |
