aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-12-28 18:21:47 +0100
committerAndreas Schneider <asn@cryptomilk.org>2012-02-04 18:37:04 +0100
commitf35c284761359b4b71c0f8228126fa920430ad66 (patch)
treedaf2aa48e326644b673352045effdd14d9369c7e /include/libssh
parentfa37965ab08ce66875be15f340e54f4c283075d9 (diff)
downloadlibssh-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.h3
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,