diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2007-08-12 18:59:03 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2007-08-12 18:59:03 +0000 |
commit | 865a90eb4f0b0e3abbdd9dc2d3a4d57595575315 (patch) | |
tree | bb3e6e9df28a3f8c387b1964bf7b511de350b762 /ssl/s23_clnt.c | |
parent | 0269c4507c660dd84dbb7e5c04ce82aaa70d50d7 (diff) |
Backport of TLS extension code to OpenSSL 0.9.8.
Include server name and RFC4507bis support.
This is not compiled in by default and must be explicitly enabled with
the Configure option enable-tlsext
Diffstat (limited to 'ssl/s23_clnt.c')
-rw-r--r-- | ssl/s23_clnt.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ssl/s23_clnt.c b/ssl/s23_clnt.c index 769dabdbb8..146e1e17c1 100644 --- a/ssl/s23_clnt.c +++ b/ssl/s23_clnt.c @@ -360,6 +360,13 @@ static int ssl23_client_hello(SSL *s) *(p++)=comp->id; } *(p++)=0; /* Add the NULL method */ +#ifndef OPENSSL_NO_TLSEXT + if ((p = ssl_add_clienthello_tlsext(s, p, buf+SSL3_RT_MAX_PLAIN_LENGTH)) == NULL) + { + SSLerr(SSL_F_SSL23_CLIENT_HELLO,ERR_R_INTERNAL_ERROR); + return -1; + } +#endif l = p-d; *p = 42; |