summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorDavid Calavera <david.calavera@gmail.com>2015-03-19 14:57:15 -0700
committerMichał Górny <mgorny@gentoo.org>2015-05-27 20:36:53 +0200
commit08e6b875c11e71b27154d4fb0d36d56ac40aba33 (patch)
tree858e6b5356897e4735b4126744183563a9d7b1b8 /include/git2
parent7a8b85032f4390b6b14e55e0074d864fe742ca3b (diff)
downloadlibgit2-08e6b875c11e71b27154d4fb0d36d56ac40aba33.tar.gz
Return an error when ssh memory credentials are not supported.
To not modify the external api.
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 57293d92f..4008615ab 100644
--- a/include/git2/transport.h
+++ b/include/git2/transport.h
@@ -299,7 +299,6 @@ GIT_EXTERN(int) git_cred_default_new(git_cred **out);
*/
GIT_EXTERN(int) git_cred_username_new(git_cred **cred, const char *username);
-#ifdef GIT_SSH_MEMORY_CREDENTIALS
/**
* Create a new ssh key credential object reading the keys from memory.
*
@@ -316,7 +315,6 @@ GIT_EXTERN(int) git_cred_ssh_key_memory_new(
const char *publickey,
const char *privatekey,
const char *passphrase);
-#endif
/**
* Signature of a function which acquires a credential object.