[#EC_KEY_set_method]
= EC&lowbar;KEY&lowbar;set&lowbar;method
:mrdocs:

Attach an EC&lowbar;KEY&lowbar;METHOD to `key` (deprecated)&period;

== Synopsis

Declared in `&lt;openssl&sol;ec&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
EC&lowbar;KEY&lowbar;set&lowbar;method(
    xref:EC_KEY.adoc[EC&lowbar;KEY]* key,
    xref:EC_KEY_METHOD.adoc[EC&lowbar;KEY&lowbar;METHOD] const* meth);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| Key whose method table is replaced&period;
| *meth*
| Method table to use&semi; must outlive `key` unless replaced again&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
