return NULL;
}
- if ((ret = ossl_ec_key_new_method_int(src->libctx, src->propq,
- NULL)) == NULL)
+ if ((ret = ossl_ec_key_new_method_int(src->libctx, src->propq)) == NULL)
return NULL;
/* copy the parameters */
#ifndef FIPS_MODULE
EC_KEY *EC_KEY_new(void)
{
- return ossl_ec_key_new_method_int(NULL, NULL, NULL);
+ return ossl_ec_key_new_method_int(NULL, NULL);
}
#endif
EC_KEY *EC_KEY_new_ex(OSSL_LIB_CTX *ctx, const char *propq)
{
- return ossl_ec_key_new_method_int(ctx, propq, NULL);
+ return ossl_ec_key_new_method_int(ctx, propq);
}
EC_KEY *EC_KEY_new_by_curve_name_ex(OSSL_LIB_CTX *ctx, const char *propq,
return 1;
}
-EC_KEY *ossl_ec_key_new_method_int(OSSL_LIB_CTX *libctx, const char *propq,
- ENGINE *engine)
+EC_KEY *ossl_ec_key_new_method_int(OSSL_LIB_CTX *libctx, const char *propq)
{
EC_KEY *ret = OPENSSL_zalloc(sizeof(*ret));
}
#ifndef FIPS_MODULE
-EC_KEY *EC_KEY_new_method(ENGINE *engine)
+EC_KEY *EC_KEY_new_method(ossl_unused ENGINE *engine)
{
- return ossl_ec_key_new_method_int(NULL, NULL, engine);
+ if (engine != NULL)
+ return NULL;
+ return ossl_ec_key_new_method_int(NULL, NULL);
}
#endif
#define EC_KEY_METHOD_DYNAMIC 1
-EC_KEY *ossl_ec_key_new_method_int(OSSL_LIB_CTX *libctx, const char *propq,
- ENGINE *engine);
+EC_KEY *ossl_ec_key_new_method_int(OSSL_LIB_CTX *libctx, const char *propq);
int ossl_ec_key_gen(EC_KEY *eckey);
int ossl_ecdh_compute_key(unsigned char **pout, size_t *poutlen,