summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjsing <>2014-05-02 17:05:41 +0000
committerjsing <>2014-05-02 17:05:41 +0000
commit35d237a3429c2b7ea2ec3a8638d58242b1002b09 (patch)
tree06483564b948e95b0b716adf324f2c98fc4981b8
parent99b79c2d43024b859c6a1404dcfe5490e7ed8c7c (diff)
downloadopenbsd-35d237a3429c2b7ea2ec3a8638d58242b1002b09.tar.gz
openbsd-35d237a3429c2b7ea2ec3a8638d58242b1002b09.tar.bz2
openbsd-35d237a3429c2b7ea2ec3a8638d58242b1002b09.zip
Nuke OPENSSL_NO_SOCK since any half sane operating system has sockets.
ok beck@
-rw-r--r--src/lib/libssl/bio_ssl.c4
-rw-r--r--src/lib/libssl/src/apps/ocsp.c9
-rw-r--r--src/lib/libssl/src/apps/progs.h8
-rw-r--r--src/lib/libssl/src/apps/s_socket.c2
-rw-r--r--src/lib/libssl/src/ssl/bio_ssl.c4
-rw-r--r--src/lib/libssl/src/ssl/ssl.h2
-rw-r--r--src/lib/libssl/src/ssl/ssl_lib.c2
-rw-r--r--src/lib/libssl/ssl.h2
-rw-r--r--src/lib/libssl/ssl_lib.c2
9 files changed, 0 insertions, 35 deletions
diff --git a/src/lib/libssl/bio_ssl.c b/src/lib/libssl/bio_ssl.c
index 4c5c5ac3de..96ba1ad09c 100644
--- a/src/lib/libssl/bio_ssl.c
+++ b/src/lib/libssl/bio_ssl.c
@@ -509,7 +509,6 @@ ssl_puts(BIO *bp, const char *str)
509BIO * 509BIO *
510BIO_new_buffer_ssl_connect(SSL_CTX *ctx) 510BIO_new_buffer_ssl_connect(SSL_CTX *ctx)
511{ 511{
512#ifndef OPENSSL_NO_SOCK
513 BIO *ret = NULL, *buf = NULL, *ssl = NULL; 512 BIO *ret = NULL, *buf = NULL, *ssl = NULL;
514 513
515 if ((buf = BIO_new(BIO_f_buffer())) == NULL) 514 if ((buf = BIO_new(BIO_f_buffer())) == NULL)
@@ -524,14 +523,12 @@ err:
524 BIO_free(buf); 523 BIO_free(buf);
525 if (ssl != NULL) 524 if (ssl != NULL)
526 BIO_free(ssl); 525 BIO_free(ssl);
527#endif
528 return (NULL); 526 return (NULL);
529} 527}
530 528
531BIO * 529BIO *
532BIO_new_ssl_connect(SSL_CTX *ctx) 530BIO_new_ssl_connect(SSL_CTX *ctx)
533{ 531{
534#ifndef OPENSSL_NO_SOCK
535 BIO *ret = NULL, *con = NULL, *ssl = NULL; 532 BIO *ret = NULL, *con = NULL, *ssl = NULL;
536 533
537 if ((con = BIO_new(BIO_s_connect())) == NULL) 534 if ((con = BIO_new(BIO_s_connect())) == NULL)
@@ -544,7 +541,6 @@ BIO_new_ssl_connect(SSL_CTX *ctx)
544err: 541err:
545 if (con != NULL) 542 if (con != NULL)
546 BIO_free(con); 543 BIO_free(con);
547#endif
548 return (NULL); 544 return (NULL);
549} 545}
550 546
diff --git a/src/lib/libssl/src/apps/ocsp.c b/src/lib/libssl/src/apps/ocsp.c
index 5b296a96b7..461f21d6eb 100644
--- a/src/lib/libssl/src/apps/ocsp.c
+++ b/src/lib/libssl/src/apps/ocsp.c
@@ -627,15 +627,10 @@ redo_accept:
627 if (cbio) 627 if (cbio)
628 send_ocsp_response(cbio, resp); 628 send_ocsp_response(cbio, resp);
629 } else if (host) { 629 } else if (host) {
630#ifndef OPENSSL_NO_SOCK
631 resp = process_responder(bio_err, req, host, path, 630 resp = process_responder(bio_err, req, host, path,
632 port, use_ssl, headers, req_timeout); 631 port, use_ssl, headers, req_timeout);
633 if (!resp) 632 if (!resp)
634 goto end; 633 goto end;
635#else
636 BIO_printf(bio_err, "Error creating connect BIO - sockets not supported.\n");
637 goto end;
638#endif
639 } else if (respin) { 634 } else if (respin) {
640 derbio = BIO_new_file(respin, "rb"); 635 derbio = BIO_new_file(respin, "rb");
641 if (!derbio) { 636 if (!derbio) {
@@ -1019,11 +1014,7 @@ init_responder(char *port)
1019 bufbio = BIO_new(BIO_f_buffer()); 1014 bufbio = BIO_new(BIO_f_buffer());
1020 if (!bufbio) 1015 if (!bufbio)
1021 goto err; 1016 goto err;
1022#ifndef OPENSSL_NO_SOCK
1023 acbio = BIO_new_accept(port); 1017 acbio = BIO_new_accept(port);
1024#else
1025 BIO_printf(bio_err, "Error setting up accept BIO - sockets not supported.\n");
1026#endif
1027 if (!acbio) 1018 if (!acbio)
1028 goto err; 1019 goto err;
1029 BIO_set_accept_bios(acbio, bufbio); 1020 BIO_set_accept_bios(acbio, bufbio);
diff --git a/src/lib/libssl/src/apps/progs.h b/src/lib/libssl/src/apps/progs.h
index cbed562a4a..59a7b78712 100644
--- a/src/lib/libssl/src/apps/progs.h
+++ b/src/lib/libssl/src/apps/progs.h
@@ -66,9 +66,7 @@ FUNCTION functions[] = {
66 /* General functions. */ 66 /* General functions. */
67 { FUNC_TYPE_GENERAL, "asn1parse", asn1parse_main }, 67 { FUNC_TYPE_GENERAL, "asn1parse", asn1parse_main },
68 { FUNC_TYPE_GENERAL, "ca", ca_main }, 68 { FUNC_TYPE_GENERAL, "ca", ca_main },
69#if !defined(OPENSSL_NO_SOCK) && !defined(OPENSSL_NO_SSL3)
70 { FUNC_TYPE_GENERAL, "ciphers", ciphers_main }, 69 { FUNC_TYPE_GENERAL, "ciphers", ciphers_main },
71#endif
72#ifndef OPENSSL_NO_CMS 70#ifndef OPENSSL_NO_CMS
73 { FUNC_TYPE_GENERAL, "cms", cms_main }, 71 { FUNC_TYPE_GENERAL, "cms", cms_main },
74#endif 72#endif
@@ -97,15 +95,9 @@ FUNCTION functions[] = {
97 { FUNC_TYPE_GENERAL, "prime", prime_main }, 95 { FUNC_TYPE_GENERAL, "prime", prime_main },
98 { FUNC_TYPE_GENERAL, "rand", rand_main }, 96 { FUNC_TYPE_GENERAL, "rand", rand_main },
99 { FUNC_TYPE_GENERAL, "req", req_main }, 97 { FUNC_TYPE_GENERAL, "req", req_main },
100#if !defined(OPENSSL_NO_SOCK) && !defined(OPENSSL_NO_SSL3)
101 { FUNC_TYPE_GENERAL, "s_client", s_client_main }, 98 { FUNC_TYPE_GENERAL, "s_client", s_client_main },
102#endif
103#if !defined(OPENSSL_NO_SOCK) && !defined(OPENSSL_NO_SSL3)
104 { FUNC_TYPE_GENERAL, "s_server", s_server_main }, 99 { FUNC_TYPE_GENERAL, "s_server", s_server_main },
105#endif
106#if !defined(OPENSSL_NO_SOCK) && !defined(OPENSSL_NO_SSL3)
107 { FUNC_TYPE_GENERAL, "s_time", s_time_main }, 100 { FUNC_TYPE_GENERAL, "s_time", s_time_main },
108#endif
109 { FUNC_TYPE_GENERAL, "sess_id", sess_id_main }, 101 { FUNC_TYPE_GENERAL, "sess_id", sess_id_main },
110 { FUNC_TYPE_GENERAL, "smime", smime_main }, 102 { FUNC_TYPE_GENERAL, "smime", smime_main },
111#ifndef OPENSSL_NO_SPEED 103#ifndef OPENSSL_NO_SPEED
diff --git a/src/lib/libssl/src/apps/s_socket.c b/src/lib/libssl/src/apps/s_socket.c
index a7336d60dc..919ab40cd5 100644
--- a/src/lib/libssl/src/apps/s_socket.c
+++ b/src/lib/libssl/src/apps/s_socket.c
@@ -72,7 +72,6 @@
72#include "s_apps.h" 72#include "s_apps.h"
73#include <openssl/ssl.h> 73#include <openssl/ssl.h>
74 74
75#ifndef OPENSSL_NO_SOCK
76 75
77 76
78static int ssl_sock_init(void); 77static int ssl_sock_init(void);
@@ -348,4 +347,3 @@ extract_port(char *str, short *port_ptr)
348 } 347 }
349 return (1); 348 return (1);
350} 349}
351#endif
diff --git a/src/lib/libssl/src/ssl/bio_ssl.c b/src/lib/libssl/src/ssl/bio_ssl.c
index 4c5c5ac3de..96ba1ad09c 100644
--- a/src/lib/libssl/src/ssl/bio_ssl.c
+++ b/src/lib/libssl/src/ssl/bio_ssl.c
@@ -509,7 +509,6 @@ ssl_puts(BIO *bp, const char *str)
509BIO * 509BIO *
510BIO_new_buffer_ssl_connect(SSL_CTX *ctx) 510BIO_new_buffer_ssl_connect(SSL_CTX *ctx)
511{ 511{
512#ifndef OPENSSL_NO_SOCK
513 BIO *ret = NULL, *buf = NULL, *ssl = NULL; 512 BIO *ret = NULL, *buf = NULL, *ssl = NULL;
514 513
515 if ((buf = BIO_new(BIO_f_buffer())) == NULL) 514 if ((buf = BIO_new(BIO_f_buffer())) == NULL)
@@ -524,14 +523,12 @@ err:
524 BIO_free(buf); 523 BIO_free(buf);
525 if (ssl != NULL) 524 if (ssl != NULL)
526 BIO_free(ssl); 525 BIO_free(ssl);
527#endif
528 return (NULL); 526 return (NULL);
529} 527}
530 528
531BIO * 529BIO *
532BIO_new_ssl_connect(SSL_CTX *ctx) 530BIO_new_ssl_connect(SSL_CTX *ctx)
533{ 531{
534#ifndef OPENSSL_NO_SOCK
535 BIO *ret = NULL, *con = NULL, *ssl = NULL; 532 BIO *ret = NULL, *con = NULL, *ssl = NULL;
536 533
537 if ((con = BIO_new(BIO_s_connect())) == NULL) 534 if ((con = BIO_new(BIO_s_connect())) == NULL)
@@ -544,7 +541,6 @@ BIO_new_ssl_connect(SSL_CTX *ctx)
544err: 541err:
545 if (con != NULL) 542 if (con != NULL)
546 BIO_free(con); 543 BIO_free(con);
547#endif
548 return (NULL); 544 return (NULL);
549} 545}
550 546
diff --git a/src/lib/libssl/src/ssl/ssl.h b/src/lib/libssl/src/ssl/ssl.h
index 2325996f65..0e117dbca4 100644
--- a/src/lib/libssl/src/ssl/ssl.h
+++ b/src/lib/libssl/src/ssl/ssl.h
@@ -1657,11 +1657,9 @@ const char * SSL_get_cipher_list(const SSL *s, int n);
1657char * SSL_get_shared_ciphers(const SSL *s, char *buf, int len); 1657char * SSL_get_shared_ciphers(const SSL *s, char *buf, int len);
1658int SSL_get_read_ahead(const SSL * s); 1658int SSL_get_read_ahead(const SSL * s);
1659int SSL_pending(const SSL *s); 1659int SSL_pending(const SSL *s);
1660#ifndef OPENSSL_NO_SOCK
1661int SSL_set_fd(SSL *s, int fd); 1660int SSL_set_fd(SSL *s, int fd);
1662int SSL_set_rfd(SSL *s, int fd); 1661int SSL_set_rfd(SSL *s, int fd);
1663int SSL_set_wfd(SSL *s, int fd); 1662int SSL_set_wfd(SSL *s, int fd);
1664#endif
1665#ifndef OPENSSL_NO_BIO 1663#ifndef OPENSSL_NO_BIO
1666void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio); 1664void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio);
1667BIO * SSL_get_rbio(const SSL *s); 1665BIO * SSL_get_rbio(const SSL *s);
diff --git a/src/lib/libssl/src/ssl/ssl_lib.c b/src/lib/libssl/src/ssl/ssl_lib.c
index 21a48da182..195271a554 100644
--- a/src/lib/libssl/src/ssl/ssl_lib.c
+++ b/src/lib/libssl/src/ssl/ssl_lib.c
@@ -660,7 +660,6 @@ SSL_get_wfd(const SSL *s)
660 return (ret); 660 return (ret);
661} 661}
662 662
663#ifndef OPENSSL_NO_SOCK
664int 663int
665SSL_set_fd(SSL *s, int fd) 664SSL_set_fd(SSL *s, int fd)
666{ 665{
@@ -728,7 +727,6 @@ SSL_set_rfd(SSL *s, int fd)
728 err: 727 err:
729 return (ret); 728 return (ret);
730} 729}
731#endif
732 730
733 731
734/* return length of latest Finished message we sent, copy to 'buf' */ 732/* return length of latest Finished message we sent, copy to 'buf' */
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h
index 2325996f65..0e117dbca4 100644
--- a/src/lib/libssl/ssl.h
+++ b/src/lib/libssl/ssl.h
@@ -1657,11 +1657,9 @@ const char * SSL_get_cipher_list(const SSL *s, int n);
1657char * SSL_get_shared_ciphers(const SSL *s, char *buf, int len); 1657char * SSL_get_shared_ciphers(const SSL *s, char *buf, int len);
1658int SSL_get_read_ahead(const SSL * s); 1658int SSL_get_read_ahead(const SSL * s);
1659int SSL_pending(const SSL *s); 1659int SSL_pending(const SSL *s);
1660#ifndef OPENSSL_NO_SOCK
1661int SSL_set_fd(SSL *s, int fd); 1660int SSL_set_fd(SSL *s, int fd);
1662int SSL_set_rfd(SSL *s, int fd); 1661int SSL_set_rfd(SSL *s, int fd);
1663int SSL_set_wfd(SSL *s, int fd); 1662int SSL_set_wfd(SSL *s, int fd);
1664#endif
1665#ifndef OPENSSL_NO_BIO 1663#ifndef OPENSSL_NO_BIO
1666void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio); 1664void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio);
1667BIO * SSL_get_rbio(const SSL *s); 1665BIO * SSL_get_rbio(const SSL *s);
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index 21a48da182..195271a554 100644
--- a/src/lib/libssl/ssl_lib.c
+++ b/src/lib/libssl/ssl_lib.c
@@ -660,7 +660,6 @@ SSL_get_wfd(const SSL *s)
660 return (ret); 660 return (ret);
661} 661}
662 662
663#ifndef OPENSSL_NO_SOCK
664int 663int
665SSL_set_fd(SSL *s, int fd) 664SSL_set_fd(SSL *s, int fd)
666{ 665{
@@ -728,7 +727,6 @@ SSL_set_rfd(SSL *s, int fd)
728 err: 727 err:
729 return (ret); 728 return (ret);
730} 729}
731#endif
732 730
733 731
734/* return length of latest Finished message we sent, copy to 'buf' */ 732/* return length of latest Finished message we sent, copy to 'buf' */