diff options
author | djm@openbsd.org <djm@openbsd.org> | 2021-12-19 23:12:07 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2021-12-19 23:28:07 +0100 |
commit | dbb339f015c33d63484261d140c84ad875a9e548 (patch) | |
tree | 31867902b32100b1098df953746277f4a74a8dc4 /auth.h | |
parent | upstream: ssh-agent side of destination constraints (diff) | |
download | openssh-dbb339f015c33d63484261d140c84ad875a9e548.tar.xz openssh-dbb339f015c33d63484261d140c84ad875a9e548.zip |
upstream: 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@
OpenBSD-Commit-ID: 9e613fcb44b8168823195602ed3d09ffd7994559
Diffstat (limited to 'auth.h')
-rw-r--r-- | auth.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: auth.h,v 1.101 2020/12/22 00:12:22 djm Exp $ */ +/* $OpenBSD: auth.h,v 1.102 2021/12/19 22:12:07 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. @@ -104,7 +104,8 @@ struct Authctxt { struct Authmethod { char *name; - int (*userauth)(struct ssh *); + char *synonym; + int (*userauth)(struct ssh *, const char *); int *enabled; }; |