From: Bodo Möller Date: Thu, 5 Jan 2012 10:22:39 +0000 (+0000) Subject: Fix for builds without DTLS support. X-Git-Tag: OpenSSL_1_0_1-beta2~17 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=409d2a1b71894f7ef72c4ee9a2db552e4d067858;p=oweals%2Fopenssl.git Fix for builds without DTLS support. Submitted by: Brian Carlstrom --- diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index f0a629c767..f82d071d6e 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -1079,8 +1079,10 @@ long SSL_ctrl(SSL *s,int cmd,long larg,void *parg) s->max_cert_list=larg; return(l); case SSL_CTRL_SET_MTU: +#ifndef OPENSSL_NO_DTLS1 if (larg < (long)dtls1_min_mtu()) return 0; +#endif if (SSL_version(s) == DTLS1_VERSION || SSL_version(s) == DTLS1_BAD_VER)