summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index 30757de70..75e6e5867 100644
--- a/src/common.h
+++ b/src/common.h
@@ -20,6 +20,10 @@
#include <sys/types.h>
#include <sys/stat.h>
+#ifdef GIT_GNUTLS
+# include <gnutls/gnutls.h>
+#endif
+
#ifdef GIT_WIN32
# include <io.h>
@@ -65,6 +69,12 @@ void giterr_clear(void);
void giterr_set_str(int error_class, const char *string);
void giterr_set_regex(const regex_t *regex, int error_code);
+#ifdef GIT_GNUTLS
+typedef struct gitno_ssl {
+ gnutls_session_t session;
+ gnutls_certificate_credentials_t cred;
+} gitno_ssl;
+#endif
#include "util.h"