bits for match_keys_ec()
authorLove Hörnquist Åstrand <lha@kth.se>
Sun, 22 Feb 2009 23:29:37 +0000 (23:29 +0000)
committerLove Hörnquist Åstrand <lha@kth.se>
Sun, 22 Feb 2009 23:29:37 +0000 (23:29 +0000)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24803 ec53bebd-3082-4978-b11e-865c3cabbd6b

lib/hx509/crypto.c

index 8de4875ac042074e39cdccd02c1df5b694c15633..4b03b1bab92adf48d3c5dfcf448b771ef820a75c 100644 (file)
@@ -2929,13 +2929,20 @@ match_keys_rsa(hx509_cert c, hx509_private_key private_key)
     return ret == 1;
 }
 
+static int
+match_keys_ec(hx509_cert c, hx509_private_key private_key)
+{
+    return 1; /* XXX use EC_KEY_check_key */
+}
+
+
 int
 _hx509_match_keys(hx509_cert c, hx509_private_key key)
 {
     if (der_heim_oid_cmp(key->ops->key_oid, &asn1_oid_id_pkcs1_rsaEncryption) == 0)
        return match_keys_rsa(c, key);
     if (der_heim_oid_cmp(key->ops->key_oid, &asn1_oid_id_ecPublicKey) == 0)
-       return 1; /* XXX */
+       return return match_keys_ec(c, key);
     return 0;
 
 }