diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-03 10:10:19 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-03 10:10:19 +0200 |
| commit | 7d3685a5ed4bfac85673793f8ae6d9c5a6cff962 (patch) | |
| tree | 27bc845ef5758aa43662d0ce238436461d1893e7 /internal/ssh | |
| parent | f4898f746d03ff5dcf57d3967c594d98a9da7fe0 (diff) | |
feat(server): add AUTHKEY command handling
Diffstat (limited to 'internal/ssh')
| -rw-r--r-- | internal/ssh/server/authkeystore.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/ssh/server/authkeystore.go b/internal/ssh/server/authkeystore.go index 6e4ca37..8e26127 100644 --- a/internal/ssh/server/authkeystore.go +++ b/internal/ssh/server/authkeystore.go @@ -28,6 +28,11 @@ type AuthKeyStore struct { now func() time.Time } +// ServerAuthKeyStore returns the process-wide auth key cache used by the SSH server. +func ServerAuthKeyStore() *AuthKeyStore { + return authKeyStore +} + // NewAuthKeyStore builds a thread-safe auth key store. func NewAuthKeyStore(ttl time.Duration, maxKeysPerUser int) *AuthKeyStore { return newAuthKeyStoreWithClock(ttl, maxKeysPerUser, time.Now) |
