aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-02-04 20:25:24 +0100
committerAndreas Schneider <asn@cryptomilk.org>2012-02-04 20:25:24 +0100
commit19f7458ed30073bd325b491bb827c4b51d22f2e9 (patch)
tree73fa34db6d7a83daa22eebdf94757bbc77cbef9a
parent3e83bc665f8e4f2f003fb641548c3e6399741550 (diff)
downloadlibssh-19f7458ed30073bd325b491bb827c4b51d22f2e9.tar.gz
libssh-19f7458ed30073bd325b491bb827c4b51d22f2e9.tar.xz
libssh-19f7458ed30073bd325b491bb827c4b51d22f2e9.zip
pki: Add ecdsa gcrypt stubs.
-rw-r--r--src/pki_gcrypt.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/pki_gcrypt.c b/src/pki_gcrypt.c
index 27c5eed..a44ed73 100644
--- a/src/pki_gcrypt.c
+++ b/src/pki_gcrypt.c
@@ -584,6 +584,13 @@ error:
return rc;
}
+#ifdef HAVE_GCRYPT_ECC
+int pki_key_ecdsa_nid_from_name(const char *name)
+{
+ return -1;
+}
+#endif
+
ssh_key pki_private_key_from_base64(const char *b64_key,
const char *passphrase,
ssh_auth_callback auth_fn,
@@ -704,6 +711,13 @@ int pki_pubkey_build_rsa(ssh_key key,
return SSH_OK;
}
+#ifdef HAVE_GCRYPT_ECC
+int pki_pubkey_build_ecdsa(ssh_key key, int nid, ssh_string e)
+{
+ return -1;
+}
+#endif
+
ssh_key pki_key_dup(const ssh_key key, int demote)
{
ssh_key new;
@@ -995,6 +1009,12 @@ int pki_key_generate_dss(ssh_key key, int parameter){
return pki_key_generate(key, parameter, "dsa", SSH_KEYTYPE_DSS);
}
+#ifdef HAVE_GCRYPT_ECC
+int pki_key_generate_ecdsa(ssh_key key, int parameter) {
+ return -1;
+}
+#endif
+
static int _bignum_cmp(const gcry_sexp_t s1,
const gcry_sexp_t s2,
const char *what)