Reject calls to X509_verify_cert that have not been reinitialised
[openssl.git] / doc / crypto / EVP_PKEY_new.pod
1 =pod
2
3 =head1 NAME
4
5 EVP_PKEY_new, EVP_PKEY_free - private key allocation functions.
6
7 =head1 SYNOPSIS
8
9  #include <openssl/evp.h>
10
11  EVP_PKEY *EVP_PKEY_new(void);
12  void EVP_PKEY_free(EVP_PKEY *key);
13
14
15 =head1 DESCRIPTION
16
17 The EVP_PKEY_new() function allocates an empty B<EVP_PKEY> 
18 structure which is used by OpenSSL to store private keys.
19
20 EVP_PKEY_free() frees up the private key B<key>.
21 If B<key> is NULL, nothing is done.
22
23 =head1 NOTES
24
25 The B<EVP_PKEY> structure is used by various OpenSSL functions
26 which require a general private key without reference to any
27 particular algorithm.
28
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)|EVP_PKEY_set1_RSA(3)> should be used.
32
33 =head1 RETURN VALUES
34
35 EVP_PKEY_new() returns either the newly allocated B<EVP_PKEY>
36 structure of B<NULL> if an error occurred.
37
38 EVP_PKEY_free() does not return a value.
39
40 =head1 SEE ALSO
41
42 L<EVP_PKEY_set1_RSA(3)|EVP_PKEY_set1_RSA(3)>
43
44 =head1 HISTORY
45
46 TBA
47
48 =cut