s4-lib/tls: remove unused tls_support()
authorAndrew Bartlett <abartlet@samba.org>
Thu, 9 Feb 2012 00:28:19 +0000 (11:28 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 10 Feb 2012 05:45:12 +0000 (16:45 +1100)
Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html

Andrew Bartlett

source4/lib/tls/tls.c
source4/lib/tls/tls.h

index 3a49e2f2e8c4619bf022c1d5b24e044c05647a58..82cf2600bd1ba105a55244f4b0e2371c08e59dee 100644 (file)
@@ -642,11 +642,6 @@ static const struct socket_ops tls_socket_ops = {
        .fn_get_fd              = tls_socket_get_fd
 };
 
-bool tls_support(struct tls_params *params)
-{
-       return params->tls_enabled;
-}
-
 #else
 
 /* for systems without tls we just fail the operations, and the caller
@@ -679,10 +674,5 @@ struct socket_context *tls_init_client(struct socket_context *socket,
        return NULL;
 }
 
-bool tls_support(struct tls_params *params)
-{
-       return false;
-}
-
 #endif
 
index e1bd9edb51cf1b3637ae7695f4cce46e0e0fee68..ed3c81ee2b4e804d3cf86c53ab9d1eddcda58956 100644 (file)
@@ -58,11 +58,6 @@ struct socket_context *tls_init_client(struct socket_context *sock,
 bool tls_enabled(struct socket_context *tls);
 
 
-/*
-  true if tls support is compiled in
-*/
-bool tls_support(struct tls_params *parms);
-
 const struct socket_ops *socket_tls_ops(enum socket_type type);
 
 struct tstream_context;