[openssl-users] BIO_new_dgram() called in apps/s_server.c
Jakob Bohm
jb-openssl at wisemo.com
Tue Apr 21 11:12:59 UTC 2015
Obvious simplification:
====cut here====
--- s_server.c.orig 2015-03-19 17:17:53 -0700
+++ s_server.c 2015-04-20 11:27:30 -0700
@@ -2183,6 +2183,7 @@
# endif
#endif
+#ifndef OPENSSL_NO_DGRAM
if (stype == SOCK_DGRAM) {
sbio = BIO_new_dgram(s, BIO_NOCLOSE); @@ -2220,6 +2221,9 @@
SSL_set_options(con, SSL_OP_COOKIE_EXCHANGE);
} else
+#endif
sbio = BIO_new_socket(s, BIO_NOCLOSE);
if (s_nbio_test) {
====cut here====
On 20/04/2015 20:34, Scott Neugroschl wrote:
> Correction to subject, it's s_server.c My typo.
>
> -----Original Message-----
> From: openssl-users [mailto:openssl-users-bounces at openssl.org] On Behalf Of Scott Neugroschl
> Sent: Monday, April 20, 2015 11:32 AM
> To: openssl-users at mta.opensslfoundation.net
> Subject: [openssl-users] BIO_new_dgram() called in apps/s_server.h
>
>
> I am building OpenSSL 1.0.2a with no-dgram and no-dtls1. When I do so, I get a linker error that BIO_new_dgram() is undefined.
>
> The following appears to fix the issue:
>
> ====cut here====
> --- s_server.c.orig 2015-03-19 17:17:53 -0700
> +++ s_server.c 2015-04-20 11:27:30 -0700
> @@ -2183,6 +2183,7 @@
> # endif
> #endif
>
> +#ifndef OPENSSL_NO_DGRAM
> if (stype == SOCK_DGRAM) {
>
> sbio = BIO_new_dgram(s, BIO_NOCLOSE); @@ -2220,6 +2221,9 @@
> SSL_set_options(con, SSL_OP_COOKIE_EXCHANGE);
> } else
> sbio = BIO_new_socket(s, BIO_NOCLOSE);
> +#else
> + sbio = BIO_new_socket(s, BIO_NOCLOSE); #endif
>
> if (s_nbio_test) {
> BIO *test;
> ====cut here====
>
> Does this fix make sense?
>
--
Jakob Bohm, CIO, partner, WiseMo A/S. https://www.wisemo.com
Transformervej 29, 2860 Soborg, Denmark. direct: +45 31 13 16 10
<tel:+4531131610>
This message is only for its intended recipient, delete if misaddressed.
WiseMo - Remote Service Management for PCs, Phones and Embedded
Enjoy
Jakob
--
Jakob Bohm, CIO, Partner, WiseMo A/S. http://www.wisemo.com
Transformervej 29, 2860 Søborg, Denmark. Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
WiseMo - Remote Service Management for PCs, Phones and Embedded
More information about the openssl-users
mailing list