refactor key constraint parsing in ssh-agent
authordjm <djm@openbsd.org>
Tue, 26 Jan 2021 00:54:49 +0000 (00:54 +0000)
committerdjm <djm@openbsd.org>
Tue, 26 Jan 2021 00:54:49 +0000 (00:54 +0000)
commit794ac8d88e6fff0a7b6f79fc3eb17f7b56e9bed7
tree66ccc9c4312a17e31d0baaaa06a41ef0a23f1f78
parentd83c402e84173d3b6e258be3a729b25b83dfedd4
refactor key constraint parsing in ssh-agent

Key constraints parsing code previously existed in both the "add regular
key" and "add smartcard key" path. This unifies them but also introduces
more consistency checking: duplicated constraints and constraints that
are nonsensical for a particular situation (e.g. FIDO provider for a
smartcard key) are now banned.

ok markus@
usr.bin/ssh/ssh-agent.c