EVP_PKEY_set1_EC_KEY

Assign an EC_KEY to an EVP_PKEY, incrementing the EC_KEY reference count (deprecated).

Synopsis

Declared in <openssl/evp.h>

[[deprecated]]
int
EVP_PKEY_set1_EC_KEY(
    EVP_PKEY* pkey,
    ec_key_st* key);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
pkeyDestination key wrapper.
keyEC_KEY to associate; its reference count is incremented on success.