[openssl-users] BIO_new_dgram() called in apps/s_server.c

Scott Neugroschl scott_n at xypro.com
Mon Apr 20 18:34:48 UTC 2015


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?

---
Scott Neugroschl | XYPRO Technology Corporation
4100 Guardian Street | Suite 100 |Simi Valley, CA 93063 | Phone 805 583-2874|Fax 805 583-0124 |

_______________________________________________
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users


More information about the openssl-users mailing list