diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-12-01 17:40:46 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-12-01 17:40:46 +0000 |
commit | 82e448b92b856ba610b5f92a714c66d60f93b1c1 (patch) | |
tree | 127ef0f44a419a79f11abd6b30699f777514a1d1 /ssl/d1_clnt.c | |
parent | b172352b52f224de091651bc80e67791664fb961 (diff) |
PR: 2115
Submitted by: Robin Seggelmann <seggelmann@fh-muenster.de>
Approved by: steve@openssl.org
Add Renegotiation extension to DTLS, fix DTLS ClientHello processing bug.
Diffstat (limited to 'ssl/d1_clnt.c')
-rw-r--r-- | ssl/d1_clnt.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ssl/d1_clnt.c b/ssl/d1_clnt.c index d876c5974c..d71c7f2c96 100644 --- a/ssl/d1_clnt.c +++ b/ssl/d1_clnt.c @@ -632,7 +632,15 @@ int dtls1_client_hello(SSL *s) *(p++)=comp->id; } *(p++)=0; /* Add the NULL method */ - + +#ifndef OPENSSL_NO_TLSEXT + if ((p = ssl_add_clienthello_dtlsext(s, p, buf+SSL3_RT_MAX_PLAIN_LENGTH)) == NULL) + { + SSLerr(SSL_F_SSL3_CLIENT_HELLO,ERR_R_INTERNAL_ERROR); + goto err; + } +#endif + l=(p-d); d=buf; |