diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2014-06-12 03:20:34 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-06-12 14:37:03 +0200 |
| commit | cf15ac8aa96304a36699ae65398b7adac0d2ddde (patch) | |
| tree | 4385eae1914d25c2c5ebe224788d556ef84a4b10 /src/global.h | |
| parent | 5fa0494328b78a1ce8dba983c3f8028d123a62a4 (diff) | |
| download | libgit2-cf15ac8aa96304a36699ae65398b7adac0d2ddde.tar.gz | |
ssl: cargo-cult thread safety
OpenSSL's tests init everything in the main thread, so let's do that.
Diffstat (limited to 'src/global.h')
| -rw-r--r-- | src/global.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/global.h b/src/global.h index 245f811e4..8904e2de5 100644 --- a/src/global.h +++ b/src/global.h @@ -15,6 +15,11 @@ typedef struct { git_error error_t; } git_global_st; +#ifdef GIT_SSL +# include <openssl/ssl.h> +extern SSL_CTX *git__ssl_ctx; +#endif + git_global_st *git__global_state(void); extern git_mutex git__mwindow_mutex; |
