summaryrefslogtreecommitdiff
path: root/ssl/d1_srvr.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2014-07-15 12:20:30 +0100
committerDr. Stephen Henson <steve@openssl.org>2014-07-15 12:20:30 +0100
commit2054eb771ea29378f90d3a77c2f4015b17de702d (patch)
tree4958a3ead173016fba2e9c71c858b75dc2450947 /ssl/d1_srvr.c
parentea0ceb11a0ef518e9048cf6a995a2863c666c523 (diff)
downloadopenssl-new-2054eb771ea29378f90d3a77c2f4015b17de702d.tar.gz
Add ECC extensions with DTLS.
PR#3449
Diffstat (limited to 'ssl/d1_srvr.c')
-rw-r--r--ssl/d1_srvr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ssl/d1_srvr.c b/ssl/d1_srvr.c
index 1384ab0cbf..ef9c347edd 100644
--- a/ssl/d1_srvr.c
+++ b/ssl/d1_srvr.c
@@ -980,6 +980,11 @@ int dtls1_send_server_hello(SSL *s)
#endif
#ifndef OPENSSL_NO_TLSEXT
+ if (ssl_prepare_serverhello_tlsext(s) <= 0)
+ {
+ SSLerr(SSL_F_DTLS1_SEND_SERVER_HELLO,SSL_R_SERVERHELLO_TLSEXT);
+ return -1;
+ }
if ((p = ssl_add_serverhello_tlsext(s, p, buf+SSL3_RT_MAX_PLAIN_LENGTH)) == NULL)
{
SSLerr(SSL_F_DTLS1_SEND_SERVER_HELLO,ERR_R_INTERNAL_ERROR);