Use BIO* in _privatekey_from_file [Oliver Stöneberg]

_privatekey_from_file: moved FILE* into HAVE_LIBGCRYPT code / added missing #ifdef's to default case of switch [Oliver Stöneberg]
This commit is contained in:
Oliver Stöneberg
2011-05-02 09:25:12 -07:00
committed by Andreas Schneider
parent e5fb20c17b
commit da8356b477

View File

@@ -890,8 +890,6 @@ ssh_private_key _privatekey_from_file(void *session, const char *filename,
ssh_set_error(session, SSH_FATAL,
"Parsing private key %s: %s",
filename, ERR_error_string(ERR_get_error(), NULL));
#else
{
#endif
return NULL;
}
@@ -913,8 +911,6 @@ ssh_private_key _privatekey_from_file(void *session, const char *filename,
ssh_set_error(session, SSH_FATAL,
"Parsing private key %s: %s",
filename, ERR_error_string(ERR_get_error(), NULL));
#else
{
#endif
return NULL;
}