EC_KEY_set_method

Attach an EC_KEY_METHOD to key (deprecated).

Synopsis

Declared in <openssl/ec.h>

[[deprecated]]
int
EC_KEY_set_method(
    EC_KEY* key,
    EC_KEY_METHOD const* meth);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
keyKey whose method table is replaced.
methMethod table to use; must outlive key unless replaced again.