summaryrefslogtreecommitdiff
path: root/include/git2/transport.h
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2013-01-08 19:55:59 -0800
committerBen Straub <bs@github.com>2013-01-09 13:31:17 -0800
commit520dcc1c000c7c29058d6ae56982461e782210fe (patch)
tree4d0a25b2dd626e1e832e52c8a067877851738200 /include/git2/transport.h
parentffb02b1630da85e063a816cc6dddcdc004a8ff72 (diff)
downloadlibgit2-520dcc1c000c7c29058d6ae56982461e782210fe.tar.gz
Move credential helpers to their own (optional) header
Diffstat (limited to 'include/git2/transport.h')
-rw-r--r--include/git2/transport.h21
1 files changed, 1 insertions, 20 deletions
diff --git a/include/git2/transport.h b/include/git2/transport.h
index f03e9fc87..1aa87cabe 100644
--- a/include/git2/transport.h
+++ b/include/git2/transport.h
@@ -61,6 +61,7 @@ GIT_EXTERN(int) git_cred_userpass_plaintext_new(
* @param cred The newly created credential object.
* @param url The resource for which we are demanding a credential.
* @param allowed_types A bitmask stating which cred types are OK to return.
+ * @param payload The payload provided when specifying this callback.
*/
typedef int (*git_cred_acquire_cb)(
git_cred **cred,
@@ -68,26 +69,6 @@ typedef int (*git_cred_acquire_cb)(
unsigned int allowed_types,
void *payload);
-/**
- * Payload for git_cred_stock_userpass_plaintext.
- */
-typedef struct git_cred_stock_userpass_plaintext_payload {
- char *username;
- char *password;
-} git_cred_stock_userpass_plaintext_payload;
-
-
-/**
- * Stock callback usable as a git_cred_acquire_cb. This calls
- * git_cred_userpass_plaintext_new unless the protocol has not specified
- * GIT_CREDTYPE_USERPASS_PLAINTEXT as an allowed type.
- */
-GIT_EXTERN(int) git_cred_stock_userpass_plaintext(
- git_cred **cred,
- const char *url,
- unsigned int allowed_types,
- void *payload);
-
/*
*** End interface for credentials acquisition ***
*** Begin base transport interface ***