summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2018-02-14 02:15:46 +0000
committerschwarze <>2018-02-14 02:15:46 +0000
commit4f48bcf2dc8ab6f6d746e6e5646d4f32f59d5d4b (patch)
treee03fd05a5ac3bd31e3e7a4e4ab25889b819c54a2
parentcb7e2958dd3c10c5da0ef856a4488e7089c1d8ef (diff)
downloadopenbsd-4f48bcf2dc8ab6f6d746e6e5646d4f32f59d5d4b.tar.gz
openbsd-4f48bcf2dc8ab6f6d746e6e5646d4f32f59d5d4b.tar.bz2
openbsd-4f48bcf2dc8ab6f6d746e6e5646d4f32f59d5d4b.zip
New manual page EVP_PKEY_asn1_new(3) from Richard Levitte
via OpenSSL commit 751148e2 Oct 27 00:11:11 2017 +0200, including only the parts related to functions that exist in OpenBSD. The design of these interfaces is not particularly pretty, they are not particularly easy to document, and the manual page does not look particularly good when formatted, but what can we do, things are as they are...
-rw-r--r--src/lib/libcrypto/man/EVP_PKEY_asn1_new.3455
-rw-r--r--src/lib/libcrypto/man/EVP_PKEY_cmp.35
-rw-r--r--src/lib/libcrypto/man/EVP_PKEY_get_default_digest_nid.35
-rw-r--r--src/lib/libcrypto/man/EVP_PKEY_new.35
-rw-r--r--src/lib/libcrypto/man/EVP_PKEY_print_private.35
-rw-r--r--src/lib/libcrypto/man/EVP_SignInit.35
-rw-r--r--src/lib/libcrypto/man/Makefile3
-rw-r--r--src/lib/libcrypto/man/X509_PUBKEY_new.35
8 files changed, 475 insertions, 13 deletions
diff --git a/src/lib/libcrypto/man/EVP_PKEY_asn1_new.3 b/src/lib/libcrypto/man/EVP_PKEY_asn1_new.3
new file mode 100644
index 0000000000..249fee658f
--- /dev/null
+++ b/src/lib/libcrypto/man/EVP_PKEY_asn1_new.3
@@ -0,0 +1,455 @@
1.\" $OpenBSD: EVP_PKEY_asn1_new.3,v 1.1 2018/02/14 02:15:46 schwarze Exp $
2.\" selective merge up to:
3.\" OpenSSL man3/EVP_PKEY_ASN1_METHOD b0004708 Nov 1 00:45:24 2017 +0800
4.\"
5.\" This file was written by Richard Levitte <levitte@openssl.org>
6.\" Copyright (c) 2017 The OpenSSL Project. All rights reserved.
7.\"
8.\" Redistribution and use in source and binary forms, with or without
9.\" modification, are permitted provided that the following conditions
10.\" are met:
11.\"
12.\" 1. Redistributions of source code must retain the above copyright
13.\" notice, this list of conditions and the following disclaimer.
14.\"
15.\" 2. Redistributions in binary form must reproduce the above copyright
16.\" notice, this list of conditions and the following disclaimer in
17.\" the documentation and/or other materials provided with the
18.\" distribution.
19.\"
20.\" 3. All advertising materials mentioning features or use of this
21.\" software must display the following acknowledgment:
22.\" "This product includes software developed by the OpenSSL Project
23.\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
24.\"
25.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
26.\" endorse or promote products derived from this software without
27.\" prior written permission. For written permission, please contact
28.\" openssl-core@openssl.org.
29.\"
30.\" 5. Products derived from this software may not be called "OpenSSL"
31.\" nor may "OpenSSL" appear in their names without prior written
32.\" permission of the OpenSSL Project.
33.\"
34.\" 6. Redistributions of any form whatsoever must retain the following
35.\" acknowledgment:
36.\" "This product includes software developed by the OpenSSL Project
37.\" for use in the OpenSSL Toolkit (http://www.openssl.org/)"
38.\"
39.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
40.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
41.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
42.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
43.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
44.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
45.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
46.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
47.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
48.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
51.\"
52.Dd $Mdocdate: February 14 2018 $
53.Dt EVP_PKEY_ASN1_METHOD 3
54.Os
55.Sh NAME
56.Nm EVP_PKEY_asn1_new ,
57.Nm EVP_PKEY_asn1_copy ,
58.Nm EVP_PKEY_asn1_free ,
59.Nm EVP_PKEY_asn1_add0 ,
60.Nm EVP_PKEY_asn1_add_alias ,
61.Nm EVP_PKEY_asn1_set_public ,
62.Nm EVP_PKEY_asn1_set_private ,
63.Nm EVP_PKEY_asn1_set_param ,
64.Nm EVP_PKEY_asn1_set_free ,
65.Nm EVP_PKEY_asn1_set_ctrl
66.Nd manipulating and registering an EVP_PKEY_ASN1_METHOD structure
67.Sh SYNOPSIS
68.In openssl/evp.h
69.Ft EVP_PKEY_ASN1_METHOD *
70.Fo EVP_PKEY_asn1_new
71.Fa "int id"
72.Fa "int flags"
73.Fa "const char *pem_str"
74.Fa "const char *info"
75.Fc
76.Ft void
77.Fo EVP_PKEY_asn1_copy
78.Fa "EVP_PKEY_ASN1_METHOD *dst"
79.Fa "const EVP_PKEY_ASN1_METHOD *src"
80.Fc
81.Ft void
82.Fo EVP_PKEY_asn1_free
83.Fa "EVP_PKEY_ASN1_METHOD *ameth"
84.Fc
85.Ft int
86.Fo EVP_PKEY_asn1_add0
87.Fa "const EVP_PKEY_ASN1_METHOD *ameth"
88.Fc
89.Ft int
90.Fo EVP_PKEY_asn1_add_alias
91.Fa "int to"
92.Fa "int from"
93.Fc
94.Ft void
95.Fo EVP_PKEY_asn1_set_public
96.Fa "EVP_PKEY_ASN1_METHOD *ameth"
97.Fa "int (*pub_decode)(EVP_PKEY *pk, X509_PUBKEY *pub)"
98.Fa "int (*pub_encode)(X509_PUBKEY *pub, const EVP_PKEY *pk)"
99.Fa "int (*pub_cmp)(const EVP_PKEY *a, const EVP_PKEY *b)"
100.Fa "int (*pub_print)(BIO *out, const EVP_PKEY *pkey, int indent,\
101 ASN1_PCTX *pctx)"
102.Fa "int (*pkey_size)(const EVP_PKEY *pk)"
103.Fa "int (*pkey_bits)(const EVP_PKEY *pk)"
104.Fc
105.Ft void
106.Fo EVP_PKEY_asn1_set_private
107.Fa "EVP_PKEY_ASN1_METHOD *ameth"
108.Fa "int (*priv_decode)(EVP_PKEY *pk, const PKCS8_PRIV_KEY_INFO *p8inf)"
109.Fa "int (*priv_encode)(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pk)"
110.Fa "int (*priv_print)(BIO *out, const EVP_PKEY *pkey, int indent,\
111 ASN1_PCTX *pctx)"
112.Fc
113.Ft void
114.Fo EVP_PKEY_asn1_set_param
115.Fa "EVP_PKEY_ASN1_METHOD *ameth"
116.Fa "int (*param_decode)(EVP_PKEY *pkey, const unsigned char **pder,\
117 int derlen)"
118.Fa "int (*param_encode)(const EVP_PKEY *pkey, unsigned char **pder)"
119.Fa "int (*param_missing)(const EVP_PKEY *pk)"
120.Fa "int (*param_copy)(EVP_PKEY *to, const EVP_PKEY *from)"
121.Fa "int (*param_cmp)(const EVP_PKEY *a, const EVP_PKEY *b)"
122.Fa "int (*param_print)(BIO *out, const EVP_PKEY *pkey, int indent,\
123 ASN1_PCTX *pctx)"
124.Fc
125.Ft void
126.Fo EVP_PKEY_asn1_set_free
127.Fa "EVP_PKEY_ASN1_METHOD *ameth"
128.Fa "void (*pkey_free)(EVP_PKEY *pkey)"
129.Fc
130.Ft void
131.Fo EVP_PKEY_asn1_set_ctrl
132.Fa "EVP_PKEY_ASN1_METHOD *ameth"
133.Fa "int (*pkey_ctrl)(EVP_PKEY *pkey, int op, long arg1, void *arg2)"
134.Fc
135.Sh DESCRIPTION
136.Vt EVP_PKEY_ASN1_METHOD
137is a structure which holds a set of ASN.1 conversion, printing and
138information methods for a specific public key algorithm.
139.Pp
140There are two places where the
141.Vt EVP_PKEY_ASN1_METHOD
142objects are stored: one is a built-in array representing the standard
143methods for different algorithms, and the other one is a stack of
144user-defined application-specific methods, which can be manipulated by
145using
146.Fn EVP_PKEY_asn1_add0 .
147.Ss Methods
148The methods are the underlying implementations of a particular public
149key algorithm present by the
150.Vt EVP_PKEY
151object.
152.Bd -unfilled
153.Ft int Fo (*pub_decode)
154.Fa "EVP_PKEY *pk"
155.Fa "X509_PUBKEY *pub"
156.Fc
157.Ft int Fo (*pub_encode)
158.Fa "X509_PUBKEY *pub"
159.Fa "const EVP_PKEY *pk"
160.Fc
161.Ft int Fo (*pub_cmp)
162.Fa "const EVP_PKEY *a"
163.Fa "const EVP_PKEY *b"
164.Fc
165.Ft int Fo (*pub_print)
166.Fa "BIO *out"
167.Fa "const EVP_PKEY *pkey"
168.Fa "int indent"
169.Fa "ASN1_PCTX *pctx"
170.Fc
171.Ed
172.Pp
173The
174.Fn pub_decode
175and
176.Fn pub_encode
177methods are called to decode and encode
178.Vt X509_PUBKEY
179ASN.1 parameters to and from
180.Fa pk .
181They must return 0 on error and 1 on success.
182They are called by
183.Xr X509_PUBKEY_get 3
184and
185.Xr X509_PUBKEY_set 3 .
186.Pp
187The
188.Fn pub_cmp
189method is called when two public keys are compared.
190It must return 1 when the keys are equal and 0 otherwise.
191It is called by
192.Xr EVP_PKEY_cmp 3 .
193.Pp
194The
195.Fn pub_print
196method is called to print a public key in humanly readable text to
197.Fa out ,
198indented
199.Fa indent
200spaces.
201It must return 0 on error and 1 on success.
202It is called by
203.Xr EVP_PKEY_print_public 3 .
204.Bd -unfilled
205.Ft int Fo (*priv_decode)
206.Fa "EVP_PKEY *pk"
207.Fa "const PKCS8_PRIV_KEY_INFO *p8inf"
208.Fc
209.Ft int Fo (*priv_encode)
210.Fa "PKCS8_PRIV_KEY_INFO *p8"
211.Fa "const EVP_PKEY *pk"
212.Fc
213.Ft int Fo (*priv_print)
214.Fa "BIO *out"
215.Fa "const EVP_PKEY *pkey"
216.Fa "int indent"
217.Fa "ASN1_PCTX *pctx"
218.Fc
219.Ed
220.Pp
221The
222.Fn priv_decode
223and
224.Fn priv_encode
225methods are called to decode and encode
226.Vt PKCS8_PRIV_KEY_INFO
227form private key to and from
228.Fa pk .
229They must return 0 on error, 1 on success.
230They are called by
231.Fn EVP_PKCS82PKEY
232and
233.Fn EVP_PKEY2PKCS8 .
234.Pp
235The
236.Fn priv_print
237method is called to print a private key in humanly readable text to
238.Fa out ,
239indented
240.Fa indent
241spaces.
242It must return 0 on error and 1 on success.
243It is called by
244.Xr EVP_PKEY_print_private 3 .
245.Bd -unfilled
246.Ft int Fn (*pkey_size) "const EVP_PKEY *pk"
247.Ft int Fn (*pkey_bits) "const EVP_PKEY *pk";
248.Ed
249.Pp
250The
251.Fn pkey_size
252method returns the key size in bytes.
253It is called by
254.Xr EVP_PKEY_size 3 .
255.Pp
256The
257.Fn pkey_bits
258method returns the key size in bits.
259It's called by
260.Fn EVP_PKEY_bits .
261.Bd -unfilled
262.Ft int Fo (*param_decode)
263.Fa "EVP_PKEY *pkey"
264.Fa "const unsigned char **pder"
265.Fa "int derlen"
266.Fc
267.Ft int Fo (*param_encode)
268.Fa "const EVP_PKEY *pkey"
269.Fa "unsigned char **pder"
270.Fc
271.Ft int Fo (*param_missing)
272.Fa "const EVP_PKEY *pk"
273.Fc
274.Ft int Fo (*param_copy)
275.Fa "EVP_PKEY *to"
276.Fa "const EVP_PKEY *from"
277.Fc
278.Ft int Fo (*param_cmp)
279.Fa "const EVP_PKEY *a"
280.Fa "const EVP_PKEY *b"
281.Fc
282.Ft int Fo (*param_print)
283.Fa "BIO *out"
284.Fa "const EVP_PKEY *pkey"
285.Fa "int indent"
286.Fa "ASN1_PCTX *pctx"
287.Fc
288.Ed
289.Pp
290The
291.Fn param_decode
292and
293.Fn param_encode
294methods are called to decode and encode DER formatted parameters to and from
295.Fa pk .
296They must return 0 on error and 1 on success.
297They are called by
298.Fn PEM_read_bio_Parameters .
299.Pp
300The
301.Fn param_missing
302method returns 0 if a key parameter is missing or otherwise 1.
303It is called by
304.Xr EVP_PKEY_missing_parameters 3 .
305.Pp
306The
307.Fn param_copy
308method copies key parameters from
309.Fa from
310to
311.Fa to .
312It must return 0 on error and 1 on success.
313It is called by
314.Xr EVP_PKEY_copy_parameters 3 .
315.Pp
316The
317.Fn param_cmp
318method compares the parameters of the keys
319.Fa a
320and
321.Fa b .
322It must return 1 when the keys are equal, 0 when not equal, and a
323negative number on error.
324It is called by
325.Xr EVP_PKEY_cmp_parameters 3 .
326.Pp
327The
328.Fn param_print
329method prints the private key parameters in humanly readable text to
330.Fa out ,
331indented
332.Fa indent
333spaces.
334It must return 0 on error and 1 on success.
335It is called by
336.Xr EVP_PKEY_print_params 3 .
337.Bd -unfilled
338.Ft void Fn (*pkey_free) "EVP_PKEY *pkey"
339.Ed
340.Pp
341The
342.Fn pkey_free
343method helps freeing the internals of
344.Fa pkey .
345It is called by
346.Xr EVP_PKEY_free 3 ,
347.Fn EVP_PKEY_set_type ,
348.Fn EVP_PKEY_set_type_str ,
349and
350.Fn EVP_PKEY_assign .
351.Bd -unfilled
352.Ft int Fo (*pkey_ctrl)
353.Fa "EVP_PKEY *pkey"
354.Fa "int op"
355.Fa "long arg1"
356.Fa "void *arg2"
357.Fc
358.Ed
359.Pp
360The
361.Fn pkey_ctrl
362method adds extra algorithm specific control.
363It is called by
364.Xr EVP_PKEY_get_default_digest_nid 3 ,
365.Fn PKCS7_SIGNER_INFO_set ,
366.Fn PKCS7_RECIP_INFO_set ,
367and other functions.
368.Ss Functions
369.Fn EVP_PKEY_asn1_new
370creates and returns a new
371.Vt EVP_PKEY_ASN1_METHOD
372object, and associates the given
373.Fa id ,
374.Fa flags ,
375.Fa pem_str
376and
377.Fa info .
378.Fa id
379is a NID,
380.Fa pem_str
381is the PEM type string,
382.Fa info
383is a descriptive string.
384If
385.Dv ASN1_PKEY_SIGPARAM_NULL
386is set in
387.Fa flags ,
388the signature algorithm parameters are given the type
389.Dv V_ASN1_NULL
390by default, otherwise they will be given the type
391.Dv V_ASN1_UNDEF
392(i.e. the parameter is omitted).
393See
394.Xr X509_ALGOR_set0 3
395for more information.
396.Pp
397.Fn EVP_PKEY_asn1_copy
398copies an
399.Vt EVP_PKEY_ASN1_METHOD
400object from
401.Fa src
402to
403.Fa dst .
404This function is not thread safe, it is recommended to only use this when
405initializing the application.
406.Pp
407.Fn EVP_PKEY_asn1_free
408frees an existing
409.Vt EVP_PKEY_ASN1_METHOD
410pointed by
411.Fa ameth .
412.Pp
413.Fn EVP_PKEY_asn1_add0
414adds
415.Fa ameth
416to the user defined stack of methods unless another
417.Vt EVP_PKEY_ASN1_METHOD
418with the same NID is already there.
419This function is not thread safe, it is recommended to only use this when
420initializing the application.
421.Pp
422.Fn EVP_PKEY_asn1_add_alias
423creates an alias with the NID
424.Fa to
425for the
426.Vt EVP_PKEY_ASN1_METHOD
427with NID
428.Fa from
429unless another
430.Vt EVP_PKEY_ASN1_METHOD
431with the same NID is already added.
432This function is not thread safe, it's recommended to only use this when
433initializing the application.
434.Pp
435.Fn EVP_PKEY_asn1_set_public ,
436.Fn EVP_PKEY_asn1_set_private ,
437.Fn EVP_PKEY_asn1_set_param ,
438.Fn EVP_PKEY_asn1_set_free ,
439and
440.Fn EVP_PKEY_asn1_set_ctrl
441set the diverse methods of the given
442.Vt EVP_PKEY_ASN1_METHOD
443object.
444.Sh RETURN VALUES
445.Fn EVP_PKEY_asn1_new
446returns a pointer to an
447.Vt EVP_PKEY_ASN1_METHOD
448object or
449.Dv NULL
450on error.
451.Pp
452.Fn EVP_PKEY_asn1_add0
453and
454.Fn EVP_PKEY_asn1_add_alias
455return 0 on error or 1 on success.
diff --git a/src/lib/libcrypto/man/EVP_PKEY_cmp.3 b/src/lib/libcrypto/man/EVP_PKEY_cmp.3
index c583cecf64..529cd3fa9d 100644
--- a/src/lib/libcrypto/man/EVP_PKEY_cmp.3
+++ b/src/lib/libcrypto/man/EVP_PKEY_cmp.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EVP_PKEY_cmp.3,v 1.4 2016/11/27 15:22:39 schwarze Exp $ 1.\" $OpenBSD: EVP_PKEY_cmp.3,v 1.5 2018/02/14 02:15:46 schwarze Exp $
2.\" OpenSSL 05ea606a May 20 20:52:46 2016 -0400 2.\" OpenSSL 05ea606a May 20 20:52:46 2016 -0400
3.\" 3.\"
4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>. 4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
@@ -49,7 +49,7 @@
49.\" 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
50.\" OF THE POSSIBILITY OF SUCH DAMAGE. 50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
51.\" 51.\"
52.Dd $Mdocdate: November 27 2016 $ 52.Dd $Mdocdate: February 14 2018 $
53.Dt EVP_PKEY_CMP 3 53.Dt EVP_PKEY_CMP 3
54.Os 54.Os
55.Sh NAME 55.Sh NAME
@@ -141,5 +141,6 @@ and
141return 1 if the keys match, 0 if they don't match, -1 if the key types 141return 1 if the keys match, 0 if they don't match, -1 if the key types
142are different and -2 if the operation is not supported. 142are different and -2 if the operation is not supported.
143.Sh SEE ALSO 143.Sh SEE ALSO
144.Xr EVP_PKEY_asn1_set_public 3 ,
144.Xr EVP_PKEY_CTX_new 3 , 145.Xr EVP_PKEY_CTX_new 3 ,
145.Xr EVP_PKEY_keygen 3 146.Xr EVP_PKEY_keygen 3
diff --git a/src/lib/libcrypto/man/EVP_PKEY_get_default_digest_nid.3 b/src/lib/libcrypto/man/EVP_PKEY_get_default_digest_nid.3
index 906cdb7002..4e3ed78fb4 100644
--- a/src/lib/libcrypto/man/EVP_PKEY_get_default_digest_nid.3
+++ b/src/lib/libcrypto/man/EVP_PKEY_get_default_digest_nid.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EVP_PKEY_get_default_digest_nid.3,v 1.2 2016/11/27 15:27:19 schwarze Exp $ 1.\" $OpenBSD: EVP_PKEY_get_default_digest_nid.3,v 1.3 2018/02/14 02:15:46 schwarze Exp $
2.\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 2.\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400
3.\" 3.\"
4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>. 4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
@@ -48,7 +48,7 @@
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE. 49.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\" 50.\"
51.Dd $Mdocdate: November 27 2016 $ 51.Dd $Mdocdate: February 14 2018 $
52.Dt EVP_PKEY_GET_DEFAULT_DIGEST_NID 3 52.Dt EVP_PKEY_GET_DEFAULT_DIGEST_NID 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
@@ -81,6 +81,7 @@ It returns 0 or a negative value for failure.
81In particular, a return value of -2 indicates the operation is not 81In particular, a return value of -2 indicates the operation is not
82supported by the public key algorithm. 82supported by the public key algorithm.
83.Sh SEE ALSO 83.Sh SEE ALSO
84.Xr EVP_PKEY_asn1_set_ctrl 3 ,
84.Xr EVP_PKEY_CTX_ctrl 3 , 85.Xr EVP_PKEY_CTX_ctrl 3 ,
85.Xr EVP_PKEY_CTX_new 3 , 86.Xr EVP_PKEY_CTX_new 3 ,
86.Xr EVP_PKEY_sign 3 , 87.Xr EVP_PKEY_sign 3 ,
diff --git a/src/lib/libcrypto/man/EVP_PKEY_new.3 b/src/lib/libcrypto/man/EVP_PKEY_new.3
index 636df7dffc..54b863b88f 100644
--- a/src/lib/libcrypto/man/EVP_PKEY_new.3
+++ b/src/lib/libcrypto/man/EVP_PKEY_new.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EVP_PKEY_new.3,v 1.3 2016/11/27 15:24:27 schwarze Exp $ 1.\" $OpenBSD: EVP_PKEY_new.3,v 1.4 2018/02/14 02:15:46 schwarze Exp $
2.\" OpenSSL 9b86974e Aug 17 15:21:33 2015 -0400 2.\" OpenSSL 9b86974e Aug 17 15:21:33 2015 -0400
3.\" 3.\"
4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>. 4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
@@ -48,7 +48,7 @@
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE. 49.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\" 50.\"
51.Dd $Mdocdate: November 27 2016 $ 51.Dd $Mdocdate: February 14 2018 $
52.Dt EVP_PKEY_NEW 3 52.Dt EVP_PKEY_NEW 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
@@ -93,6 +93,7 @@ structure or
93.Dv NULL 93.Dv NULL
94if an error occurred. 94if an error occurred.
95.Sh SEE ALSO 95.Sh SEE ALSO
96.Xr EVP_PKEY_asn1_set_free 3 ,
96.Xr EVP_PKEY_set1_RSA 3 97.Xr EVP_PKEY_set1_RSA 3
97.Sh HISTORY 98.Sh HISTORY
98.Fn EVP_PKEY_new 99.Fn EVP_PKEY_new
diff --git a/src/lib/libcrypto/man/EVP_PKEY_print_private.3 b/src/lib/libcrypto/man/EVP_PKEY_print_private.3
index a5e4879f34..47e6a04613 100644
--- a/src/lib/libcrypto/man/EVP_PKEY_print_private.3
+++ b/src/lib/libcrypto/man/EVP_PKEY_print_private.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EVP_PKEY_print_private.3,v 1.4 2016/11/27 15:27:19 schwarze Exp $ 1.\" $OpenBSD: EVP_PKEY_print_private.3,v 1.5 2018/02/14 02:15:46 schwarze Exp $
2.\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 2.\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400
3.\" 3.\"
4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>. 4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
@@ -48,7 +48,7 @@
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE. 49.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\" 50.\"
51.Dd $Mdocdate: November 27 2016 $ 51.Dd $Mdocdate: February 14 2018 $
52.Dt EVP_PKEY_PRINT_PRIVATE 3 52.Dt EVP_PKEY_PRINT_PRIVATE 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
@@ -120,6 +120,7 @@ failure.
120In particular, a return value of -2 indicates the operation is not 120In particular, a return value of -2 indicates the operation is not
121supported by the public key algorithm. 121supported by the public key algorithm.
122.Sh SEE ALSO 122.Sh SEE ALSO
123.Xr EVP_PKEY_asn1_set_public 3 ,
123.Xr EVP_PKEY_CTX_new 3 , 124.Xr EVP_PKEY_CTX_new 3 ,
124.Xr EVP_PKEY_keygen 3 125.Xr EVP_PKEY_keygen 3
125.Sh HISTORY 126.Sh HISTORY
diff --git a/src/lib/libcrypto/man/EVP_SignInit.3 b/src/lib/libcrypto/man/EVP_SignInit.3
index 1751ca594e..67991cee5b 100644
--- a/src/lib/libcrypto/man/EVP_SignInit.3
+++ b/src/lib/libcrypto/man/EVP_SignInit.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EVP_SignInit.3,v 1.4 2016/11/26 20:55:26 schwarze Exp $ 1.\" $OpenBSD: EVP_SignInit.3,v 1.5 2018/02/14 02:15:46 schwarze Exp $
2.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 2.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100
3.\" 3.\"
4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>. 4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
@@ -49,7 +49,7 @@
49.\" 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
50.\" OF THE POSSIBILITY OF SUCH DAMAGE. 50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
51.\" 51.\"
52.Dd $Mdocdate: November 26 2016 $ 52.Dd $Mdocdate: February 14 2018 $
53.Dt EVP_SIGNINIT 3 53.Dt EVP_SIGNINIT 3
54.Os 54.Os
55.Sh NAME 55.Sh NAME
@@ -188,6 +188,7 @@ The error codes can be obtained by
188.Xr ERR 3 , 188.Xr ERR 3 ,
189.Xr evp 3 , 189.Xr evp 3 ,
190.Xr EVP_DigestInit 3 , 190.Xr EVP_DigestInit 3 ,
191.Xr EVP_PKEY_asn1_set_public 3 ,
191.Xr EVP_VerifyInit 3 192.Xr EVP_VerifyInit 3
192.Sh HISTORY 193.Sh HISTORY
193.Fn EVP_SignInit , 194.Fn EVP_SignInit ,
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile
index fa966f028e..7d9208bc91 100644
--- a/src/lib/libcrypto/man/Makefile
+++ b/src/lib/libcrypto/man/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.124 2017/08/20 23:18:53 schwarze Exp $ 1# $OpenBSD: Makefile,v 1.125 2018/02/14 02:15:46 schwarze Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4 4
@@ -113,6 +113,7 @@ MAN= \
113 EVP_EncodeInit.3 \ 113 EVP_EncodeInit.3 \
114 EVP_EncryptInit.3 \ 114 EVP_EncryptInit.3 \
115 EVP_OpenInit.3 \ 115 EVP_OpenInit.3 \
116 EVP_PKEY_asn1_new.3 \
116 EVP_PKEY_CTX_ctrl.3 \ 117 EVP_PKEY_CTX_ctrl.3 \
117 EVP_PKEY_CTX_new.3 \ 118 EVP_PKEY_CTX_new.3 \
118 EVP_PKEY_cmp.3 \ 119 EVP_PKEY_cmp.3 \
diff --git a/src/lib/libcrypto/man/X509_PUBKEY_new.3 b/src/lib/libcrypto/man/X509_PUBKEY_new.3
index 7ed3e68b2e..2ffc44b3ef 100644
--- a/src/lib/libcrypto/man/X509_PUBKEY_new.3
+++ b/src/lib/libcrypto/man/X509_PUBKEY_new.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509_PUBKEY_new.3,v 1.5 2016/12/28 14:06:06 schwarze Exp $ 1.\" $OpenBSD: X509_PUBKEY_new.3,v 1.6 2018/02/14 02:15:46 schwarze Exp $
2.\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 2.\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400
3.\" 3.\"
4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>. 4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
@@ -48,7 +48,7 @@
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE. 49.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\" 50.\"
51.Dd $Mdocdate: December 28 2016 $ 51.Dd $Mdocdate: February 14 2018 $
52.Dt X509_PUBKEY_NEW 3 52.Dt X509_PUBKEY_NEW 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
@@ -265,6 +265,7 @@ return 1 for success and 0 if an error occurred.
265.Sh SEE ALSO 265.Sh SEE ALSO
266.Xr d2i_X509 3 , 266.Xr d2i_X509 3 ,
267.Xr ERR_get_error 3 , 267.Xr ERR_get_error 3 ,
268.Xr EVP_PKEY_asn1_set_public 3 ,
268.Xr X509_ALGOR_new 3 , 269.Xr X509_ALGOR_new 3 ,
269.Xr X509_get_pubkey 3 270.Xr X509_get_pubkey 3
270.Sh STANDARDS 271.Sh STANDARDS