From 89a8a6fcf07368c56a98ff8168db77b6814fbe7b Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 29 Oct 2018 14:39:05 +0100 Subject: Process OpenSSH configuration files by default. This will allow to use the same configuration in client applications including the users aliases or system wide cryptographic configuration. As the configuration parsing is the last thing before doing the actual connection, it might overwrite previously set options. If this is not intended, the client application can ask the configuration files to be parsed before setting some other options that should not ve overwritten. The code ensures that the configuration is not parsed again. Signed-off-by: Jakub Jelen Reviewed-by: Andreas Schneider --- include/libssh/session.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/libssh/session.h b/include/libssh/session.h index 8b963066..88be7ff3 100644 --- a/include/libssh/session.h +++ b/include/libssh/session.h @@ -20,6 +20,8 @@ #ifndef SESSION_H_ #define SESSION_H_ +#include + #include "libssh/priv.h" #include "libssh/kex.h" #include "libssh/packet.h" @@ -217,6 +219,7 @@ struct ssh_session_struct { int gss_delegate_creds; int flags; int nodelay; + bool config_processed; } opts; /* counters */ ssh_counter socket_counter; -- cgit v1.2.3