From 4ab63d3d8c1d0aa9c6833ae17fef9d5b6edcb054 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Tue, 27 Apr 2010 23:48:54 +0200 Subject: Added first unittest-based bug found :) --- libssh/keyfiles.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libssh/keyfiles.c') diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c index 3e36989c..427087a9 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) { -- cgit v1.2.3