mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
[ssl] SSL -> ssl_t
This commit is contained in:
parent
f1412534ed
commit
53a3914e47
@ -358,8 +358,8 @@ init_ssl_connection(struct socket *socket,
|
||||
socket->ssl = SSL_new(context);
|
||||
if (!socket->ssl) return S_SSL_ERROR;
|
||||
|
||||
if (!SSL_set_ex_data((SSL *)socket->ssl, socket_SSL_ex_data_idx, socket)) {
|
||||
SSL_free((SSL *)socket->ssl);
|
||||
if (!SSL_set_ex_data((ssl_t *)socket->ssl, socket_SSL_ex_data_idx, socket)) {
|
||||
SSL_free((ssl_t *)socket->ssl);
|
||||
socket->ssl = NULL;
|
||||
return S_SSL_ERROR;
|
||||
}
|
||||
@ -370,8 +370,8 @@ init_ssl_connection(struct socket *socket,
|
||||
* documented. The source shows that it returns 1 if
|
||||
* successful; on error, it calls SSLerr and returns 0. */
|
||||
if (server_name
|
||||
&& !SSL_set_tlsext_host_name((SSL *)socket->ssl, server_name)) {
|
||||
SSL_free((SSL *)socket->ssl);
|
||||
&& !SSL_set_tlsext_host_name((ssl_t *)socket->ssl, server_name)) {
|
||||
SSL_free((ssl_t *)socket->ssl);
|
||||
socket->ssl = NULL;
|
||||
return S_SSL_ERROR;
|
||||
}
|
||||
@ -451,7 +451,7 @@ init_ssl_connection(struct socket *socket,
|
||||
void
|
||||
done_ssl_connection(struct socket *socket)
|
||||
{
|
||||
ssl_t *ssl = (SSL *)socket->ssl;
|
||||
ssl_t *ssl = (ssl_t *)socket->ssl;
|
||||
|
||||
if (!ssl) return;
|
||||
#ifdef USE_OPENSSL
|
||||
@ -466,7 +466,7 @@ done_ssl_connection(struct socket *socket)
|
||||
char *
|
||||
get_ssl_connection_cipher(struct socket *socket)
|
||||
{
|
||||
ssl_t *ssl = (SSL *)socket->ssl;
|
||||
ssl_t *ssl = (ssl_t *)socket->ssl;
|
||||
struct string str;
|
||||
|
||||
if (!init_string(&str)) return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user