#include <stdio.h>
#include <stdlib.h>
-#include <openssl/objects.h>
#include "cryptlib.h"
+#include <openssl/objects.h>
#include <openssl/evp.h>
#include "asn1_locl.h"
#include "evp_locl.h"
typedef int sk_cmp_fn_type(const char * const *a, const char * const *b);
STACK *app_pkey_methods = NULL;
-extern EVP_PKEY_METHOD rsa_pkey_meth, dh_pkey_meth, dsa_pkey_meth;
+extern EVP_PKEY_METHOD rsa_pkey_meth, dh_pkey_meth, dsa_pkey_meth, ec_pkey_meth;
static const EVP_PKEY_METHOD *standard_methods[] =
{
&rsa_pkey_meth,
&dh_pkey_meth,
- &dsa_pkey_meth
+ &dsa_pkey_meth,
+ &ec_pkey_meth
};
static int pmeth_cmp(const EVP_PKEY_METHOD * const *a,
return NULL;
pmeth->pkey_id = id;
- pmeth->flags = flags | EVP_PKEY_DYNAMIC;
+ pmeth->flags = flags | EVP_PKEY_FLAG_DYNAMIC;
pmeth->init = 0;
pmeth->cleanup = 0;
void EVP_PKEY_meth_free(EVP_PKEY_METHOD *pmeth)
{
- if (pmeth && (pmeth->flags & EVP_PKEY_DYNAMIC))
+ if (pmeth && (pmeth->flags & EVP_PKEY_FLAG_DYNAMIC))
OPENSSL_free(pmeth);
}