summaryrefslogtreecommitdiff
path: root/include/git2/transport.h
diff options
context:
space:
mode:
authorBrad Morgan <brad@dmgctrl.com>2013-05-09 17:40:21 -0400
committerBrad Morgan <brad@dmgctrl.com>2013-05-09 17:40:21 -0400
commitb4d81a00bf97260eff52345047a14c93de6fddc0 (patch)
tree1c1c1f3d7be03c0ec39f1f7d6731933f7cb1ab54 /include/git2/transport.h
parentce6d50b99420a4e0994cf9be285a92eb8c4bac0e (diff)
downloadlibgit2-b4d81a00bf97260eff52345047a14c93de6fddc0.tar.gz
Moved libssh2 sign callback into typedef
Diffstat (limited to 'include/git2/transport.h')
-rw-r--r--include/git2/transport.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/git2/transport.h b/include/git2/transport.h
index b3d43ebf6..48a35b549 100644
--- a/include/git2/transport.h
+++ b/include/git2/transport.h
@@ -52,6 +52,8 @@ typedef struct git_cred_userpass_plaintext {
} git_cred_userpass_plaintext;
#ifdef GIT_SSH
+typedef LIBSSH2_USERAUTH_PUBLICKEY_SIGN_FUNC((*git_cred_sign_callback));
+
/* A ssh key file and passphrase */
typedef struct git_cred_ssh_keyfile_passphrase {
git_cred parent;
@@ -116,7 +118,7 @@ GIT_EXTERN(int) git_cred_ssh_publickey_new(
git_cred **out,
const char *publickey,
size_t publickey_len,
- LIBSSH2_USERAUTH_PUBLICKEY_SIGN_FUNC((*sign_callback)),
+ git_cred_sign_callback,
void *sign_data);
#endif