summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-sk-client.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* highly polished whitespace, mostly fixing spaces-for-tab and baddjm2021-04-031-4/+4
| | | | indentation on continuation lines. Prompted by GHPR#185
* use the new variant log macros instead of prepending __func__ anddjm2020-10-181-39/+38
| | | | appending ssh_err(r) manually; ok markus@
* Replace all calls to signal(2) with a wrapper around sigaction(2).dtucker2020-01-231-4/+5
| | | | | | This wrapper blocks all other signals during the handler preventing races between handlers, and sets SA_RESTART which should reduce the potential for short read/write operations.
* check access(ssh-sk-helper, X_OK) to provide friendly error messagedjm2020-01-211-1/+9
| | | | for misconfigured helper paths
* pass the log-on-stderr flag and log level through to ssh-sk-helper,djm2020-01-101-17/+23
| | | | making debugging a bit easier. ok markus@
* Extends the SK API to accept a set of key/value options for alldjm2020-01-061-5/+9
| | | | | | | | | | | | | | | | | | operations. These are intended to future-proof the API a little by making it easier to specify additional fields for without having to change the API version for each. At present, only two options are defined: one to explicitly specify the device for an operation (rather than accepting the middleware's autoselection) and another to specify the FIDO2 username that may be used when generating a resident key. These new options may be invoked at key generation time via ssh-keygen -O This also implements a suggestion from Markus to avoid "int" in favour of uint32_t for the algorithm argument in the API, to make implementation of ssh-sk-client/helper a little easier. feedback, fixes and ok markus@
* SK API and sk-helper error/PIN passingdjm2019-12-301-10/+37
| | | | | | | | | | | Allow passing a PIN via the SK API (API major crank) and let the ssh-sk-helper API follow. Also enhance the ssh-sk-helper API to support passing back an error code instead of a complete reply. Will be used to signal "wrong PIN", etc. feedback and ok markus@
* implement loading of resident keys in ssh-sk-helperdjm2019-12-301-1/+71
| | | | feedback and ok markus@
* actually commit the ssh-sk-helper client code; ok markusdjm2019-12-131-0/+323