]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
GnuTLS: Get rid of warnings about deprecated typedef names
authorJouni Malinen <j@w1.fi>
Wed, 24 Dec 2014 18:46:07 +0000 (20:46 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 25 Dec 2014 14:37:12 +0000 (16:37 +0200)
'_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>
src/crypto/tls_gnutls.c

index cb23eb9c5f36fd36bd37cc17c907cc8b079598ee..0e13d6daee639ca8b84f5b1fa6875a2f569a58c5 100644 (file)
@@ -81,7 +81,7 @@ struct tls_global {
 };
 
 struct tls_connection {
-       gnutls_session session;
+       gnutls_session_t session;
        char *subject_match, *altsubject_match;
        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)
 {
        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)
 {
        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_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;