EVP_PKEY_set1_RSA

Set the RSA key referenced by an EVP_PKEY, incrementing the RSA reference count (deprecated).

Synopsis

Declared in <openssl/evp.h>

[[deprecated]]
int
EVP_PKEY_set1_RSA(
    EVP_PKEY* pkey,
    rsa_st* key);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
pkeyDestination EVP_PKEY to assign.
keyRSA key to associate; its reference count is incremented.