aboutsummaryrefslogtreecommitdiff
path: root/src/bind.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-16 18:53:18 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-16 18:53:18 +0200
commit25a21088090dcb18ef6f0b12a47bd1db6b871153 (patch)
tree53ce5494c0dc3157fb445aa6f0ab4b89142553b8 /src/bind.c
parent9b84464748d5d4cd67b7868a6cfba5664a169503 (diff)
downloadlibssh-25a21088090dcb18ef6f0b12a47bd1db6b871153.tar.gz
libssh-25a21088090dcb18ef6f0b12a47bd1db6b871153.tar.xz
libssh-25a21088090dcb18ef6f0b12a47bd1db6b871153.zip
pki: Remove session from ssh_pki_import_privkey_* functions.
Diffstat (limited to 'src/bind.c')
-rw-r--r--src/bind.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/bind.c b/src/bind.c
index bc5fc187..b2bcb683 100644
--- a/src/bind.c
+++ b/src/bind.c
@@ -172,7 +172,11 @@ int ssh_bind_listen(ssh_bind sshbind) {
}
if (sshbind->dsakey) {
- rc = ssh_pki_import_privkey_file((ssh_session)sshbind, sshbind->dsakey, NULL, &sshbind->dsa);
+ rc = ssh_pki_import_privkey_file(sshbind->dsakey,
+ NULL,
+ NULL,
+ NULL,
+ &sshbind->dsa);
if (rc == SSH_ERROR) {
return SSH_ERROR;
}
@@ -184,7 +188,11 @@ int ssh_bind_listen(ssh_bind sshbind) {
}
if (sshbind->rsakey) {
- rc = ssh_pki_import_privkey_file((ssh_session)sshbind, sshbind->rsakey, NULL, &sshbind->rsa);
+ rc = ssh_pki_import_privkey_file(sshbind->rsakey,
+ NULL,
+ NULL,
+ NULL,
+ &sshbind->rsa);
if (rc == SSH_ERROR) {
return SSH_ERROR;
}