aboutsummaryrefslogtreecommitdiff
path: root/src/config.c
AgeCommit message (Collapse)AuthorFilesLines
2017-06-08config: fix buffer underflow with unrecognized opcodesAris Adamantiadis1-1/+1
2017-06-06config: Bugfix: Don't skip unseen opcodesArtyom V. Poptsov1-1/+1
libssh fails to read the configuration from a config file due to a wrong check in 'ssh_config_parse_line' procedure in 'config.c'; it's effectively skipping every opcode (and therefore every option) from the file. The change fixes that behaviour. Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2017-04-13config: Only use first occurence of each parameterAlex Hermann1-2/+11
ssh_config's manpage says: "For each parameter, the first obtained value will be used." Make libssh adhere to this rule. BUG: https://red.libssh.org/issues/256 Signed-off-by: Alex Hermann <alex@hexla.nl> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2017-04-13config: Don't expand Host variableAlex Hermann1-7/+1
Tokens are not allowed (according to the manpage). Expansion was introduced by a wrong fix for #127. This commit reverts part of 6eea08a9ef Signed-off-by: Alex Hermann <alex@hexla.nl> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2017-04-13config: Support expansion in the HostName variableAlex Hermann1-1/+6
BUG: https://red.libssh.org/issues/127 The original "fix" for 127 was expanding the wrong variable: Host instead of HostName. Signed-off-by: Alex Hermann <alex@hexla.nl> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-10-22Remove extra newlines from log/error messagesPino Toscano1-2/+2
Signed-off-by: Pino Toscano <ptoscano@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-04config: Fix build warningsAndreas Schneider1-2/+4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-03Make "Host" pattern list handling consistent with OpenSSHTravers Carter1-10/+14
https://red.libssh.org/issues/187 Signed-off-by: Travers Carter <tcarter@noggin.com.au> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-12-25options: Fix setting the port.Andreas Schneider1-1/+1
Make sure we correctly read the port from the config file. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2014-12-17config: Also tokenize on equal sign.William Orr1-1/+1
The ssh config specifies it as a valid separator. BUG: https://red.libssh.org/issues/166 Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-04-22log: Fix log levels.Gangadhar Sandrani1-1/+1
Signed-off-by: Gangadhar Sandrani <gangadhar.sandrani@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-01-07src: Update my mail address.Andreas Schneider1-1/+1
2014-01-07update copyright informationAris Adamantiadis1-1/+1
2013-12-21config: Support expansion in the Host variable too.Andreas Schneider1-9/+18
BUG: https://red.libssh.org/issues/127
2013-11-15gssapi: Add support for GSSAPIDelegateCredentials config option.Simo Sorce1-1/+9
Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-11-15gssapi: Add support for GSSAPIClientIdentity config option.Andreas Schneider1-1/+9
2013-11-15gssapi: Add support for GSSAPIServerIdentity config option.Andreas Schneider1-1/+9
2013-07-14src: Migrate to SSH_LOG.Andreas Schneider1-2/+2
2013-06-02BUG 103: Fix ProxyCommand parsing.Andreas Schneider1-2/+21
2013-06-02config: Rename ssh_config_get_str().Andreas Schneider1-11/+11
2012-02-05session: Use a struct for all options.Andreas Schneider1-3/+3
2011-09-18priv: Remove crypto.h and add correct includes to src files.Andreas Schneider1-0/+3
2011-09-18priv: Move options and config prototypes to own header.Andreas Schneider1-0/+1
2011-02-12use ssh_log instead of fprintf in ssh_config_parse_fileBernhard R. Link1-3/+1
ssh_config_parse_file calls "fprintf(stderr," directly thus ignoring a set log callback. Replacing the print with a call to ssh_log should fix this. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2010-12-27Added compression options and allow "yes/no" settingAris Adamantiadis1-4/+2
SSH_OPTION_COMPRESSION and SSH_OPTION_COMPRESSION_LEVEL options have been added. Now, end-level apps may simply choose to enable compression without knowing the relevant algorithms behind it.
2010-10-04Add zlib@openssh.com on the list of compressionAris Adamantiadis1-2/+2
2010-09-28options: Rename HOSTKEYCHECK to STRICTHOSTKEYCHECK.Andreas Schneider1-4/+4
Looks like people are confused by the name and think this is normal host key checking.
2010-09-06misc: Rename libssh/ to src/Andreas Schneider1-0/+347