prepare for multiple names for authmethods
authordjm <djm@openbsd.org>
Sun, 19 Dec 2021 22:12:07 +0000 (22:12 +0000)
committerdjm <djm@openbsd.org>
Sun, 19 Dec 2021 22:12:07 +0000 (22:12 +0000)
commit29cc2a20e114d63475ab3cf1f9c9b442b1edfd59
tree6aa7f753ce73127863f0f5763c76aec13a58b9c9
parentc645c1546f6cfb739635b7b666ec1113f50e01a1
prepare for multiple names for authmethods

allow authentication methods to have one additional name beyond their
primary name.

allow lookup by this synonym

Use primary name for authentication decisions, e.g. for
PermitRootLogin=publickey

Pass actual invoked name to the authmethods, so they can tell whether they
were requested via the their primary name or synonym.

ok markus@
usr.bin/ssh/auth.h
usr.bin/ssh/auth2-gss.c
usr.bin/ssh/auth2-hostbased.c
usr.bin/ssh/auth2-kbdint.c
usr.bin/ssh/auth2-none.c
usr.bin/ssh/auth2-passwd.c
usr.bin/ssh/auth2-pubkey.c
usr.bin/ssh/auth2.c