summaryrefslogtreecommitdiff
path: root/src/streams/mbedtls.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-10-29 08:59:33 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2018-11-28 15:46:57 +0000
commit2878ad08316155bfaf7b2d7b3204aece13c9936a (patch)
tree2f5e818bab84b5b68b8cdbc2898eafc8763a7453 /src/streams/mbedtls.c
parent5d4e1e040f6c4530ac18f3ce82685e780192b2bb (diff)
downloadlibgit2-2878ad08316155bfaf7b2d7b3204aece13c9936a.tar.gz
streams: remove unused tls functions
The implementations of git_openssl_stream_new and git_mbedtls_stream_new have callers protected by #ifdefs and are never called unless compiled in. There's no need for a dummy implementation. Remove them.
Diffstat (limited to 'src/streams/mbedtls.c')
-rw-r--r--src/streams/mbedtls.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/streams/mbedtls.c b/src/streams/mbedtls.c
index 27e076cb8..fdc9f6f7c 100644
--- a/src/streams/mbedtls.c
+++ b/src/streams/mbedtls.c
@@ -490,23 +490,4 @@ int git_mbedtls_stream_global_init(void)
return 0;
}
-int git_mbedtls_stream_new(git_stream **out, const char *host, const char *port)
-{
- GIT_UNUSED(out);
- GIT_UNUSED(host);
- GIT_UNUSED(port);
-
- giterr_set(GITERR_SSL, "mbedTLS is not supported in this version");
- return -1;
-}
-
-int git_mbedtls__set_cert_location(const char *path, int is_dir)
-{
- GIT_UNUSED(path);
- GIT_UNUSED(is_dir);
-
- giterr_set(GITERR_SSL, "mbedTLS is not supported in this version");
- return -1;
-}
-
#endif