summaryrefslogtreecommitdiffstats
path: root/libssh/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/auth.c')
-rw-r--r--libssh/auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/auth.c b/libssh/auth.c
index 9765124..80d978f 100644
--- a/libssh/auth.c
+++ b/libssh/auth.c
@@ -418,7 +418,7 @@ error:
* @see ssh_userauth_offer_pubkey()
*/
int ssh_userauth_pubkey(SSH_SESSION *session, const char *username,
- ssh_string publickey, PRIVATE_KEY *privatekey) {
+ ssh_string publickey, ssh_private_key privatekey) {
ssh_string user = NULL;
ssh_string service = NULL;
ssh_string method = NULL;
@@ -797,7 +797,7 @@ static struct ssh_keys_struct keytab[] = {
int ssh_userauth_autopubkey(SSH_SESSION *session, const char *passphrase) {
struct ssh_public_key_struct *publickey;
ssh_string pubkey;
- PRIVATE_KEY *privkey;
+ ssh_private_key privkey;
char *privkeyfile = NULL;
char *id = NULL;
size_t size;