diff options
Diffstat (limited to 'src/lib/libcrypto/man/EVP_PKEY_new.3')
| -rw-r--r-- | src/lib/libcrypto/man/EVP_PKEY_new.3 | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/lib/libcrypto/man/EVP_PKEY_new.3 b/src/lib/libcrypto/man/EVP_PKEY_new.3 new file mode 100644 index 0000000000..155ca9ad24 --- /dev/null +++ b/src/lib/libcrypto/man/EVP_PKEY_new.3 | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | .Dd $Mdocdate: November 3 2016 $ | ||
| 2 | .Dt EVP_PKEY_NEW 3 | ||
| 3 | .Os | ||
| 4 | .Sh NAME | ||
| 5 | .Nm EVP_PKEY_new , | ||
| 6 | .Nm EVP_PKEY_free | ||
| 7 | .Nd private key allocation functions | ||
| 8 | .Sh SYNOPSIS | ||
| 9 | .In openssl/evp.h | ||
| 10 | .Ft EVP_PKEY * | ||
| 11 | .Fn EVP_PKEY_new void | ||
| 12 | .Ft void | ||
| 13 | .Fo EVP_PKEY_free | ||
| 14 | .Fa "EVP_PKEY *key" | ||
| 15 | .Fc | ||
| 16 | .Sh DESCRIPTION | ||
| 17 | The | ||
| 18 | .Vt EVP_PKEY | ||
| 19 | structure is used by various OpenSSL functions which require a general | ||
| 20 | private key without reference to any particular algorithm. | ||
| 21 | .Pp | ||
| 22 | The | ||
| 23 | .Fn EVP_PKEY_new | ||
| 24 | function allocates an empty | ||
| 25 | .Vt EVP_PKEY | ||
| 26 | structure. | ||
| 27 | To add a private key to it, use the functions described in | ||
| 28 | .Xr EVP_PKEY_set1_RSA 3 . | ||
| 29 | .Pp | ||
| 30 | .Fn EVP_PKEY_free | ||
| 31 | frees up the private key | ||
| 32 | .Fa key . | ||
| 33 | .Sh RETURN VALUES | ||
| 34 | .Fn EVP_PKEY_new | ||
| 35 | returns either the newly allocated | ||
| 36 | .Vt EVP_PKEY | ||
| 37 | structure or | ||
| 38 | .Dv NULL | ||
| 39 | if an error occurred. | ||
| 40 | .Pp | ||
| 41 | .Fn EVP_PKEY_free | ||
| 42 | does not return a value. | ||
| 43 | .Sh SEE ALSO | ||
| 44 | .Xr EVP_PKEY_set1_RSA 3 | ||
