summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/EVP_PKEY_new.3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/man/EVP_PKEY_new.344
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
17The
18.Vt EVP_PKEY
19structure is used by various OpenSSL functions which require a general
20private key without reference to any particular algorithm.
21.Pp
22The
23.Fn EVP_PKEY_new
24function allocates an empty
25.Vt EVP_PKEY
26structure.
27To 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
31frees up the private key
32.Fa key .
33.Sh RETURN VALUES
34.Fn EVP_PKEY_new
35returns either the newly allocated
36.Vt EVP_PKEY
37structure or
38.Dv NULL
39if an error occurred.
40.Pp
41.Fn EVP_PKEY_free
42does not return a value.
43.Sh SEE ALSO
44.Xr EVP_PKEY_set1_RSA 3