From 110eb0b1990d5d5ee77f9368a9b7653cfdc07131 Mon Sep 17 00:00:00 2001 From: Simponic Date: Mon, 19 Dec 2022 20:45:01 -0700 Subject: Implement public key and add tests --- lib/chessh/schema/key.ex | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/chessh/schema/key.ex') diff --git a/lib/chessh/schema/key.ex b/lib/chessh/schema/key.ex index f8c14cf..765c83b 100644 --- a/lib/chessh/schema/key.ex +++ b/lib/chessh/schema/key.ex @@ -32,6 +32,7 @@ defmodule Chessh.Key do if is_tuple(key) do case key do {pub, [opts]} -> [{pub, [opts]}] + {pub, []} -> [{pub, [comment: '']}] key -> [{key, [comment: '']}] end |> :ssh_file.encode(:openssh_key) -- cgit v1.2.3-70-g09d2