summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
AgeCommit message (Collapse)Author
2020-04-08let sshkey_try_load_public() load public keys from the unencryptedDamien Miller
envelope of private key files if not sidecar public key file is present. ok markus@
2020-04-08simplify sshkey_try_load_public()Damien Miller
ok markus@
2020-04-08add sshkey_parse_pubkey_from_private_fileblob_type()Damien Miller
Extracts a public key from the unencrypted envelope of a new-style OpenSSH private key. ok markus@
2020-04-08simplify sshkey_parse_private_fileblob_type()Damien Miller
Try new format parser for all key types first, fall back to PEM parser only for invalid format errors. ok markus@
2020-04-08check private key type against requested key type in new-style privateDamien Miller
decoding; ok markus@
2020-04-08check that pubkey in private key envelope matches actual private keyDamien Miller
(this public key is currently unusued) ok markus@
2020-04-08refactor private key parsing a littleDamien Miller
Split out the base64 decoding and private section decryption steps in to separate functions. This will make the decryption step easier to fuzz as well as making it easier to write a "load public key from new-format private key" function. ok markus@
2020-04-03r1.522 deleted one too many lines; repairDamien Miller
2020-04-03sort -N and add it to usage();Jason McIntyre
2020-04-03avoid another compiler warning spotted in -portableDamien Miller
2020-04-03fix format string (use %llu for uint64, not %lld). spotted by Darren andDamien Miller
his tinderbox tests
2020-04-03Add a flag to re-enable verbose output when in batch mode;Damien Miller
requested in bz3135; ok dtucker
2020-04-03chacha20-poly1305 AEAD using libcrypto EVP_chacha20Damien Miller
Based on patch from Yuriy M. Kaminskiy. ok + lots of assistance along the way at a2k20 tb@
2020-04-03make Chacha20-POLY1305 context struct opaque; ok tb@ as part of a largerDamien Miller
diff at a2k20
2020-04-03fix debug statementDamien Miller
2020-04-03the tunnel-forwarding vs ExitOnForwardFailure fix that I committedDamien Miller
earlier had an off-by-one. Fix this and add some debugging that would have made it apparent sooner.
2020-04-03%C expansion just added to Match Exec should include remote user not localDarren Tucker
user.
2020-04-03make failures when establishing "Tunnel" forwarding terminate theDamien Miller
connection when ExitOnForwardFailure is enabled; bz3116; ok dtucker
2020-04-03Make with config keywords support which percent_expansions more consistent.Darren Tucker
- %C is moved into its own function and added to Match Exec. - move the common (global) options into a macro. This is ugly but it's the least-ugly way I could come up with. - move IdentityAgent and ForwardAgent percent expansion to before the config dump to make it regression-testable. - document all of the above ok jmc@ for man page bits, "makes things less terrible" djm@ for the rest.
2020-04-03give ssh-keygen the ability to dump the contents of a binary keyDamien Miller
revocation list: ssh-keygen -lQf /path bz#3132; ok dtucker
2020-04-03add allocating variant of the safe utf8 printer; ok dtucker as part ofDamien Miller
a larger diff
2020-03-16Cast lifetime to u_long for comparison to prevent unsigned comparisonDarren Tucker
warning on 32bit arches. Spotted by deraadt, ok djm.
2020-03-13improve error messages for some common PKCS#11 C_Login failure cases;Damien Miller
based on patch from Jacob Hoffman-Andrews in bz3130; ok dtucker
2020-03-13use sshpkt_fatal() for kex_exchange_identification() errors.Damien Miller
This ensures that the logged errors are consistent with other transport- layer errors and that the relevant IP addresses are logged. bz3129 ok dtucker@
2020-03-13Don't clear alarm timers in listening sshd. Previously these timers wereDarren Tucker
used for regenerating the SSH1 ephemeral host keys but those are now gone so there's no need to clear the timers either. ok deraadt@
2020-03-13spelling errors in comments; no code changeDamien Miller
from https://fossies.org/linux/misc/openssh-8.2p1.tar.gz/codespell.html
2020-03-13when downloading FIDO2 resident keys from a token, don't prompt for a PINDamien Miller
until the token has told us that it needs one. Avoids double-prompting on devices that implement on-device authentication (e.g. a touchscreen PIN pad on the Trezor Model T). ok dtucker@
2020-03-06fix relative includes in sshd_config; ok djmMarkus Friedl
2020-03-06fix use-after-free in do_download_sk; ok djmMarkus Friedl
2020-03-06do not leak oprincipals; ok djmMarkus Friedl
2020-03-06initialize seconds for debug message; ok djmMarkus Friedl
2020-03-06correct return code; ok djmMarkus Friedl
2020-03-06principalsp is optional, pubkey required; ok djmMarkus Friedl
2020-03-06remove unused variables in ssh-pkcs11-helper; ok djmMarkus Friedl
2020-03-06return correct error in sshsk_ed25519_sig; ok djmMarkus Friedl
2020-03-06fix possible null-deref in check_key_not_revoked; ok djmMarkus Friedl
2020-03-06ssh_fetch_identitylist() returns the return value fromMarkus Friedl
ssh_request_reply() so we should also check against != 0 ok djm
2020-03-06sshkey_cert_check_authority requires reason to be set; ok djmMarkus Friedl
2020-03-06passphrase depends on kdfname, not ciphername (possible null-deref);Markus Friedl
ok djm
2020-03-06consistently check packet_timeout_ms against 0; ok djmMarkus Friedl
2020-03-06initialize cname in case ai_canonname is NULL or too long; ok djmMarkus Friedl
2020-03-06fix uninitialized pointers for forward_cancel; ok djmMarkus Friedl
2020-03-06exit on parse failures in input_service_request; ok djmMarkus Friedl
2020-03-06fix null-deref on calloc failure; ok djmMarkus Friedl
2020-03-06exit if ssh_krl_revoke_key_sha256 fails; ok djmMarkus Friedl
2020-03-06pkcs11_register_provider: return < 0 on error; ok djmMarkus Friedl
2020-03-06sshsig: return correct error, fix null-deref; ok djmMarkus Friedl
2020-03-06vasnmprintf allocates str and returns -1; ok djmMarkus Friedl
2020-03-06sshpkt_fatal() does not return; ok djmMarkus Friedl
2020-02-28no-touch-required certificate option should be an extension, notDamien Miller
a critical option.