summaryrefslogtreecommitdiff
path: root/src/libgit2.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-08-11 01:30:38 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2021-08-12 23:08:19 +0100
commite9c4caa8f4b5a004c56189a6f83395f809e8cbf8 (patch)
treeb2847f96fc1c72463741caa31a10a7b1f67433eb /src/libgit2.c
parent806778dc482e40d26bc7a9d44ccd18b888f6ec33 (diff)
downloadlibgit2-ethomson/ssl_refactor.tar.gz
openssl: dynamically load libssl and symbols (optionally)ethomson/ssl_refactor
Provide an interface around OpenSSL to dynamically load the libraries and symbols, so that users can distribute a libgit2 library that is not linked directly against OpenSSL. This enables users to target multiple distributions with a single binary. This mechanism is optional and disabled by default. Configure cmake with -DUSE_HTTPS=OpenSSL-Dynamic to use it.
Diffstat (limited to 'src/libgit2.c')
-rw-r--r--src/libgit2.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/libgit2.c b/src/libgit2.c
index 089c83590..aee9cf2cd 100644
--- a/src/libgit2.c
+++ b/src/libgit2.c
@@ -36,14 +36,6 @@
# include "win32/w32_leakcheck.h"
#endif
-#ifdef GIT_OPENSSL
-# include <openssl/err.h>
-#endif
-
-#ifdef GIT_MBEDTLS
-# include <mbedtls/error.h>
-#endif
-
/* Declarations for tuneable settings */
extern size_t git_mwindow__window_size;
extern size_t git_mwindow__mapped_limit;