diff --git a/src/crypto/tls.h b/src/crypto/tls.h index d13657e16..0ea368751 100644 --- a/src/crypto/tls.h +++ b/src/crypto/tls.h @@ -532,13 +532,6 @@ int tls_connection_get_read_alerts(void *tls_ctx, struct tls_connection *conn); int tls_connection_get_write_alerts(void *tls_ctx, struct tls_connection *conn); -/** - * tls_capabilities - Get supported TLS capabilities - * @tls_ctx: TLS context data from tls_init() - * Returns: Bit field of supported TLS capabilities (TLS_CAPABILITY_*) - */ -unsigned int tls_capabilities(void *tls_ctx); - typedef int (*tls_session_ticket_cb) (void *ctx, const u8 *ticket, size_t len, const u8 *client_random, const u8 *server_random, u8 *master_secret); diff --git a/src/crypto/tls_gnutls.c b/src/crypto/tls_gnutls.c index c7f6464b9..6ff7194df 100644 --- a/src/crypto/tls_gnutls.c +++ b/src/crypto/tls_gnutls.c @@ -1476,12 +1476,6 @@ int tls_connection_get_write_alerts(void *ssl_ctx, struct tls_connection *conn) } -unsigned int tls_capabilities(void *tls_ctx) -{ - return 0; -} - - int tls_connection_set_session_ticket_cb(void *tls_ctx, struct tls_connection *conn, tls_session_ticket_cb cb, void *ctx) diff --git a/src/crypto/tls_internal.c b/src/crypto/tls_internal.c index afd46953f..48f27e618 100644 --- a/src/crypto/tls_internal.c +++ b/src/crypto/tls_internal.c @@ -674,12 +674,6 @@ int tls_connection_get_write_alerts(void *tls_ctx, } -unsigned int tls_capabilities(void *tls_ctx) -{ - return 0; -} - - int tls_connection_set_session_ticket_cb(void *tls_ctx, struct tls_connection *conn, tls_session_ticket_cb cb, diff --git a/src/crypto/tls_none.c b/src/crypto/tls_none.c index 1b1ba5697..bd3da7ed2 100644 --- a/src/crypto/tls_none.c +++ b/src/crypto/tls_none.c @@ -181,12 +181,6 @@ int tls_connection_get_write_alerts(void *tls_ctx, } -unsigned int tls_capabilities(void *tls_ctx) -{ - return 0; -} - - int tls_get_library_version(char *buf, size_t buf_len) { return os_snprintf(buf, buf_len, "none"); diff --git a/src/crypto/tls_openssl.c b/src/crypto/tls_openssl.c index 69f51a8c4..7f9c83757 100644 --- a/src/crypto/tls_openssl.c +++ b/src/crypto/tls_openssl.c @@ -3633,12 +3633,6 @@ int tls_global_set_params(void *tls_ctx, } -unsigned int tls_capabilities(void *tls_ctx) -{ - return 0; -} - - #if defined(EAP_FAST) || defined(EAP_FAST_DYNAMIC) || defined(EAP_SERVER_FAST) /* Pre-shared secred requires a patch to openssl, so this function is * commented out unless explicitly needed for EAP-FAST in order to be able to