GnuTLS: Get rid of warnings about deprecated typedef names
'_t' suffix for gnutls_session and gnutls_transport_ptr was added in GnuTLS 1.1.11 over ten years ago and the more recent versions of GnuTLS have started forcing compiler warnings from the old names. Move to the new names and don't bother about backwards compatibility with older versions taken into account how long ago this change happened in GnuTLS. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
36f0cf3774
commit
cbe23ffd6d
1 changed files with 4 additions and 4 deletions
|
@ -81,7 +81,7 @@ struct tls_global {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct tls_connection {
|
struct tls_connection {
|
||||||
gnutls_session session;
|
gnutls_session_t session;
|
||||||
char *subject_match, *altsubject_match;
|
char *subject_match, *altsubject_match;
|
||||||
int read_alerts, write_alerts, failed;
|
int read_alerts, write_alerts, failed;
|
||||||
|
|
||||||
|
@ -199,7 +199,7 @@ int tls_get_errors(void *ssl_ctx)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static ssize_t tls_pull_func(gnutls_transport_ptr ptr, void *buf,
|
static ssize_t tls_pull_func(gnutls_transport_ptr_t ptr, void *buf,
|
||||||
size_t len)
|
size_t len)
|
||||||
{
|
{
|
||||||
struct tls_connection *conn = (struct tls_connection *) ptr;
|
struct tls_connection *conn = (struct tls_connection *) ptr;
|
||||||
|
@ -228,7 +228,7 @@ static ssize_t tls_pull_func(gnutls_transport_ptr ptr, void *buf,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static ssize_t tls_push_func(gnutls_transport_ptr ptr, const void *buf,
|
static ssize_t tls_push_func(gnutls_transport_ptr_t ptr, const void *buf,
|
||||||
size_t len)
|
size_t len)
|
||||||
{
|
{
|
||||||
struct tls_connection *conn = (struct tls_connection *) ptr;
|
struct tls_connection *conn = (struct tls_connection *) ptr;
|
||||||
|
@ -286,7 +286,7 @@ static int tls_gnutls_init_session(struct tls_global *global,
|
||||||
|
|
||||||
gnutls_transport_set_pull_function(conn->session, tls_pull_func);
|
gnutls_transport_set_pull_function(conn->session, tls_pull_func);
|
||||||
gnutls_transport_set_push_function(conn->session, tls_push_func);
|
gnutls_transport_set_push_function(conn->session, tls_push_func);
|
||||||
gnutls_transport_set_ptr(conn->session, (gnutls_transport_ptr) conn);
|
gnutls_transport_set_ptr(conn->session, (gnutls_transport_ptr_t) conn);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue