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

Scott Neugroschl scott_n at xypro.com
Mon Apr 20 18:32:15 UTC 2015


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 |



More information about the openssl-users mailing list