summaryrefslogtreecommitdiff
path: root/src/global.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-03-19 09:55:20 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2015-04-23 17:39:51 +0200
commit24e53d2fba1ea10c27c3b19f202dc92cabedf0ed (patch)
tree1b57e5a07b017724a6cf8ac06e17e957099bf419 /src/global.c
parent70b852cee2c9e87588d65581e13c9e65b255cecf (diff)
downloadlibgit2-24e53d2fba1ea10c27c3b19f202dc92cabedf0ed.tar.gz
Rename GIT_SSL to GIT_OPENSSL
This is what it's meant all along, but now we actually have multiple implementations, it's clearer to use the name of the library.
Diffstat (limited to 'src/global.c')
-rw-r--r--src/global.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/global.c b/src/global.c
index f267fbd24..9f1a0bf10 100644
--- a/src/global.c
+++ b/src/global.c
@@ -17,7 +17,7 @@ git_mutex git__mwindow_mutex;
#define MAX_SHUTDOWN_CB 8
-#ifdef GIT_SSL
+#ifdef GIT_OPENSSL
# include <openssl/ssl.h>
SSL_CTX *git__ssl_ctx;
# ifdef GIT_THREADS
@@ -57,7 +57,7 @@ static void git__shutdown(void)
}
}
-#if defined(GIT_THREADS) && defined(GIT_SSL)
+#if defined(GIT_THREADS) && defined(GIT_OPENSSL)
void openssl_locking_function(int mode, int n, const char *file, int line)
{
int lock;
@@ -89,7 +89,7 @@ static void shutdown_ssl_locking(void)
static void init_ssl(void)
{
-#ifdef GIT_SSL
+#ifdef GIT_OPENSSL
long ssl_opts = SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3;
/* Older OpenSSL and MacOS OpenSSL doesn't have this */
@@ -118,7 +118,7 @@ static void init_ssl(void)
int git_openssl_set_locking(void)
{
-#ifdef GIT_SSL
+#ifdef GIT_OPENSSL
# ifdef GIT_THREADS
int num_locks, i;