pki: Implement reading public key from OpenSSH private key container

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 1226de875b)
This commit is contained in:
Jakub Jelen
2018-09-13 13:45:46 +02:00
committed by Andreas Schneider
parent 628b529a91
commit f7ab481b22
3 changed files with 61 additions and 20 deletions

View File

@@ -149,6 +149,7 @@ int pki_privkey_build_ed25519(ssh_key key,
ssh_string privkey);
/* PKI Container OpenSSH */
ssh_key ssh_pki_openssh_pubkey_import(const char *text_key);
ssh_key ssh_pki_openssh_privkey_import(const char *text_key,
const char *passphrase, ssh_auth_callback auth_fn, void *auth_data);
ssh_string ssh_pki_openssh_privkey_export(const ssh_key privkey,