EC_KEY_METHOD_set_init

Install lifecycle and field-assignment callbacks on an EC_KEY_METHOD (deprecated).

Synopsis

Declared in <openssl/ec.h>

[[deprecated]]
void
EC_KEY_METHOD_set_init(
    EC_KEY_METHOD* meth,
    int(* init)(EC_KEY*),
    void(* finish)(EC_KEY*),
    int(* copy)(EC_KEY*, EC_KEY const*),
    int(* set_group)(EC_KEY*, EC_GROUP const*),
    int(* set_private)(EC_KEY*, BIGNUM const*),
    int(* set_public)(EC_KEY*, EC_POINT const*));

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Parameters

NameDescription
methMethod table to update.
initOptional constructor called when an EC_KEY using meth is created.
finishOptional destructor called when such an EC_KEY is freed.
copyOptional deep-copy callback from src into dest.
set_groupOptional callback to assign the EC_GROUP on the key.
set_privateOptional callback to assign the private BIGNUM.
set_publicOptional callback to assign the public EC_POINT.