[#EVP_PKEY_assign] = EVP_PKEY_assign :mrdocs: Assign a low‐level key object of `type` to an EVP_PKEY (deprecated). == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int EVP_PKEY_assign( xref:EVP_PKEY.adoc[EVP_PKEY]* pkey, int type, void* key); ---- [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. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#