summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h8
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"