summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2015-05-24 18:38:47 +0200
committerMichał Górny <mgorny@gentoo.org>2015-05-27 20:36:53 +0200
commitf7142b5e4a9ce3f389f7851aac2fc98ce7bef764 (patch)
treefca9e8775a8e20439b061f8f21b2965aab57cd5e /include/git2
parent1679ec1204b53580a7b5cd6165865854c912dc29 (diff)
downloadlibgit2-f7142b5e4a9ce3f389f7851aac2fc98ce7bef764.tar.gz
cred: Declare GIT_CREDTYPE_SSH_MEMORY unconditionally
Declare GIT_CREDTYPE_SSH_MEMORY to have consistent API independently of whether libgit2 was built with or without in-memory key passing support. Or rather, to have it at all since build-time definitions are not stored in headers.
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/transport.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/git2/transport.h b/include/git2/transport.h
index 4008615ab..2eeebd565 100644
--- a/include/git2/transport.h
+++ b/include/git2/transport.h
@@ -109,14 +109,12 @@ typedef enum {
*/
GIT_CREDTYPE_USERNAME = (1u << 5),
-#ifdef GIT_SSH_MEMORY_CREDENTIALS
/**
* Credentials read from memory.
*
* Only available for libssh2+OpenSSL for now.
*/
GIT_CREDTYPE_SSH_MEMORY = (1u << 6),
-#endif
} git_credtype_t;
/* The base structure for all credential types */