5 EVP_PKEY_new, EVP_PKEY_free - private key allocation functions.
9 #include <openssl/evp.h>
11 EVP_PKEY *EVP_PKEY_new(void);
12 void EVP_PKEY_free(EVP_PKEY *key);
17 The EVP_PKEY_new() function allocates an empty B<EVP_PKEY>
18 structure which is used by OpenSSL to store private keys.
20 EVP_PKEY_free() frees up the private key B<key>.
21 If B<key> is NULL, nothing is done.
25 The B<EVP_PKEY> structure is used by various OpenSSL functions
26 which require a general private key without reference to any
29 The structure returned by EVP_PKEY_new() is empty. To add a
30 private key to this empty structure the functions described in
31 L<EVP_PKEY_set1_RSA(3)> should be used.
35 EVP_PKEY_new() returns either the newly allocated B<EVP_PKEY>
36 structure of B<NULL> if an error occurred.
38 EVP_PKEY_free() does not return a value.
42 L<EVP_PKEY_set1_RSA(3)>