1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

scd: Let READKEY support --format=ssh option.

* scd/command.c (do_readkey): Support --format=ssh option.
* common/ssh-utils.c (ssh_public_key_in_base64): New.
* common/ssh-utils.h (ssh_public_key_in_base64): New declaration.

--

Code duplication (agent/command-ssh.c) will be cleaned up later.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2022-03-02 14:07:46 +09:00
parent f8943ce098
commit 8e650dbd48
3 changed files with 348 additions and 16 deletions

View file

@ -37,5 +37,7 @@ gpg_error_t ssh_get_fingerprint (gcry_sexp_t key, int algo,
gpg_error_t ssh_get_fingerprint_string (gcry_sexp_t key, int algo,
char **r_fprstr);
gpg_error_t ssh_public_key_in_base64 (gcry_sexp_t key, estream_t stream,
const char *comment);
#endif /*GNUPG_COMMON_SSH_UTILS_H*/