diff options
Diffstat (limited to 'src/lib/libcrypto/man/EVP_PKEY_set1_RSA.3')
-rw-r--r-- | src/lib/libcrypto/man/EVP_PKEY_set1_RSA.3 | 41 |
1 files changed, 35 insertions, 6 deletions
diff --git a/src/lib/libcrypto/man/EVP_PKEY_set1_RSA.3 b/src/lib/libcrypto/man/EVP_PKEY_set1_RSA.3 index 851184ae3c..e897dacf68 100644 --- a/src/lib/libcrypto/man/EVP_PKEY_set1_RSA.3 +++ b/src/lib/libcrypto/man/EVP_PKEY_set1_RSA.3 | |||
@@ -1,5 +1,6 @@ | |||
1 | .\" $OpenBSD: EVP_PKEY_set1_RSA.3,v 1.5 2016/12/11 12:21:48 schwarze Exp $ | 1 | .\" $OpenBSD: EVP_PKEY_set1_RSA.3,v 1.6 2018/02/17 16:59:48 schwarze Exp $ |
2 | .\" OpenSSL 9b86974e Aug 17 15:21:33 2015 -0400 | 2 | .\" full merge up to: OpenSSL 9b86974e Aug 17 15:21:33 2015 -0400 |
3 | .\" selective merge up to: OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 | ||
3 | .\" | 4 | .\" |
4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. | 5 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. |
5 | .\" Copyright (c) 2002, 2014, 2016 The OpenSSL Project. All rights reserved. | 6 | .\" Copyright (c) 2002, 2014, 2016 The OpenSSL Project. All rights reserved. |
@@ -48,7 +49,7 @@ | |||
48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
50 | .\" | 51 | .\" |
51 | .Dd $Mdocdate: December 11 2016 $ | 52 | .Dd $Mdocdate: February 17 2018 $ |
52 | .Dt EVP_PKEY_SET1_RSA 3 | 53 | .Dt EVP_PKEY_SET1_RSA 3 |
53 | .Os | 54 | .Os |
54 | .Sh NAME | 55 | .Sh NAME |
@@ -60,6 +61,9 @@ | |||
60 | .Nm EVP_PKEY_get1_DSA , | 61 | .Nm EVP_PKEY_get1_DSA , |
61 | .Nm EVP_PKEY_get1_DH , | 62 | .Nm EVP_PKEY_get1_DH , |
62 | .Nm EVP_PKEY_get1_EC_KEY , | 63 | .Nm EVP_PKEY_get1_EC_KEY , |
64 | .Nm EVP_PKEY_get0_RSA , | ||
65 | .Nm EVP_PKEY_get0_DSA , | ||
66 | .Nm EVP_PKEY_get0_DH , | ||
63 | .Nm EVP_PKEY_assign_RSA , | 67 | .Nm EVP_PKEY_assign_RSA , |
64 | .Nm EVP_PKEY_assign_DSA , | 68 | .Nm EVP_PKEY_assign_DSA , |
65 | .Nm EVP_PKEY_assign_DH , | 69 | .Nm EVP_PKEY_assign_DH , |
@@ -106,6 +110,18 @@ | |||
106 | .Fo EVP_PKEY_get1_EC_KEY | 110 | .Fo EVP_PKEY_get1_EC_KEY |
107 | .Fa "EVP_PKEY *pkey" | 111 | .Fa "EVP_PKEY *pkey" |
108 | .Fc | 112 | .Fc |
113 | .Ft RSA * | ||
114 | .Fo EVP_PKEY_get0_RSA | ||
115 | .Fa "EVP_PKEY *pkey" | ||
116 | .Fc | ||
117 | .Ft DSA * | ||
118 | .Fo EVP_PKEY_get0_DSA | ||
119 | .Fa "EVP_PKEY *pkey" | ||
120 | .Fc | ||
121 | .Ft DH * | ||
122 | .Fo EVP_PKEY_get0_DH | ||
123 | .Fa "EVP_PKEY *pkey" | ||
124 | .Fc | ||
109 | .Ft int | 125 | .Ft int |
110 | .Fo EVP_PKEY_assign_RSA | 126 | .Fo EVP_PKEY_assign_RSA |
111 | .Fa "EVP_PKEY *pkey" | 127 | .Fa "EVP_PKEY *pkey" |
@@ -155,11 +171,18 @@ to | |||
155 | and | 171 | and |
156 | .Fn EVP_PKEY_get1_EC_KEY | 172 | .Fn EVP_PKEY_get1_EC_KEY |
157 | return the key referenced in | 173 | return the key referenced in |
158 | .Fa pkey | 174 | .Fa pkey , |
159 | or | 175 | incrementing its reference count by 1, or |
160 | .Dv NULL | 176 | .Dv NULL |
161 | if the key is not of the correct type. | 177 | if the key is not of the correct type. |
162 | .Pp | 178 | .Pp |
179 | .Fn EVP_PKEY_get0_RSA , | ||
180 | .Fn EVP_PKEY_get0_DSA , | ||
181 | and | ||
182 | .Fn EVP_PKEY_get0_DH | ||
183 | are identical except that they do not increment the reference count. | ||
184 | Consequently, the returned key must not be freed by the caller. | ||
185 | .Pp | ||
163 | .Fn EVP_PKEY_assign_RSA , | 186 | .Fn EVP_PKEY_assign_RSA , |
164 | .Fn EVP_PKEY_assign_DSA , | 187 | .Fn EVP_PKEY_assign_DSA , |
165 | .Fn EVP_PKEY_assign_DH , | 188 | .Fn EVP_PKEY_assign_DH , |
@@ -235,8 +258,11 @@ return 1 for success or 0 for failure. | |||
235 | .Fn EVP_PKEY_get1_RSA , | 258 | .Fn EVP_PKEY_get1_RSA , |
236 | .Fn EVP_PKEY_get1_DSA , | 259 | .Fn EVP_PKEY_get1_DSA , |
237 | .Fn EVP_PKEY_get1_DH , | 260 | .Fn EVP_PKEY_get1_DH , |
261 | .Fn EVP_PKEY_get1_EC_KEY , | ||
262 | .Fn EVP_PKEY_get0_RSA , | ||
263 | .Fn EVP_PKEY_get0_DSA , | ||
238 | and | 264 | and |
239 | .Fn EVP_PKEY_get1_EC_KEY | 265 | .Fn EVP_PKEY_get0_DH |
240 | return the referenced key or | 266 | return the referenced key or |
241 | .Dv NULL | 267 | .Dv NULL |
242 | if an error occurred. | 268 | if an error occurred. |
@@ -258,5 +284,8 @@ return a key type or | |||
258 | .Dv EVP_PKEY_NONE ) | 284 | .Dv EVP_PKEY_NONE ) |
259 | on error. | 285 | on error. |
260 | .Sh SEE ALSO | 286 | .Sh SEE ALSO |
287 | .Xr DH_new 3 , | ||
288 | .Xr DSA_new 3 , | ||
289 | .Xr EC_KEY_new 3 , | ||
261 | .Xr EVP_PKEY_new 3 , | 290 | .Xr EVP_PKEY_new 3 , |
262 | .Xr RSA_new 3 | 291 | .Xr RSA_new 3 |