ssl store vhost in ssl private data not context

Only used by the ssl verify callback

Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
Andy Green 2016-04-12 07:59:53 +08:00
parent f5efa74cb7
commit 5e799a45cc

View file

@ -285,7 +285,7 @@ lws_server_socket_service_ssl(struct lws *wsi, lws_sockfd_type accept_fd)
}
SSL_set_ex_data(wsi->ssl,
openssl_websocket_private_data_index, context);
openssl_websocket_private_data_index, wsi->vhost);
SSL_set_fd(wsi->ssl, accept_fd);