mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 10:40:28 +09:00
keyfiles: Fixed compilation without defines.
This fixes cppcheck issues.
This commit is contained in:
committed by
Andreas Schneider
parent
9866763789
commit
7f0761885c
@@ -1180,6 +1180,8 @@ 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;
|
||||
}
|
||||
@@ -1201,6 +1203,8 @@ 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user