Add algorithm specific signature printing. An individual ASN1 method can
[openssl.git] / crypto / ec / ec_ameth.c
index 09a16bce7786e2c751c9b47bc808495334385192..83909c185359a73046952b2ad9ac38991211b2e7 100644 (file)
@@ -1,4 +1,4 @@
-/* Written by Dr Stephen N Henson (shenson@bigfoot.com) for the OpenSSL
+/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
  * project 2006.
  */
 /* ====================================================================
@@ -520,7 +520,7 @@ err:
        }
 
 static int eckey_param_decode(EVP_PKEY *pkey,
-                             const unsigned char **pder, size_t derlen)
+                                       const unsigned char **pder, int derlen)
        {
        EC_KEY *eckey;
        if (!(eckey = d2i_ECParameters(NULL, pder, derlen)))
@@ -557,7 +557,7 @@ static int eckey_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent,
        }
 
 static int old_ec_priv_decode(EVP_PKEY *pkey,
-                             const unsigned char **pder, size_t derlen)
+                                       const unsigned char **pder, int derlen)
        {
        EC_KEY *ec;
        if (!(ec = d2i_ECPrivateKey (NULL, pder, derlen)))
@@ -651,6 +651,7 @@ const EVP_PKEY_ASN1_METHOD eckey_asn1_meth =
        ec_copy_parameters,
        ec_cmp_parameters,
        eckey_param_print,
+       0,
 
        int_ec_free,
        ec_pkey_ctrl,