aboutsummaryrefslogtreecommitdiff
path: root/lib/ssh/section_match_test.go
AgeCommit message (Collapse)Author
2021-07-05lib/ssh: move the config parser to subpackage "config"Shulhan
There are two reasons for moving to sub-package. First, the code for parsing the ssh_config(5) take almost 99% of the lines in the ssh package. Second, in case we want to submit the code to upstream, golang.org/x/crypto, we need the package to be independent, less external dependencies as possible.
2021-03-14all: refactoring the test.Assert and test.AssertBench signatureShulhan
Previously, the test.Assert and test.AssertBench functions has the boolean parameter to print the stack trace of test in case its not equal. Since this parameter is not mandatory and its usually always set to "true", we remove them from function signature to simplify the call to Assert and AssertBench.
2020-06-10all: update email addressShulhan
2020-05-16ssh: fix the wrong plural variable name in criteriaShulhan
Turn out the word "criteria" is already plural, the singular word is criterion.
2020-05-01ssh: replace lib/parser with internal parserShulhan
The idea is to allow the package to be copied by others without any dependencies except for testing.
2020-04-26ssh: replace the ClientConfig with ConfigSectionShulhan
Now that the Config can parse Host and required fields (User, Hostname, Port, and IdentityFile), we can use the ConfigSection to be passed to parameter when creating new Client.
2020-04-24ssh: implement SSH client configuration parser -- ssh_config(5)Shulhan
The SSH Config will read and parse the configuration as defined in manual ssh_config(5).