summaryrefslogtreecommitdiff
path: root/lib/chessh/ssh/server_key.ex
diff options
context:
space:
mode:
authorSimponic <loganhunt@simponic.xyz>2023-01-13 19:49:33 -0700
committerSimponic <loganhunt@simponic.xyz>2023-01-13 20:00:48 -0700
commitea51b89dc611bd747044d4773865fa1f6c15fcd8 (patch)
treeb060110948adf6e7a5cddaaa319a77697197aad7 /lib/chessh/ssh/server_key.ex
parent87e42b29f004f67df2512c133de626c2b0804477 (diff)
downloadchessh-ea51b89dc611bd747044d4773865fa1f6c15fcd8.tar.gz
chessh-ea51b89dc611bd747044d4773865fa1f6c15fcd8.zip
handle_info instead of cast, @impl in serverkey
Diffstat (limited to 'lib/chessh/ssh/server_key.ex')
-rw-r--r--lib/chessh/ssh/server_key.ex2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chessh/ssh/server_key.ex b/lib/chessh/ssh/server_key.ex
index eae9577..71b6997 100644
--- a/lib/chessh/ssh/server_key.ex
+++ b/lib/chessh/ssh/server_key.ex
@@ -4,6 +4,7 @@ defmodule Chessh.SSH.ServerKey do
@behaviour :ssh_server_key_api
+ @impl true
def is_auth_key(key, username, _daemon_options) do
PlayerSession.update_sessions_and_player_satisfies(
username,
@@ -11,6 +12,7 @@ defmodule Chessh.SSH.ServerKey do
)
end
+ @impl true
def host_key(algorithm, daemon_options) do
:ssh_file.host_key(algorithm, daemon_options)
end