diff options
author | Christoph Ziebuhr <chris@codefrickler.de> | 2014-12-01 14:41:36 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-12-01 15:55:41 +0100 |
commit | b1c19610b2f4637c7dfe1b620b6474bbb9b23fe4 (patch) | |
tree | 389d9ca535db3521709ebcbd3e61b5cde19ba64b /ustream-polarssl.h | |
parent | 02d7535a45290974e7ed51afc90cf2b562c4c74c (diff) | |
download | ustream-ssl-b1c19610b2f4637c7dfe1b620b6474bbb9b23fe4.tar.gz |
Add support for Server Name Indication
Signed-off-by: Christoph Ziebuhr <chris@codefrickler.de>
Diffstat (limited to 'ustream-polarssl.h')
-rw-r--r-- | ustream-polarssl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ustream-polarssl.h b/ustream-polarssl.h index 527c14a..dfc287d 100644 --- a/ustream-polarssl.h +++ b/ustream-polarssl.h @@ -50,6 +50,11 @@ static inline char *__ustream_ssl_strerror(int error, char *buffer, int len) return buffer; } +static inline void __ustream_ssl_set_server_name(struct ustream_ssl *us) +{ + ssl_set_hostname(us->ssl, us->server_name); +} + void __ustream_ssl_update_peer_cn(struct ustream_ssl *us); void __ustream_ssl_session_free(void *ssl); void *__ustream_ssl_session_new(struct ustream_ssl_ctx *ctx); |