1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

pki: Remove session from ssh_pki_import_pubkey_* functions.

This commit is contained in:
Andreas Schneider
2011-08-16 19:33:24 +02:00
parent 25a2108809
commit 254c30be2e
6 changed files with 38 additions and 52 deletions

View File

@@ -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;
}