aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-04-27 23:48:54 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-04-27 23:48:54 +0200
commit4ab63d3d8c1d0aa9c6833ae17fef9d5b6edcb054 (patch)
treedf4faae53364223f5739c11b1c5e470adc6f9e2e /libssh
parent696ef7aecc07d19bc23179504042617e21e11a44 (diff)
downloadlibssh-4ab63d3d8c1d0aa9c6833ae17fef9d5b6edcb054.tar.gz
libssh-4ab63d3d8c1d0aa9c6833ae17fef9d5b6edcb054.tar.xz
libssh-4ab63d3d8c1d0aa9c6833ae17fef9d5b6edcb054.zip
Added first unittest-based bug found :)
Diffstat (limited to 'libssh')
-rw-r--r--libssh/keyfiles.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c
index 3e36989..427087a 100644
--- a/libssh/keyfiles.c
+++ b/libssh/keyfiles.c
@@ -668,6 +668,8 @@ ssh_private_key privatekey_from_file(ssh_session session, const char *filename,
DSA *dsa = NULL;
RSA *rsa = NULL;
#endif
+ /* needed for openssl initialization */
+ ssh_init();
ssh_log(session, SSH_LOG_RARE, "Trying to open %s", filename);
file = fopen(filename,"r");
if (file == NULL) {