summaryrefslogtreecommitdiff
path: root/internal/ssh/server/authkeystore.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-03 10:10:19 +0200
committerPaul Buetow <paul@buetow.org>2026-03-03 10:10:19 +0200
commit7d3685a5ed4bfac85673793f8ae6d9c5a6cff962 (patch)
tree27bc845ef5758aa43662d0ce238436461d1893e7 /internal/ssh/server/authkeystore.go
parentf4898f746d03ff5dcf57d3967c594d98a9da7fe0 (diff)
feat(server): add AUTHKEY command handling
Diffstat (limited to 'internal/ssh/server/authkeystore.go')
-rw-r--r--internal/ssh/server/authkeystore.go5
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)