Browse Source

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>
Jouni Malinen 9 years ago
parent
commit
84d6a17a27
5 changed files with 0 additions and 31 deletions
  1. 0 7
      src/crypto/tls.h
  2. 0 6
      src/crypto/tls_gnutls.c
  3. 0 6
      src/crypto/tls_internal.c
  4. 0 6
      src/crypto/tls_none.c
  5. 0 6
      src/crypto/tls_openssl.c

+ 0 - 7
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);

+ 0 - 6
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)

+ 0 - 6
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,

+ 0 - 6
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");

+ 0 - 6
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