summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-08-31 23:16:19 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-09-16 17:01:32 +0200
commit2aee4642ef9c0cffcebc443e81a706f3e458906f (patch)
tree52c3e1b63cc978a203aca264c496e5b2266b6865 /include
parent7c8acc54be390face2f8b519a828a7f2860bb5b3 (diff)
downloadlibgit2-2aee4642ef9c0cffcebc443e81a706f3e458906f.tar.gz
transport: move the cert type enum to types.h
This should make the mingw compiler happy.
Diffstat (limited to 'include')
-rw-r--r--include/git2/transport.h16
-rw-r--r--include/git2/types.h17
2 files changed, 16 insertions, 17 deletions
diff --git a/include/git2/transport.h b/include/git2/transport.h
index 7365cffdf..06d090f4a 100644
--- a/include/git2/transport.h
+++ b/include/git2/transport.h
@@ -21,22 +21,6 @@
GIT_BEGIN_DECL
/**
- * Type of host certificate structure that is passed to the check callback
- */
-typedef enum git_cert_t {
- /**
- * The `data` argument to the callback will be a pointer to
- * the DER-encoded data.
- */
- GIT_CERT_X509,
- /**
- * The `data` argument to the callback will be a pointer to a
- * `git_cert_hostkey` structure.
- */
- GIT_CERT_HOSTKEY_LIBSSH2,
-} git_cert_t;
-
-/**
* Hostkey information taken from libssh2
*/
typedef struct {
diff --git a/include/git2/types.h b/include/git2/types.h
index 51f058867..3544037a4 100644
--- a/include/git2/types.h
+++ b/include/git2/types.h
@@ -254,7 +254,22 @@ typedef int (*git_transfer_progress_cb)(const git_transfer_progress *stats, void
typedef int (*git_transport_message_cb)(const char *str, int len, void *payload);
-typedef enum git_cert_t git_cert_t;
+
+/**
+ * Type of host certificate structure that is passed to the check callback
+ */
+typedef enum git_cert_t {
+ /**
+ * The `data` argument to the callback will be a pointer to
+ * the DER-encoded data.
+ */
+ GIT_CERT_X509,
+ /**
+ * The `data` argument to the callback will be a pointer to a
+ * `git_cert_hostkey` structure.
+ */
+ GIT_CERT_HOSTKEY_LIBSSH2,
+} git_cert_t;
/**
* Callback for the user's custom certificate checks.