diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-12-28 18:21:47 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2012-02-04 18:37:04 +0100 |
commit | f35c284761359b4b71c0f8228126fa920430ad66 (patch) | |
tree | daf2aa48e326644b673352045effdd14d9369c7e /include/libssh | |
parent | fa37965ab08ce66875be15f340e54f4c283075d9 (diff) | |
download | libssh-f35c284761359b4b71c0f8228126fa920430ad66.tar.gz libssh-f35c284761359b4b71c0f8228126fa920430ad66.tar.xz libssh-f35c284761359b4b71c0f8228126fa920430ad66.zip |
pki: Add support to import ecdsa pubkeys.
Diffstat (limited to 'include/libssh')
-rw-r--r-- | include/libssh/pki_priv.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libssh/pki_priv.h b/include/libssh/pki_priv.h index 7f85b874..7963984d 100644 --- a/include/libssh/pki_priv.h +++ b/include/libssh/pki_priv.h @@ -34,6 +34,8 @@ void _ssh_pki_log(const char *function, const char *format, ...) PRINTF_ATTRIBUTE(2, 3); +int pki_key_ecdsa_nid_from_name(const char *name); + /* SSH Key Functions */ ssh_key pki_key_dup(const ssh_key key, int demote); int pki_key_generate_rsa(ssh_key key, int parameter); @@ -58,6 +60,7 @@ int pki_pubkey_build_dss(ssh_key key, int pki_pubkey_build_rsa(ssh_key key, ssh_string e, ssh_string n); +int pki_pubkey_build_ecdsa(ssh_key key, int nid, ssh_string e); ssh_string pki_publickey_to_blob(const ssh_key key); int pki_export_pubkey_rsa1(const ssh_key key, const char *host, |