diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2014-07-15 12:20:30 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2014-07-15 12:20:30 +0100 |
commit | 2054eb771ea29378f90d3a77c2f4015b17de702d (patch) | |
tree | 4958a3ead173016fba2e9c71c858b75dc2450947 /ssl/d1_clnt.c | |
parent | ea0ceb11a0ef518e9048cf6a995a2863c666c523 (diff) |
Add ECC extensions with DTLS.
PR#3449
Diffstat (limited to 'ssl/d1_clnt.c')
-rw-r--r-- | ssl/d1_clnt.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ssl/d1_clnt.c b/ssl/d1_clnt.c index 48e5e06bde..65dbb4aba9 100644 --- a/ssl/d1_clnt.c +++ b/ssl/d1_clnt.c @@ -876,12 +876,18 @@ int dtls1_client_hello(SSL *s) *(p++)=0; /* Add the NULL method */ #ifndef OPENSSL_NO_TLSEXT + /* TLS extensions*/ + if (ssl_prepare_clienthello_tlsext(s) <= 0) + { + SSLerr(SSL_F_DTLS1_CLIENT_HELLO,SSL_R_CLIENTHELLO_TLSEXT); + goto err; + } if ((p = ssl_add_clienthello_tlsext(s, p, buf+SSL3_RT_MAX_PLAIN_LENGTH)) == NULL) { SSLerr(SSL_F_DTLS1_CLIENT_HELLO,ERR_R_INTERNAL_ERROR); goto err; } -#endif +#endif l=(p-d); d=buf; |