diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-12-01 17:41:42 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-12-01 17:41:42 +0000 |
commit | d5b8c464991797946aca0f3c5c42ddcd5cd8f7df (patch) | |
tree | 289c95af28f0228620fbcfb0eb002a30cfdb2839 /ssl/d1_clnt.c | |
parent | 7805e23588be0a8351c0d72a92767fb758f6f9f5 (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 0274745d3c..c4f820070f 100644 --- a/ssl/d1_clnt.c +++ b/ssl/d1_clnt.c @@ -635,7 +635,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; |