summaryrefslogtreecommitdiffstats
path: root/src/legacy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/legacy.c')
-rw-r--r--src/legacy.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/legacy.c b/src/legacy.c
index 8655f31..ee74b34 100644
--- a/src/legacy.c
+++ b/src/legacy.c
@@ -31,6 +31,7 @@
#include <libssh/buffer.h>
#include <libssh/pki.h>
#include <libssh/keys.h>
+#include <libssh/keyfiles.h>
void buffer_free(ssh_buffer buffer){
ssh_buffer_free(buffer);
@@ -291,6 +292,11 @@ ssh_private_key privatekey_from_file(ssh_session session,
return privkey;
}
+ssh_private_key _privatekey_from_file(void *session, const char *filename,
+ int type) {
+ return privatekey_from_file(session, filename, type, NULL);
+}
+
/****************************************************************************
* SERVER SUPPORT
****************************************************************************/