diff options
author | Bodo Möller <bodo@openssl.org> | 2012-01-05 10:21:49 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2012-01-05 10:21:49 +0000 |
commit | dd016b05706fd7f24b7f5582209103ef3643d8e5 (patch) | |
tree | 346f0c49ae5a167e75d537006c3f3330e7fd4c30 /ssl | |
parent | 244788464a9bb62a0bcc26f6cbc1c79c44357305 (diff) |
Fix for builds without DTLS support.
Submitted by: Brian Carlstrom
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index ac1c92e15a..23de3151bf 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -1000,8 +1000,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) |