aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-06-30 18:40:48 (GMT)
committerJouni Malinen <j@w1.fi>2015-06-30 18:40:48 (GMT)
commit84d6a17a27c280c6d0e3e4d4c8957fbe144a2b27 (patch)
tree5377ea3fc80741eab1196b66f7b85876c66ac042
parent6eddd5303c5835dcb944f1b6c662f4950daaea9c (diff)
downloadhostap-84d6a17a27c280c6d0e3e4d4c8957fbe144a2b27.zip
hostap-84d6a17a27c280c6d0e3e4d4c8957fbe144a2b27.tar.gz
hostap-84d6a17a27c280c6d0e3e4d4c8957fbe144a2b27.tar.bz2
TLS: Remove unused tls_capabilities()
This mechanism to figure out TLS library capabilities has not been used since commit fd2f2d0489635d590930bc0945fbc438ba1387e2 ('Remove EAP-TTLSv1 and TLS/IA') (Sep 2011). Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--src/crypto/tls.h7
-rw-r--r--src/crypto/tls_gnutls.c6
-rw-r--r--src/crypto/tls_internal.c6
-rw-r--r--src/crypto/tls_none.c6
-rw-r--r--src/crypto/tls_openssl.c6
5 files changed, 0 insertions, 31 deletions
diff --git a/src/crypto/tls.h b/src/crypto/tls.h
index d13657e..0ea3687 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 c7f6464..6ff7194 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 afd4695..48f27e6 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 1b1ba56..bd3da7e 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 69f51a8..7f9c837 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