summaryrefslogtreecommitdiffstats
path: root/ssl/tls1.h
diff options
context:
space:
mode:
Diffstat (limited to 'ssl/tls1.h')
-rw-r--r--ssl/tls1.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ssl/tls1.h b/ssl/tls1.h
index 26a7ae52d6..8e56379963 100644
--- a/ssl/tls1.h
+++ b/ssl/tls1.h
@@ -170,10 +170,12 @@ extern "C" {
#ifndef OPENSSL_NO_TLSEXT
+#define TLSEXT_MAXLEN_host_name 255
+
const char *SSL_get_servername(const SSL *s, const int type) ;
int SSL_get_servername_type(const SSL *s) ;
-#define SSL_set_tlsext_hostname(s,name) \
+#define SSL_set_tlsext_host_name(s,name) \
SSL_ctrl(s,SSL_CTRL_SET_TLSEXT_HOSTNAME,TLSEXT_NAMETYPE_host_name,(char *)name)
#define SSL_CTX_set_tlsext_servername_callback(ctx, cb) \