]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
TLS: Remove unused tls_capabilities()
authorJouni Malinen <j@w1.fi>
Tue, 30 Jun 2015 18:40:48 +0000 (21:40 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 30 Jun 2015 18:40:48 +0000 (21:40 +0300)
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>
src/crypto/tls.h
src/crypto/tls_gnutls.c
src/crypto/tls_internal.c
src/crypto/tls_none.c
src/crypto/tls_openssl.c

index d13657e16372ac8378d32f1018c0cb4bb7f0e66e..0ea3687515d38885905429acc6a498e6dea3ae91 100644 (file)
@@ -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);
index c7f6464b92e695e1793dc369340a8ffe91f4b994..6ff7194dfcb29edd1a68ed9c0d7d0349f3d61b53 100644 (file)
@@ -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)
index afd46953f9778bfd571aa3dc697cd394f66eaf41..48f27e61868165b5736c967d5a892bfcb4646a7e 100644 (file)
@@ -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,
index 1b1ba569755260679491704e8174b666f2e93104..bd3da7ed220af78a79f409d365893454c5108fe6 100644 (file)
@@ -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");
index 69f51a8c471476b4a5a2f909eeefdfc077172099..7f9c8375726dfe4970f528b490754dfd1a818ebd 100644 (file)
@@ -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