diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-05-01 01:50:26 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-05-19 17:50:52 +0200 |
| commit | a6f24a5b3a8dcb9ab7f84679d658e66f374b88d6 (patch) | |
| tree | 2dae06aab50bf6f5c9e04dd99f96bc4cfbbd0d8d /src/common.h | |
| parent | 66024c7cbcbae3a75d0b0426993d8ee5fa5f9dfb (diff) | |
| download | libgit2-a6f24a5b3a8dcb9ab7f84679d658e66f374b88d6.tar.gz | |
https: make it work with OpenSSL as well
Add specific functions that use OpenSSL instead of GnuTLS
Diffstat (limited to 'src/common.h')
| -rw-r--r-- | src/common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h index 75e6e5867..30865659c 100644 --- a/src/common.h +++ b/src/common.h @@ -22,6 +22,9 @@ #ifdef GIT_GNUTLS # include <gnutls/gnutls.h> +#elif defined(GIT_OPENSSL) +# include <openssl/ssl.h> +# include <openssl/err.h> #endif #ifdef GIT_WIN32 @@ -74,6 +77,11 @@ typedef struct gitno_ssl { gnutls_session_t session; gnutls_certificate_credentials_t cred; } gitno_ssl; +#elif defined(GIT_OPENSSL) +typedef struct gitno_ssl { + SSL_CTX *ctx; + SSL *ssl; +} gitno_ssl; #endif #include "util.h" |
