summaryrefslogtreecommitdiffstats
path: root/src/legacy.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-16 19:33:24 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-16 19:33:24 +0200
commit254c30be2e97812a892c96210491720d63538994 (patch)
treefd2eb1e707dff650317ccd0d14a059aa03351d3b /src/legacy.c
parent25a21088090dcb18ef6f0b12a47bd1db6b871153 (diff)
downloadlibssh-254c30be2e97812a892c96210491720d63538994.tar.gz
libssh-254c30be2e97812a892c96210491720d63538994.tar.xz
libssh-254c30be2e97812a892c96210491720d63538994.zip
pki: Remove session from ssh_pki_import_pubkey_* functions.
Diffstat (limited to 'src/legacy.c')
-rw-r--r--src/legacy.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/legacy.c b/src/legacy.c
index 3285557..ec81c22 100644
--- a/src/legacy.c
+++ b/src/legacy.c
@@ -348,7 +348,9 @@ ssh_string publickey_from_file(ssh_session session, const char *filename,
ssh_string key_str;
int rc;
- rc = ssh_pki_import_pubkey_file(session, filename, &key);
+ (void) session; /* unused */
+
+ rc = ssh_pki_import_pubkey_file(filename, &key);
if (rc < 0) {
return NULL;
}
@@ -377,7 +379,9 @@ ssh_public_key publickey_from_string(ssh_session session, ssh_string pubkey_s) {
ssh_key key;
int rc;
- rc = ssh_pki_import_pubkey_blob(session, pubkey_s, &key);
+ (void) session; /* unused */
+
+ rc = ssh_pki_import_pubkey_blob(pubkey_s, &key);
if (rc < 0) {
return NULL;
}