[#EC_KEY_METHOD_set_init] = EC_KEY_METHOD_set_init :mrdocs: Install lifecycle and field‐assignment callbacks on an EC_KEY_METHOD (deprecated). == Synopsis Declared in `<openssl/ec.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] void EC_KEY_METHOD_set_init( xref:EC_KEY_METHOD.adoc[EC_KEY_METHOD]* meth, int(* init)(xref:EC_KEY.adoc[EC_KEY]*), void(* finish)(xref:EC_KEY.adoc[EC_KEY]*), int(* copy)(xref:EC_KEY.adoc[EC_KEY]*, xref:EC_KEY.adoc[EC_KEY] const*), int(* set_group)(xref:EC_KEY.adoc[EC_KEY]*, xref:EC_GROUP.adoc[EC_GROUP] const*), int(* set_private)(xref:EC_KEY.adoc[EC_KEY]*, xref:BIGNUM.adoc[BIGNUM] const*), int(* set_public)(xref:EC_KEY.adoc[EC_KEY]*, xref:EC_POINT.adoc[EC_POINT] const*)); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Parameters [cols="1,4"] |=== | Name| Description | *meth* | Method table to update. | *init* | Optional constructor called when an EC_KEY using `meth` is created. | *finish* | Optional destructor called when such an EC_KEY is freed. | *copy* | Optional deep‐copy callback from `src` into `dest.` | *set_group* | Optional callback to assign the EC_GROUP on the key. | *set_private* | Optional callback to assign the private BIGNUM. | *set_public* | Optional callback to assign the public EC_POINT. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#