EVP_PKEY_get0_RSA

Return the legacy RSA handle inside pkey without incrementing its refcount (deprecated).

Synopsis

Declared in <openssl/evp.h>

[[deprecated]]
rsa_st const*
EVP_PKEY_get0_RSA(EVP_PKEY const* pkey);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

Borrowed RSA pointer, or NULL if pkey is not RSA / on error.

Parameters

NameDescription
pkeyKey expected to contain an RSA key.