Assign a low-level key object of type to an EVP_PKEY (deprecated).
Declared in <openssl/evp.h>
[[deprecated]]
int
EVP_PKEY_assign(
EVP_PKEY* pkey,
int type,
void* key);
Deprecated. Use of this entity is allowed but discouraged.
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| pkey | Destination key wrapper; previous key material is freed. |
| type | Key type NID such as EVP_PKEY_RSA or EVP_PKEY_EC. |
| key | Type-specific key pointer (for example RSA *) that pkey will own. |