diff options
author | schwarze <> | 2019-06-14 13:59:32 +0000 |
---|---|---|
committer | schwarze <> | 2019-06-14 13:59:32 +0000 |
commit | cbde3d1c3b16fc186eb19ea5b8633af03b65a8b3 (patch) | |
tree | aeff19eacb059a018b39fa7c9e2ecbdd6a89ce7f /src | |
parent | 1c6dd887ec8f9d6b87ce2f220e839fbe1b78db67 (diff) | |
download | openbsd-cbde3d1c3b16fc186eb19ea5b8633af03b65a8b3.tar.gz openbsd-cbde3d1c3b16fc186eb19ea5b8633af03b65a8b3.tar.bz2 openbsd-cbde3d1c3b16fc186eb19ea5b8633af03b65a8b3.zip |
Improve pages that briefly mentioned ERR - usually below SEE ALSO -
but failed to provide any real information.
OK tb@ jmc@
Diffstat (limited to 'src')
20 files changed, 198 insertions, 124 deletions
diff --git a/src/lib/libcrypto/man/ASN1_STRING_TABLE_add.3 b/src/lib/libcrypto/man/ASN1_STRING_TABLE_add.3 index cf5741e987..c4ae6c9bfa 100644 --- a/src/lib/libcrypto/man/ASN1_STRING_TABLE_add.3 +++ b/src/lib/libcrypto/man/ASN1_STRING_TABLE_add.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: ASN1_STRING_TABLE_add.3,v 1.3 2018/03/22 16:06:33 schwarze Exp $ | 1 | .\" $OpenBSD: ASN1_STRING_TABLE_add.3,v 1.4 2019/06/14 13:59:32 schwarze Exp $ |
2 | .\" OpenSSL ASN1_STRING_TABLE_add.pod 7b608d08 Jul 27 01:18:50 2017 +0800 | 2 | .\" OpenSSL ASN1_STRING_TABLE_add.pod 7b608d08 Jul 27 01:18:50 2017 +0800 |
3 | .\" | 3 | .\" |
4 | .\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> | 4 | .\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> |
@@ -15,7 +15,7 @@ | |||
15 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 15 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
16 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 16 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
17 | .\" | 17 | .\" |
18 | .Dd $Mdocdate: March 22 2018 $ | 18 | .Dd $Mdocdate: June 14 2019 $ |
19 | .Dt ASN1_STRING_TABLE_ADD 3 | 19 | .Dt ASN1_STRING_TABLE_ADD 3 |
20 | .Os | 20 | .Os |
21 | .Sh NAME | 21 | .Sh NAME |
@@ -75,8 +75,11 @@ The function | |||
75 | .Fn ASN1_STRING_TABLE_cleanup | 75 | .Fn ASN1_STRING_TABLE_cleanup |
76 | removes and frees all entries except the predefined ones. | 76 | removes and frees all entries except the predefined ones. |
77 | .Sh RETURN VALUES | 77 | .Sh RETURN VALUES |
78 | The | ||
78 | .Fn ASN1_STRING_TABLE_add | 79 | .Fn ASN1_STRING_TABLE_add |
79 | returns 1 on success or 0 if an error occurred. | 80 | function returns 1 if successful; otherwise 0 is returned |
81 | and an error code can be retrieved with | ||
82 | .Xr ERR_get_error 3 . | ||
80 | .Pp | 83 | .Pp |
81 | .Fn ASN1_STRING_TABLE_get | 84 | .Fn ASN1_STRING_TABLE_get |
82 | returns a valid | 85 | returns a valid |
@@ -86,7 +89,6 @@ structure or | |||
86 | if nothing is found. | 89 | if nothing is found. |
87 | .Sh SEE ALSO | 90 | .Sh SEE ALSO |
88 | .Xr ASN1_OBJECT_new 3 , | 91 | .Xr ASN1_OBJECT_new 3 , |
89 | .Xr ERR_get_error 3 , | ||
90 | .Xr OBJ_nid2obj 3 | 92 | .Xr OBJ_nid2obj 3 |
91 | .Sh HISTORY | 93 | .Sh HISTORY |
92 | .Fn ASN1_STRING_TABLE_add , | 94 | .Fn ASN1_STRING_TABLE_add , |
diff --git a/src/lib/libcrypto/man/ASN1_STRING_length.3 b/src/lib/libcrypto/man/ASN1_STRING_length.3 index 2e5ffe924d..d4f510ea37 100644 --- a/src/lib/libcrypto/man/ASN1_STRING_length.3 +++ b/src/lib/libcrypto/man/ASN1_STRING_length.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: ASN1_STRING_length.3,v 1.18 2019/06/06 01:06:58 schwarze Exp $ | 1 | .\" $OpenBSD: ASN1_STRING_length.3,v 1.19 2019/06/14 13:59:32 schwarze Exp $ |
2 | .\" full merge up to: OpenSSL 4a56d2a3 Feb 25 16:49:27 2018 +0300 | 2 | .\" full merge up to: OpenSSL 4a56d2a3 Feb 25 16:49:27 2018 +0300 |
3 | .\" | 3 | .\" |
4 | .\" This file is a derived work. | 4 | .\" This file is a derived work. |
@@ -66,7 +66,7 @@ | |||
66 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 66 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
67 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 67 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
68 | .\" | 68 | .\" |
69 | .Dd $Mdocdate: June 6 2019 $ | 69 | .Dd $Mdocdate: June 14 2019 $ |
70 | .Dt ASN1_STRING_LENGTH 3 | 70 | .Dt ASN1_STRING_LENGTH 3 |
71 | .Os | 71 | .Os |
72 | .Sh NAME | 72 | .Sh NAME |
@@ -287,9 +287,16 @@ or a negative number if an error occurred. | |||
287 | .Fn ASN1_STRING_type | 287 | .Fn ASN1_STRING_type |
288 | returns an integer constant, for example | 288 | returns an integer constant, for example |
289 | .Dv V_ASN1_OCTET_STRING . | 289 | .Dv V_ASN1_OCTET_STRING . |
290 | .Pp | ||
291 | In some cases of failure of | ||
292 | .Fn ASN1_STRING_dup , | ||
293 | .Fn ASN1_STRING_set , | ||
294 | and | ||
295 | .Fn ASN1_STRING_to_UTF8 , | ||
296 | the reason can be determined with | ||
297 | .Xr ERR_get_error 3 . | ||
290 | .Sh SEE ALSO | 298 | .Sh SEE ALSO |
291 | .Xr ASN1_STRING_new 3 , | 299 | .Xr ASN1_STRING_new 3 |
292 | .Xr ERR_get_error 3 | ||
293 | .Sh HISTORY | 300 | .Sh HISTORY |
294 | .Fn ASN1_STRING_cmp , | 301 | .Fn ASN1_STRING_cmp , |
295 | .Fn ASN1_STRING_dup , | 302 | .Fn ASN1_STRING_dup , |
diff --git a/src/lib/libcrypto/man/ASN1_STRING_new.3 b/src/lib/libcrypto/man/ASN1_STRING_new.3 index b12d936fef..46325f3968 100644 --- a/src/lib/libcrypto/man/ASN1_STRING_new.3 +++ b/src/lib/libcrypto/man/ASN1_STRING_new.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: ASN1_STRING_new.3,v 1.16 2019/06/06 01:06:58 schwarze Exp $ | 1 | .\" $OpenBSD: ASN1_STRING_new.3,v 1.17 2019/06/14 13:59:32 schwarze Exp $ |
2 | .\" OpenSSL 99d63d46 Tue Mar 24 07:52:24 2015 -0400 | 2 | .\" OpenSSL 99d63d46 Tue Mar 24 07:52:24 2015 -0400 |
3 | .\" | 3 | .\" |
4 | .\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> | 4 | .\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> |
@@ -15,7 +15,7 @@ | |||
15 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 15 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
16 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 16 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
17 | .\" | 17 | .\" |
18 | .Dd $Mdocdate: June 6 2019 $ | 18 | .Dd $Mdocdate: June 14 2019 $ |
19 | .Dt ASN1_STRING_NEW 3 | 19 | .Dt ASN1_STRING_NEW 3 |
20 | .Os | 20 | .Os |
21 | .Sh NAME | 21 | .Sh NAME |
@@ -184,7 +184,7 @@ and which ASN.1 type it represents. | |||
184 | .El | 184 | .El |
185 | .Pp | 185 | .Pp |
186 | All the | 186 | All the |
187 | .Fa *_free | 187 | .Fn *_free |
188 | functions free | 188 | functions free |
189 | .Fa a | 189 | .Fa a |
190 | including any data contained in it. | 190 | including any data contained in it. |
@@ -195,12 +195,13 @@ is a | |||
195 | pointer, no action occurs. | 195 | pointer, no action occurs. |
196 | .Sh RETURN VALUES | 196 | .Sh RETURN VALUES |
197 | All the | 197 | All the |
198 | .Fa *_new | 198 | .Fn *_new |
199 | functions return the new | 199 | functions return the new |
200 | .Vt ASN1_STRING | 200 | .Vt ASN1_STRING |
201 | object or | 201 | object if successful; otherwise |
202 | .Dv NULL | 202 | .Dv NULL |
203 | if an error occurs. | 203 | is returned and an error code can be retrieved with |
204 | .Xr ERR_get_error 3 . | ||
204 | .Sh SEE ALSO | 205 | .Sh SEE ALSO |
205 | .Xr ASN1_INTEGER_get 3 , | 206 | .Xr ASN1_INTEGER_get 3 , |
206 | .Xr ASN1_STRING_length 3 , | 207 | .Xr ASN1_STRING_length 3 , |
@@ -210,7 +211,6 @@ if an error occurs. | |||
210 | .Xr ASN1_TYPE_get 3 , | 211 | .Xr ASN1_TYPE_get 3 , |
211 | .Xr d2i_ASN1_OBJECT 3 , | 212 | .Xr d2i_ASN1_OBJECT 3 , |
212 | .Xr d2i_ASN1_OCTET_STRING 3 , | 213 | .Xr d2i_ASN1_OCTET_STRING 3 , |
213 | .Xr ERR_get_error 3 , | ||
214 | .Xr X509_cmp_time 3 , | 214 | .Xr X509_cmp_time 3 , |
215 | .Xr X509_EXTENSION_get_object 3 , | 215 | .Xr X509_EXTENSION_get_object 3 , |
216 | .Xr X509_get_ext_by_OBJ 3 , | 216 | .Xr X509_get_ext_by_OBJ 3 , |
diff --git a/src/lib/libcrypto/man/ASN1_item_new.3 b/src/lib/libcrypto/man/ASN1_item_new.3 index 259deaca56..d45be112f1 100644 --- a/src/lib/libcrypto/man/ASN1_item_new.3 +++ b/src/lib/libcrypto/man/ASN1_item_new.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: ASN1_item_new.3,v 1.4 2018/03/22 21:08:22 schwarze Exp $ | 1 | .\" $OpenBSD: ASN1_item_new.3,v 1.5 2019/06/14 13:59:32 schwarze Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2016, 2018 Ingo Schwarze <schwarze@openbsd.org> | 3 | .\" Copyright (c) 2016, 2018 Ingo Schwarze <schwarze@openbsd.org> |
4 | .\" | 4 | .\" |
@@ -14,7 +14,7 @@ | |||
14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 | .\" | 16 | .\" |
17 | .Dd $Mdocdate: March 22 2018 $ | 17 | .Dd $Mdocdate: June 14 2019 $ |
18 | .Dt ASN1_ITEM_NEW 3 | 18 | .Dt ASN1_ITEM_NEW 3 |
19 | .Os | 19 | .Os |
20 | .Sh NAME | 20 | .Sh NAME |
@@ -96,12 +96,14 @@ does not return a pointer at all, but a | |||
96 | value cast to | 96 | value cast to |
97 | .Vt ASN1_VALUE * . | 97 | .Vt ASN1_VALUE * . |
98 | .Sh RETURN VALUES | 98 | .Sh RETURN VALUES |
99 | The | ||
99 | .Fn ASN1_item_new | 100 | .Fn ASN1_item_new |
100 | returns the new | 101 | function returns the new |
101 | .Vt ASN1_VALUE | 102 | .Vt ASN1_VALUE |
102 | object or | 103 | object if successful; otherwise |
103 | .Dv NULL | 104 | .Dv NULL |
104 | if an error occurs. | 105 | is returned and an error code can be retrieved with |
106 | .Xr ERR_get_error 3 . | ||
105 | .Sh SEE ALSO | 107 | .Sh SEE ALSO |
106 | .Xr ASN1_item_d2i 3 , | 108 | .Xr ASN1_item_d2i 3 , |
107 | .Xr ASN1_TYPE_new 3 , | 109 | .Xr ASN1_TYPE_new 3 , |
diff --git a/src/lib/libcrypto/man/OBJ_nid2obj.3 b/src/lib/libcrypto/man/OBJ_nid2obj.3 index ad743b06a0..26acea5c58 100644 --- a/src/lib/libcrypto/man/OBJ_nid2obj.3 +++ b/src/lib/libcrypto/man/OBJ_nid2obj.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: OBJ_nid2obj.3,v 1.13 2019/06/06 01:06:58 schwarze Exp $ | 1 | .\" $OpenBSD: OBJ_nid2obj.3,v 1.14 2019/06/14 13:59:32 schwarze Exp $ |
2 | .\" OpenSSL c264592d May 14 11:28:00 2006 +0000 | 2 | .\" OpenSSL c264592d May 14 11:28:00 2006 +0000 |
3 | .\" | 3 | .\" |
4 | .\" This file is a derived work. | 4 | .\" This file is a derived work. |
@@ -66,7 +66,7 @@ | |||
66 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 66 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
67 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 67 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
68 | .\" | 68 | .\" |
69 | .Dd $Mdocdate: June 6 2019 $ | 69 | .Dd $Mdocdate: June 14 2019 $ |
70 | .Dt OBJ_NID2OBJ 3 | 70 | .Dt OBJ_NID2OBJ 3 |
71 | .Os | 71 | .Os |
72 | .Sh NAME | 72 | .Sh NAME |
@@ -340,6 +340,20 @@ on error. | |||
340 | returns the new NID or | 340 | returns the new NID or |
341 | .Dv NID_undef | 341 | .Dv NID_undef |
342 | if an error occurs. | 342 | if an error occurs. |
343 | .Pp | ||
344 | In some cases of failure of | ||
345 | .Fn OBJ_nid2obj , | ||
346 | .Fn OBJ_nid2ln , | ||
347 | .Fn OBJ_nid2sn , | ||
348 | .Fn OBJ_txt2nid , | ||
349 | .Fn OBJ_txt2obj , | ||
350 | .Fn OBJ_obj2txt , | ||
351 | .Fn OBJ_dup , | ||
352 | .Fn OBJ_create , | ||
353 | and | ||
354 | .Fn i2t_ASN1_OBJECT , | ||
355 | the reason can be determined with | ||
356 | .Xr ERR_get_error 3 . | ||
343 | .Sh EXAMPLES | 357 | .Sh EXAMPLES |
344 | Create an object for | 358 | Create an object for |
345 | .Sy commonName : | 359 | .Sy commonName : |
@@ -369,8 +383,7 @@ obj = OBJ_txt2obj("1.2.3.4", 1); | |||
369 | .Ed | 383 | .Ed |
370 | .Sh SEE ALSO | 384 | .Sh SEE ALSO |
371 | .Xr ASN1_OBJECT_new 3 , | 385 | .Xr ASN1_OBJECT_new 3 , |
372 | .Xr d2i_ASN1_OBJECT 3 , | 386 | .Xr d2i_ASN1_OBJECT 3 |
373 | .Xr ERR_get_error 3 | ||
374 | .Sh HISTORY | 387 | .Sh HISTORY |
375 | .Fn OBJ_nid2obj , | 388 | .Fn OBJ_nid2obj , |
376 | .Fn OBJ_nid2ln , | 389 | .Fn OBJ_nid2ln , |
diff --git a/src/lib/libcrypto/man/PEM_write_bio_PKCS7_stream.3 b/src/lib/libcrypto/man/PEM_write_bio_PKCS7_stream.3 index 30bab9f0f7..91a1a5cd5e 100644 --- a/src/lib/libcrypto/man/PEM_write_bio_PKCS7_stream.3 +++ b/src/lib/libcrypto/man/PEM_write_bio_PKCS7_stream.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: PEM_write_bio_PKCS7_stream.3,v 1.8 2018/03/23 04:34:23 schwarze Exp $ | 1 | .\" $OpenBSD: PEM_write_bio_PKCS7_stream.3,v 1.9 2019/06/14 13:59:32 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: March 23 2018 $ | 51 | .Dd $Mdocdate: June 14 2019 $ |
52 | .Dt PEM_WRITE_BIO_PKCS7_STREAM 3 | 52 | .Dt PEM_WRITE_BIO_PKCS7_STREAM 3 |
53 | .Os | 53 | .Os |
54 | .Sh NAME | 54 | .Sh NAME |
@@ -74,11 +74,11 @@ This function is effectively a version of | |||
74 | .Xr PEM_write_bio_PKCS7 3 | 74 | .Xr PEM_write_bio_PKCS7 3 |
75 | supporting streaming. | 75 | supporting streaming. |
76 | .Sh RETURN VALUES | 76 | .Sh RETURN VALUES |
77 | .Fn PEM_write_bio_PKCS7_stream | 77 | Upon successful completion, 1 is returned; |
78 | returns 1 for success or 0 for failure. | 78 | otherwise 0 is returned and an error code can be retrieved with |
79 | .Xr ERR_get_error 3 . | ||
79 | .Sh SEE ALSO | 80 | .Sh SEE ALSO |
80 | .Xr BIO_new 3 , | 81 | .Xr BIO_new 3 , |
81 | .Xr ERR_get_error 3 , | ||
82 | .Xr i2d_PKCS7_bio_stream 3 , | 82 | .Xr i2d_PKCS7_bio_stream 3 , |
83 | .Xr PEM_write_PKCS7 3 , | 83 | .Xr PEM_write_PKCS7 3 , |
84 | .Xr PKCS7_new 3 , | 84 | .Xr PKCS7_new 3 , |
diff --git a/src/lib/libcrypto/man/PKCS12_newpass.3 b/src/lib/libcrypto/man/PKCS12_newpass.3 index b8e56124eb..b5642c96ea 100644 --- a/src/lib/libcrypto/man/PKCS12_newpass.3 +++ b/src/lib/libcrypto/man/PKCS12_newpass.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: PKCS12_newpass.3,v 1.3 2019/06/06 01:06:58 schwarze Exp $ | 1 | .\" $OpenBSD: PKCS12_newpass.3,v 1.4 2019/06/14 13:59:32 schwarze Exp $ |
2 | .\" OpenSSL c95a8b4e May 5 14:26:26 2016 +0100 | 2 | .\" OpenSSL c95a8b4e May 5 14:26:26 2016 +0100 |
3 | .\" | 3 | .\" |
4 | .\" This file was written by Jeffrey Walton <noloader@gmail.com>. | 4 | .\" This file was written by Jeffrey Walton <noloader@gmail.com>. |
@@ -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: June 6 2019 $ | 51 | .Dd $Mdocdate: June 14 2019 $ |
52 | .Dt PKCS12_NEWPASS 3 | 52 | .Dt PKCS12_NEWPASS 3 |
53 | .Os | 53 | .Os |
54 | .Sh NAME | 54 | .Sh NAME |
@@ -92,12 +92,8 @@ the function will fail with a MAC verification error. | |||
92 | In rare cases, the PKCS#12 structure does not contain a MAC: | 92 | In rare cases, the PKCS#12 structure does not contain a MAC: |
93 | in this case it will usually fail with a decryption padding error. | 93 | in this case it will usually fail with a decryption padding error. |
94 | .Sh RETURN VALUES | 94 | .Sh RETURN VALUES |
95 | .Fn PKCS12_newpass | 95 | Upon successful completion, 1 is returned; |
96 | returns 1 on success or 0 on failure. | 96 | otherwise 0 is returned and an error code can be retrieved with |
97 | .Pp | ||
98 | Applications can retrieve the most recent error from | ||
99 | .Fn PKCS12_newpass | ||
100 | with | ||
101 | .Xr ERR_get_error 3 . | 97 | .Xr ERR_get_error 3 . |
102 | .Sh EXAMPLES | 98 | .Sh EXAMPLES |
103 | This example loads a PKCS#12 file, changes its password, | 99 | This example loads a PKCS#12 file, changes its password, |
@@ -147,7 +143,6 @@ int main(int argc, char **argv) | |||
147 | } | 143 | } |
148 | .Ed | 144 | .Ed |
149 | .Sh SEE ALSO | 145 | .Sh SEE ALSO |
150 | .Xr ERR_get_error 3 , | ||
151 | .Xr PKCS12_create 3 , | 146 | .Xr PKCS12_create 3 , |
152 | .Xr PKCS12_new 3 | 147 | .Xr PKCS12_new 3 |
153 | .Sh HISTORY | 148 | .Sh HISTORY |
diff --git a/src/lib/libcrypto/man/PKCS7_sign_add_signer.3 b/src/lib/libcrypto/man/PKCS7_sign_add_signer.3 index 6dad880d45..41d57c2c26 100644 --- a/src/lib/libcrypto/man/PKCS7_sign_add_signer.3 +++ b/src/lib/libcrypto/man/PKCS7_sign_add_signer.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: PKCS7_sign_add_signer.3,v 1.9 2019/06/06 01:06:59 schwarze Exp $ | 1 | .\" $OpenBSD: PKCS7_sign_add_signer.3,v 1.10 2019/06/14 13:59:32 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>. |
@@ -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: June 6 2019 $ | 52 | .Dd $Mdocdate: June 14 2019 $ |
53 | .Dt PKCS7_SIGN_ADD_SIGNER 3 | 53 | .Dt PKCS7_SIGN_ADD_SIGNER 3 |
54 | .Os | 54 | .Os |
55 | .Sh NAME | 55 | .Sh NAME |
@@ -170,8 +170,9 @@ returns an internal pointer to the | |||
170 | structure just added or | 170 | structure just added or |
171 | .Dv NULL | 171 | .Dv NULL |
172 | if an error occurs. | 172 | if an error occurs. |
173 | In some cases of failure, the reason can be determined with | ||
174 | .Xr ERR_get_error 3 . | ||
173 | .Sh SEE ALSO | 175 | .Sh SEE ALSO |
174 | .Xr ERR_get_error 3 , | ||
175 | .Xr EVP_DigestInit 3 , | 176 | .Xr EVP_DigestInit 3 , |
176 | .Xr PKCS7_new 3 , | 177 | .Xr PKCS7_new 3 , |
177 | .Xr PKCS7_sign 3 | 178 | .Xr PKCS7_sign 3 |
diff --git a/src/lib/libcrypto/man/SMIME_write_PKCS7.3 b/src/lib/libcrypto/man/SMIME_write_PKCS7.3 index a0a15763a1..8baf6689a6 100644 --- a/src/lib/libcrypto/man/SMIME_write_PKCS7.3 +++ b/src/lib/libcrypto/man/SMIME_write_PKCS7.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: SMIME_write_PKCS7.3,v 1.5 2018/03/22 16:06:33 schwarze Exp $ | 1 | .\" $OpenBSD: SMIME_write_PKCS7.3,v 1.6 2019/06/14 13:59:32 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>. |
@@ -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: March 22 2018 $ | 52 | .Dd $Mdocdate: June 14 2019 $ |
53 | .Dt SMIME_WRITE_PKCS7 3 | 53 | .Dt SMIME_WRITE_PKCS7 3 |
54 | .Os | 54 | .Os |
55 | .Sh NAME | 55 | .Sh NAME |
@@ -127,10 +127,10 @@ indefinite length constructed encoding except in the case of signed | |||
127 | data with detached content where the content is absent and DER | 127 | data with detached content where the content is absent and DER |
128 | format is used. | 128 | format is used. |
129 | .Sh RETURN VALUES | 129 | .Sh RETURN VALUES |
130 | .Fn SMIME_write_PKCS7 | 130 | Upon successful completion, 1 is returned; |
131 | returns 1 for success or 0 for failure. | 131 | otherwise 0 is returned and an error code can be retrieved with |
132 | .Xr ERR_get_error 3 . | ||
132 | .Sh SEE ALSO | 133 | .Sh SEE ALSO |
133 | .Xr ERR_get_error 3 , | ||
134 | .Xr i2d_PKCS7_bio_stream 3 , | 134 | .Xr i2d_PKCS7_bio_stream 3 , |
135 | .Xr PEM_write_PKCS7 3 , | 135 | .Xr PEM_write_PKCS7 3 , |
136 | .Xr PKCS7_new 3 , | 136 | .Xr PKCS7_new 3 , |
diff --git a/src/lib/libcrypto/man/X509V3_get_d2i.3 b/src/lib/libcrypto/man/X509V3_get_d2i.3 index 768b2aebcd..70a36530ba 100644 --- a/src/lib/libcrypto/man/X509V3_get_d2i.3 +++ b/src/lib/libcrypto/man/X509V3_get_d2i.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: X509V3_get_d2i.3,v 1.15 2019/06/06 01:06:59 schwarze Exp $ | 1 | .\" $OpenBSD: X509V3_get_d2i.3,v 1.16 2019/06/14 13:59:32 schwarze Exp $ |
2 | .\" full merge up to: OpenSSL ff7fbfd5 Nov 2 11:52:01 2015 +0000 | 2 | .\" full merge up to: OpenSSL ff7fbfd5 Nov 2 11:52:01 2015 +0000 |
3 | .\" selective merge up to: OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 | 3 | .\" selective merge up to: OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 |
4 | .\" | 4 | .\" |
@@ -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: June 6 2019 $ | 52 | .Dd $Mdocdate: June 14 2019 $ |
53 | .Dt X509V3_GET_D2I 3 | 53 | .Dt X509V3_GET_D2I 3 |
54 | .Os | 54 | .Os |
55 | .Sh NAME | 55 | .Sh NAME |
@@ -368,24 +368,35 @@ RFC 5280. | |||
368 | .It Hold Instruction Code Ta Dv NID_hold_instruction_code | 368 | .It Hold Instruction Code Ta Dv NID_hold_instruction_code |
369 | .El | 369 | .El |
370 | .Sh RETURN VALUES | 370 | .Sh RETURN VALUES |
371 | .Fn X509V3_get_d2i | 371 | .Fn X509V3_get_d2i , |
372 | .Fn X509V3_EXT_d2i , | ||
373 | .Fn X509_get_ext_d2i , | ||
374 | .Fn X509_CRL_get_ext_d2i , | ||
372 | and | 375 | and |
373 | .Fn X509V3_EXT_d2i | 376 | .Fn X509_REVOKED_get_ext_d2i |
374 | return a pointer to an extension specific structure or | 377 | return a pointer to an extension specific structure or |
375 | .Dv NULL | 378 | .Dv NULL |
376 | if an error occurs. | 379 | if an error occurs. |
377 | .Pp | 380 | .Pp |
381 | .Fn X509V3_add1_i2d , | ||
382 | .Fn X509_add1_ext_i2d , | ||
383 | .Fn X509_CRL_add1_ext_i2d , | ||
384 | and | ||
385 | .Fn X509_REVOKED_add1_ext_i2d | ||
386 | return 1 if the operation is successful, 0 if it fails due to a | ||
387 | non-fatal error (extension not found, already exists, cannot be encoded), | ||
388 | or -1 due to a fatal error such as a memory allocation failure. | ||
389 | In some cases of failure, the reason can be determined with | ||
390 | .Xr ERR_get_error 3 . | ||
391 | .Pp | ||
392 | The | ||
378 | .Fn X509V3_EXT_i2d | 393 | .Fn X509V3_EXT_i2d |
379 | returns a pointer to an | 394 | function returns a pointer to an |
380 | .Vt X509_EXTENSION | 395 | .Vt X509_EXTENSION |
381 | structure or | 396 | structure if successful; otherwise |
382 | .Dv NULL | 397 | .Dv NULL |
383 | if an error occurs. | 398 | is returned and an error code can be retrieved with |
384 | .Pp | 399 | .Xr ERR_get_error 3 . |
385 | .Fn X509V3_add1_i2d | ||
386 | returns 1 if the operation is successful, 0 if it fails due to a | ||
387 | non-fatal error (extension not found, already exists, cannot be encoded), | ||
388 | or -1 due to a fatal error such as a memory allocation failure. | ||
389 | .Pp | 400 | .Pp |
390 | .Fn X509_get0_extensions , | 401 | .Fn X509_get0_extensions , |
391 | .Fn X509_CRL_get0_extensions , | 402 | .Fn X509_CRL_get0_extensions , |
@@ -397,7 +408,6 @@ if no extensions are present. | |||
397 | .Sh SEE ALSO | 408 | .Sh SEE ALSO |
398 | .Xr d2i_X509 3 , | 409 | .Xr d2i_X509 3 , |
399 | .Xr d2i_X509_EXTENSION 3 , | 410 | .Xr d2i_X509_EXTENSION 3 , |
400 | .Xr ERR_get_error 3 , | ||
401 | .Xr X509_CRL_get0_by_serial 3 , | 411 | .Xr X509_CRL_get0_by_serial 3 , |
402 | .Xr X509_CRL_new 3 , | 412 | .Xr X509_CRL_new 3 , |
403 | .Xr X509_EXTENSION_new 3 , | 413 | .Xr X509_EXTENSION_new 3 , |
diff --git a/src/lib/libcrypto/man/X509_CRL_get0_by_serial.3 b/src/lib/libcrypto/man/X509_CRL_get0_by_serial.3 index 4e04395f2a..14eb82493d 100644 --- a/src/lib/libcrypto/man/X509_CRL_get0_by_serial.3 +++ b/src/lib/libcrypto/man/X509_CRL_get0_by_serial.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: X509_CRL_get0_by_serial.3,v 1.9 2019/06/06 01:06:59 schwarze Exp $ | 1 | .\" $OpenBSD: X509_CRL_get0_by_serial.3,v 1.10 2019/06/14 13:59:32 schwarze Exp $ |
2 | .\" OpenSSL X509_CRL_get0_by_serial.pod cdd6c8c5 Mar 20 12:29:37 2017 +0100 | 2 | .\" OpenSSL X509_CRL_get0_by_serial.pod cdd6c8c5 Mar 20 12:29:37 2017 +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>. |
@@ -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: June 6 2019 $ | 51 | .Dd $Mdocdate: June 14 2019 $ |
52 | .Dt X509_CRL_GET0_BY_SERIAL 3 | 52 | .Dt X509_CRL_GET0_BY_SERIAL 3 |
53 | .Os | 53 | .Os |
54 | .Sh NAME | 54 | .Sh NAME |
@@ -142,16 +142,20 @@ has the reason | |||
142 | .Qq removeFromCRL , | 142 | .Qq removeFromCRL , |
143 | in which case 2 is returned. | 143 | in which case 2 is returned. |
144 | .Pp | 144 | .Pp |
145 | The | ||
145 | .Fn X509_CRL_add0_revoked | 146 | .Fn X509_CRL_add0_revoked |
146 | and | 147 | function returns 1 if successful; |
148 | otherwise 0 is returned and an error code can be retrieved with | ||
149 | .Xr ERR_get_error 3 . | ||
150 | .Pp | ||
147 | .Fn X509_CRL_sort | 151 | .Fn X509_CRL_sort |
148 | return 1 for success or 0 for failure. | 152 | returns 1 for success or 0 for failure. |
153 | The current implementation cannot fail. | ||
149 | .Pp | 154 | .Pp |
150 | .Fn X509_CRL_get_REVOKED | 155 | .Fn X509_CRL_get_REVOKED |
151 | returns a STACK of revoked entries. | 156 | returns a STACK of revoked entries. |
152 | .Sh SEE ALSO | 157 | .Sh SEE ALSO |
153 | .Xr d2i_X509_CRL 3 , | 158 | .Xr d2i_X509_CRL 3 , |
154 | .Xr ERR_get_error 3 , | ||
155 | .Xr X509_CRL_get_ext 3 , | 159 | .Xr X509_CRL_get_ext 3 , |
156 | .Xr X509_CRL_get_issuer 3 , | 160 | .Xr X509_CRL_get_issuer 3 , |
157 | .Xr X509_CRL_get_version 3 , | 161 | .Xr X509_CRL_get_version 3 , |
diff --git a/src/lib/libcrypto/man/X509_NAME_ENTRY_get_object.3 b/src/lib/libcrypto/man/X509_NAME_ENTRY_get_object.3 index d2cb9baa3c..aab40c2aa5 100644 --- a/src/lib/libcrypto/man/X509_NAME_ENTRY_get_object.3 +++ b/src/lib/libcrypto/man/X509_NAME_ENTRY_get_object.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: X509_NAME_ENTRY_get_object.3,v 1.12 2018/05/19 21:25:51 schwarze Exp $ | 1 | .\" $OpenBSD: X509_NAME_ENTRY_get_object.3,v 1.13 2019/06/14 13:59:32 schwarze Exp $ |
2 | .\" full merge up to: OpenSSL aebb9aac Jul 19 09:27:53 2016 -0400 | 2 | .\" full merge up to: OpenSSL aebb9aac Jul 19 09:27:53 2016 -0400 |
3 | .\" selective merge up to: OpenSSL 61f805c1 Jan 16 01:01:46 2018 +0800 | 3 | .\" selective merge up to: OpenSSL 61f805c1 Jan 16 01:01:46 2018 +0800 |
4 | .\" | 4 | .\" |
@@ -67,7 +67,7 @@ | |||
67 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 67 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
68 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 68 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
69 | .\" | 69 | .\" |
70 | .Dd $Mdocdate: May 19 2018 $ | 70 | .Dd $Mdocdate: June 14 2019 $ |
71 | .Dt X509_NAME_ENTRY_GET_OBJECT 3 | 71 | .Dt X509_NAME_ENTRY_GET_OBJECT 3 |
72 | .Os | 72 | .Os |
73 | .Sh NAME | 73 | .Sh NAME |
@@ -223,16 +223,14 @@ but in the case of | |||
223 | the field type must be set first so the relevant field information | 223 | the field type must be set first so the relevant field information |
224 | can be looked up internally. | 224 | can be looked up internally. |
225 | .Sh RETURN VALUES | 225 | .Sh RETURN VALUES |
226 | .Fn X509_NAME_ENTRY_new , | 226 | The |
227 | .Fn X509_NAME_ENTRY_create_by_txt , | 227 | .Fn X509_NAME_ENTRY_new |
228 | .Fn X509_NAME_ENTRY_create_by_NID , | 228 | function returns a valid |
229 | and | ||
230 | .Fn X509_NAME_ENTRY_create_by_OBJ | ||
231 | return a valid | ||
232 | .Vt X509_NAME_ENTRY | 229 | .Vt X509_NAME_ENTRY |
233 | structure on success or | 230 | structure if successful; otherwise |
234 | .Dv NULL | 231 | .Dv NULL |
235 | if an error occurred. | 232 | is returned and an error code can be retrieved with |
233 | .Xr ERR_get_error 3 . | ||
236 | .Pp | 234 | .Pp |
237 | .Fn X509_NAME_ENTRY_get_object | 235 | .Fn X509_NAME_ENTRY_get_object |
238 | returns a valid | 236 | returns a valid |
@@ -248,12 +246,29 @@ structure if it is set or | |||
248 | .Dv NULL | 246 | .Dv NULL |
249 | if an error occurred. | 247 | if an error occurred. |
250 | .Pp | 248 | .Pp |
249 | The | ||
251 | .Fn X509_NAME_ENTRY_set_object | 250 | .Fn X509_NAME_ENTRY_set_object |
252 | and | 251 | function returns 1 if successful; |
252 | otherwise 0 is returned and an error code can be retrieved with | ||
253 | .Xr ERR_get_error 3 . | ||
254 | .Pp | ||
253 | .Fn X509_NAME_ENTRY_set_data | 255 | .Fn X509_NAME_ENTRY_set_data |
254 | return 1 on success or 0 on error. | 256 | return 1 on success or 0 on error. |
257 | In some cases of failure, the reason can be determined with | ||
258 | .Xr ERR_get_error 3 . | ||
259 | .Pp | ||
260 | .Fn X509_NAME_ENTRY_create_by_txt , | ||
261 | .Fn X509_NAME_ENTRY_create_by_NID , | ||
262 | and | ||
263 | .Fn X509_NAME_ENTRY_create_by_OBJ | ||
264 | return a valid | ||
265 | .Vt X509_NAME_ENTRY | ||
266 | structure on success or | ||
267 | .Dv NULL | ||
268 | if an error occurred. | ||
269 | In some cases of failure, the reason can be determined with | ||
270 | .Xr ERR_get_error 3 . | ||
255 | .Sh SEE ALSO | 271 | .Sh SEE ALSO |
256 | .Xr ERR_get_error 3 , | ||
257 | .Xr OBJ_nid2obj 3 , | 272 | .Xr OBJ_nid2obj 3 , |
258 | .Xr X509_NAME_add_entry 3 , | 273 | .Xr X509_NAME_add_entry 3 , |
259 | .Xr X509_NAME_get_entry 3 , | 274 | .Xr X509_NAME_get_entry 3 , |
diff --git a/src/lib/libcrypto/man/X509_NAME_add_entry_by_txt.3 b/src/lib/libcrypto/man/X509_NAME_add_entry_by_txt.3 index 0638e15b8d..56e1564a63 100644 --- a/src/lib/libcrypto/man/X509_NAME_add_entry_by_txt.3 +++ b/src/lib/libcrypto/man/X509_NAME_add_entry_by_txt.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: X509_NAME_add_entry_by_txt.3,v 1.13 2019/06/06 01:06:59 schwarze Exp $ | 1 | .\" $OpenBSD: X509_NAME_add_entry_by_txt.3,v 1.14 2019/06/14 13:59:32 schwarze Exp $ |
2 | .\" OpenSSL aebb9aac Jul 19 09:27:53 2016 -0400 | 2 | .\" OpenSSL aebb9aac Jul 19 09:27:53 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: June 6 2019 $ | 52 | .Dd $Mdocdate: June 14 2019 $ |
53 | .Dt X509_NAME_ADD_ENTRY_BY_TXT 3 | 53 | .Dt X509_NAME_ADD_ENTRY_BY_TXT 3 |
54 | .Os | 54 | .Os |
55 | .Sh NAME | 55 | .Sh NAME |
@@ -229,6 +229,9 @@ returns either the deleted | |||
229 | structure or | 229 | structure or |
230 | .Dv NULL | 230 | .Dv NULL |
231 | if an error occurred. | 231 | if an error occurred. |
232 | .Pp | ||
233 | In some cases of failure, the reason can be determined with | ||
234 | .Xr ERR_get_error 3 . | ||
232 | .Sh EXAMPLES | 235 | .Sh EXAMPLES |
233 | Create an | 236 | Create an |
234 | .Vt X509_NAME | 237 | .Vt X509_NAME |
@@ -252,7 +255,6 @@ if (!X509_NAME_add_entry_by_txt(nm, "CN", MBSTRING_ASC, | |||
252 | .Ed | 255 | .Ed |
253 | .Sh SEE ALSO | 256 | .Sh SEE ALSO |
254 | .Xr d2i_X509_NAME 3 , | 257 | .Xr d2i_X509_NAME 3 , |
255 | .Xr ERR_get_error 3 , | ||
256 | .Xr X509_NAME_ENTRY_get_object 3 , | 258 | .Xr X509_NAME_ENTRY_get_object 3 , |
257 | .Xr X509_NAME_get_index_by_NID 3 , | 259 | .Xr X509_NAME_get_index_by_NID 3 , |
258 | .Xr X509_NAME_new 3 | 260 | .Xr X509_NAME_new 3 |
diff --git a/src/lib/libcrypto/man/X509_NAME_get_index_by_NID.3 b/src/lib/libcrypto/man/X509_NAME_get_index_by_NID.3 index d950563363..ce0247b202 100644 --- a/src/lib/libcrypto/man/X509_NAME_get_index_by_NID.3 +++ b/src/lib/libcrypto/man/X509_NAME_get_index_by_NID.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: X509_NAME_get_index_by_NID.3,v 1.11 2019/06/06 01:06:59 schwarze Exp $ | 1 | .\" $OpenBSD: X509_NAME_get_index_by_NID.3,v 1.12 2019/06/14 13:59:32 schwarze Exp $ |
2 | .\" OpenSSL aebb9aac Jul 19 09:27:53 2016 -0400 | 2 | .\" OpenSSL aebb9aac Jul 19 09:27:53 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: June 6 2019 $ | 52 | .Dd $Mdocdate: June 14 2019 $ |
53 | .Dt X509_NAME_GET_INDEX_BY_NID 3 | 53 | .Dt X509_NAME_GET_INDEX_BY_NID 3 |
54 | .Os | 54 | .Os |
55 | .Sh NAME | 55 | .Sh NAME |
@@ -119,14 +119,6 @@ after | |||
119 | .Fa lastpos . | 119 | .Fa lastpos . |
120 | .Fa lastpos | 120 | .Fa lastpos |
121 | should initially be set to -1. | 121 | should initially be set to -1. |
122 | If there are no more entries, -1 is returned. | ||
123 | If | ||
124 | .Fa nid | ||
125 | is invalid (doesn't correspond to a valid OID), -2 is returned. | ||
126 | .Pp | ||
127 | .Fn X509_NAME_entry_count | ||
128 | returns the total number of entries in | ||
129 | .Fa name . | ||
130 | .Pp | 122 | .Pp |
131 | .Fn X509_NAME_get_entry | 123 | .Fn X509_NAME_get_entry |
132 | retrieves the | 124 | retrieves the |
@@ -140,7 +132,6 @@ Acceptable values for | |||
140 | run from 0 to | 132 | run from 0 to |
141 | .Fn X509_NAME_entry_count name | 133 | .Fn X509_NAME_entry_count name |
142 | - 1. | 134 | - 1. |
143 | The value returned is an internal pointer which must not be freed. | ||
144 | .Pp | 135 | .Pp |
145 | .Fn X509_NAME_get_text_by_NID | 136 | .Fn X509_NAME_get_text_by_NID |
146 | and | 137 | and |
@@ -151,21 +142,16 @@ which matches | |||
151 | .Fa nid | 142 | .Fa nid |
152 | or | 143 | or |
153 | .Fa obj . | 144 | .Fa obj . |
154 | If no such entry exists, -1 is returned. | ||
155 | At most | 145 | At most |
156 | .Fa len | 146 | .Fa len |
157 | bytes will be written and the text written to | 147 | bytes will be written and the text written to |
158 | .Fa buf | 148 | .Fa buf |
159 | will be NUL terminated. | 149 | will be NUL terminated. |
160 | The length of the output string written is returned excluding the | ||
161 | terminating NUL. | ||
162 | If | 150 | If |
163 | .Fa buf | 151 | .Fa buf |
164 | is | 152 | is |
165 | .Dv NULL | 153 | .Dv NULL , |
166 | then the amount of space needed in | 154 | nothing is written, but the return value is calculated as usual. |
167 | .Fa buf | ||
168 | (excluding the final NUL) is returned. | ||
169 | .Pp | 155 | .Pp |
170 | All relevant | 156 | All relevant |
171 | .Dv NID_* | 157 | .Dv NID_* |
@@ -185,19 +171,34 @@ is not | |||
185 | .Dv NULL . | 171 | .Dv NULL . |
186 | .Sh RETURN VALUES | 172 | .Sh RETURN VALUES |
187 | .Fn X509_NAME_get_index_by_NID | 173 | .Fn X509_NAME_get_index_by_NID |
188 | and | 174 | returns the index of the next matching entry, -1 if not found, or -2 if the |
175 | .Fa nid | ||
176 | does not correspond to a valid OID. | ||
177 | .Pp | ||
189 | .Fn X509_NAME_get_index_by_OBJ | 178 | .Fn X509_NAME_get_index_by_OBJ |
190 | return the index of the next matching entry or -1 if not found. | 179 | returns the index of the next matching entry or -1 if not found. |
191 | .Pp | 180 | .Pp |
192 | .Fn X509_NAME_entry_count | 181 | .Fn X509_NAME_entry_count |
193 | returns the total number of entries. | 182 | returns the total number of entries in |
183 | .Fa name . | ||
194 | .Pp | 184 | .Pp |
195 | .Fn X509_NAME_get_entry | 185 | .Fn X509_NAME_get_entry |
196 | returns an | 186 | returns an internal pointer which must not be freed by the caller or |
197 | .Vt X509_NAME | ||
198 | pointer to the requested entry or | ||
199 | .Dv NULL | 187 | .Dv NULL |
200 | if the index is invalid. | 188 | if the index is invalid. |
189 | .Pp | ||
190 | .Fn X509_NAME_get_text_by_NID | ||
191 | and | ||
192 | .Fn X509_NAME_get_text_by_OBJ | ||
193 | return the length of the output string written, not counting the | ||
194 | terminating NUL, or -1 if no match is found. | ||
195 | .Pp | ||
196 | In some cases of failure of | ||
197 | .Fn X509_NAME_get_index_by_NID | ||
198 | and | ||
199 | .Fn X509_NAME_get_text_by_NID , | ||
200 | the reason can be determined with | ||
201 | .Xr ERR_get_error 3 . | ||
201 | .Sh EXAMPLES | 202 | .Sh EXAMPLES |
202 | Process all entries: | 203 | Process all entries: |
203 | .Bd -literal | 204 | .Bd -literal |
@@ -225,7 +226,6 @@ for (;;) { | |||
225 | .Ed | 226 | .Ed |
226 | .Sh SEE ALSO | 227 | .Sh SEE ALSO |
227 | .Xr d2i_X509_NAME 3 , | 228 | .Xr d2i_X509_NAME 3 , |
228 | .Xr ERR_get_error 3 , | ||
229 | .Xr X509_NAME_ENTRY_get_object 3 , | 229 | .Xr X509_NAME_ENTRY_get_object 3 , |
230 | .Xr X509_NAME_new 3 | 230 | .Xr X509_NAME_new 3 |
231 | .Sh HISTORY | 231 | .Sh HISTORY |
diff --git a/src/lib/libcrypto/man/X509_REVOKED_new.3 b/src/lib/libcrypto/man/X509_REVOKED_new.3 index fbb5a630d7..af130ee41a 100644 --- a/src/lib/libcrypto/man/X509_REVOKED_new.3 +++ b/src/lib/libcrypto/man/X509_REVOKED_new.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: X509_REVOKED_new.3,v 1.10 2019/06/06 01:06:59 schwarze Exp $ | 1 | .\" $OpenBSD: X509_REVOKED_new.3,v 1.11 2019/06/14 13:59:32 schwarze Exp $ |
2 | .\" full merge up to: | 2 | .\" full merge up to: |
3 | .\" OpenSSL man3/X509_CRL_get0_by_serial cdd6c8c5 Mar 20 12:29:37 2017 +0100 | 3 | .\" OpenSSL man3/X509_CRL_get0_by_serial cdd6c8c5 Mar 20 12:29:37 2017 +0100 |
4 | .\" | 4 | .\" |
@@ -66,7 +66,7 @@ | |||
66 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 66 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
67 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 67 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
68 | .\" | 68 | .\" |
69 | .Dd $Mdocdate: June 6 2019 $ | 69 | .Dd $Mdocdate: June 14 2019 $ |
70 | .Dt X509_REVOKED_NEW 3 | 70 | .Dt X509_REVOKED_NEW 3 |
71 | .Os | 71 | .Os |
72 | .Sh NAME | 72 | .Sh NAME |
@@ -146,14 +146,23 @@ The supplied | |||
146 | .Fa tm | 146 | .Fa tm |
147 | pointer is not used internally so it should be freed up after use. | 147 | pointer is not used internally so it should be freed up after use. |
148 | .Sh RETURN VALUES | 148 | .Sh RETURN VALUES |
149 | The | ||
149 | .Fn X509_REVOKED_new | 150 | .Fn X509_REVOKED_new |
150 | and | 151 | function returns the new |
152 | .Vt X509_REVOKED | ||
153 | object if successful; otherwise | ||
154 | .Dv NULL | ||
155 | is returned and an error code can be retrieved with | ||
156 | .Xr ERR_get_error 3 . | ||
157 | .Pp | ||
151 | .Fn X509_REVOKED_dup | 158 | .Fn X509_REVOKED_dup |
152 | return the new | 159 | return the new |
153 | .Vt X509_REVOKED | 160 | .Vt X509_REVOKED |
154 | object or | 161 | object or |
155 | .Dv NULL | 162 | .Dv NULL |
156 | if an error occurs. | 163 | if an error occurs. |
164 | In some cases of failure, the reason can be determined with | ||
165 | .Xr ERR_get_error 3 . | ||
157 | .Pp | 166 | .Pp |
158 | .Fn X509_REVOKED_get0_serialNumber | 167 | .Fn X509_REVOKED_get0_serialNumber |
159 | returns an internal pointer to the serial number of | 168 | returns an internal pointer to the serial number of |
@@ -167,9 +176,10 @@ returns an internal pointer to the revocation date of | |||
167 | and | 176 | and |
168 | .Fn X509_REVOKED_set_revocationDate | 177 | .Fn X509_REVOKED_set_revocationDate |
169 | return 1 for success or 0 for failure. | 178 | return 1 for success or 0 for failure. |
179 | In some cases of failure, the reason can be determined with | ||
180 | .Xr ERR_get_error 3 . | ||
170 | .Sh SEE ALSO | 181 | .Sh SEE ALSO |
171 | .Xr d2i_X509_CRL 3 , | 182 | .Xr d2i_X509_CRL 3 , |
172 | .Xr ERR_get_error 3 , | ||
173 | .Xr PEM_read_X509_CRL 3 , | 183 | .Xr PEM_read_X509_CRL 3 , |
174 | .Xr X509_CRL_get0_by_serial 3 , | 184 | .Xr X509_CRL_get0_by_serial 3 , |
175 | .Xr X509_CRL_new 3 , | 185 | .Xr X509_CRL_new 3 , |
diff --git a/src/lib/libcrypto/man/X509_get_pubkey.3 b/src/lib/libcrypto/man/X509_get_pubkey.3 index bbbf16149f..62367d8b0d 100644 --- a/src/lib/libcrypto/man/X509_get_pubkey.3 +++ b/src/lib/libcrypto/man/X509_get_pubkey.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: X509_get_pubkey.3,v 1.6 2019/06/06 01:06:59 schwarze Exp $ | 1 | .\" $OpenBSD: X509_get_pubkey.3,v 1.7 2019/06/14 13:59:32 schwarze Exp $ |
2 | .\" selective merge up to: OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 | 2 | .\" selective merge up to: 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: June 6 2019 $ | 51 | .Dd $Mdocdate: June 14 2019 $ |
52 | .Dt X509_GET_PUBKEY 3 | 52 | .Dt X509_GET_PUBKEY 3 |
53 | .Os | 53 | .Os |
54 | .Sh NAME | 54 | .Sh NAME |
@@ -144,9 +144,17 @@ if an error occurred. | |||
144 | and | 144 | and |
145 | .Fn X509_REQ_set_pubkey | 145 | .Fn X509_REQ_set_pubkey |
146 | return 1 for success or 0 for failure. | 146 | return 1 for success or 0 for failure. |
147 | .Pp | ||
148 | In some cases of failure of | ||
149 | .Fn X509_get0_pubkey , | ||
150 | .Fn X509_set_pubkey , | ||
151 | .Fn X509_REQ_get_pubkey , | ||
152 | and | ||
153 | .Fn X509_REQ_set_pubkey , | ||
154 | the reason can be determined with | ||
155 | .Xr ERR_get_error 3 . | ||
147 | .Sh SEE ALSO | 156 | .Sh SEE ALSO |
148 | .Xr d2i_X509 3 , | 157 | .Xr d2i_X509 3 , |
149 | .Xr ERR_get_error 3 , | ||
150 | .Xr X509_CRL_get0_by_serial 3 , | 158 | .Xr X509_CRL_get0_by_serial 3 , |
151 | .Xr X509_NAME_add_entry_by_txt 3 , | 159 | .Xr X509_NAME_add_entry_by_txt 3 , |
152 | .Xr X509_NAME_ENTRY_get_object 3 , | 160 | .Xr X509_NAME_ENTRY_get_object 3 , |
diff --git a/src/lib/libcrypto/man/X509_get_serialNumber.3 b/src/lib/libcrypto/man/X509_get_serialNumber.3 index b8d540dcf2..f40b7ca769 100644 --- a/src/lib/libcrypto/man/X509_get_serialNumber.3 +++ b/src/lib/libcrypto/man/X509_get_serialNumber.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: X509_get_serialNumber.3,v 1.3 2018/03/27 17:35:50 schwarze Exp $ | 1 | .\" $OpenBSD: X509_get_serialNumber.3,v 1.4 2019/06/14 13:59:32 schwarze Exp $ |
2 | .\" OpenSSL bb9ad09e Jun 6 00:43:05 2016 -0400 | 2 | .\" OpenSSL bb9ad09e Jun 6 00:43:05 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: March 27 2018 $ | 51 | .Dd $Mdocdate: June 14 2019 $ |
52 | .Dt X509_GET_SERIALNUMBER 3 | 52 | .Dt X509_GET_SERIALNUMBER 3 |
53 | .Os | 53 | .Os |
54 | .Sh NAME | 54 | .Sh NAME |
@@ -91,10 +91,11 @@ returns an | |||
91 | structure. | 91 | structure. |
92 | .Pp | 92 | .Pp |
93 | .Fn X509_set_serialNumber | 93 | .Fn X509_set_serialNumber |
94 | returns 1 for success and 0 for failure. | 94 | returns 1 for success or 0 for failure. |
95 | In some cases of failure, the reason can be determined with | ||
96 | .Xr ERR_get_error 3 . | ||
95 | .Sh SEE ALSO | 97 | .Sh SEE ALSO |
96 | .Xr d2i_X509 3 , | 98 | .Xr d2i_X509 3 , |
97 | .Xr ERR_get_error 3 , | ||
98 | .Xr X509_CRL_get0_by_serial 3 , | 99 | .Xr X509_CRL_get0_by_serial 3 , |
99 | .Xr X509_get_pubkey 3 , | 100 | .Xr X509_get_pubkey 3 , |
100 | .Xr X509_NAME_add_entry_by_txt 3 , | 101 | .Xr X509_NAME_add_entry_by_txt 3 , |
diff --git a/src/lib/libcrypto/man/X509_get_subject_name.3 b/src/lib/libcrypto/man/X509_get_subject_name.3 index 6baad51d6f..33bc5de24d 100644 --- a/src/lib/libcrypto/man/X509_get_subject_name.3 +++ b/src/lib/libcrypto/man/X509_get_subject_name.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: X509_get_subject_name.3,v 1.8 2019/06/06 01:06:59 schwarze Exp $ | 1 | .\" $OpenBSD: X509_get_subject_name.3,v 1.9 2019/06/14 13:59:32 schwarze Exp $ |
2 | .\" OpenSSL 0ad69cd6 Jun 14 23:02:16 2016 +0200 | 2 | .\" OpenSSL 0ad69cd6 Jun 14 23:02:16 2016 +0200 |
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: June 6 2019 $ | 51 | .Dd $Mdocdate: June 14 2019 $ |
52 | .Dt X509_GET_SUBJECT_NAME 3 | 52 | .Dt X509_GET_SUBJECT_NAME 3 |
53 | .Os | 53 | .Os |
54 | .Sh NAME | 54 | .Sh NAME |
@@ -154,9 +154,10 @@ object. | |||
154 | and | 154 | and |
155 | .Fn X509_CRL_set_issuer_name | 155 | .Fn X509_CRL_set_issuer_name |
156 | return 1 for success or 0 for failure. | 156 | return 1 for success or 0 for failure. |
157 | In some cases of failure, the reason can be determined with | ||
158 | .Xr ERR_get_error 3 . | ||
157 | .Sh SEE ALSO | 159 | .Sh SEE ALSO |
158 | .Xr d2i_X509_NAME 3 , | 160 | .Xr d2i_X509_NAME 3 , |
159 | .Xr ERR_get_error 3 , | ||
160 | .Xr X509_CRL_get0_by_serial 3 , | 161 | .Xr X509_CRL_get0_by_serial 3 , |
161 | .Xr X509_CRL_new 3 , | 162 | .Xr X509_CRL_new 3 , |
162 | .Xr X509_get_pubkey 3 , | 163 | .Xr X509_get_pubkey 3 , |
diff --git a/src/lib/libcrypto/man/X509_get_version.3 b/src/lib/libcrypto/man/X509_get_version.3 index 6beebe0204..05d42e23b7 100644 --- a/src/lib/libcrypto/man/X509_get_version.3 +++ b/src/lib/libcrypto/man/X509_get_version.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: X509_get_version.3,v 1.6 2019/06/06 01:06:59 schwarze Exp $ | 1 | .\" $OpenBSD: X509_get_version.3,v 1.7 2019/06/14 13:59:32 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: June 6 2019 $ | 51 | .Dd $Mdocdate: June 14 2019 $ |
52 | .Dt X509_GET_VERSION 3 | 52 | .Dt X509_GET_VERSION 3 |
53 | .Os | 53 | .Os |
54 | .Sh NAME | 54 | .Sh NAME |
@@ -133,9 +133,10 @@ return the numerical value of the version field. | |||
133 | and | 133 | and |
134 | .Fn X509_CRL_set_version | 134 | .Fn X509_CRL_set_version |
135 | return 1 for success or 0 for failure. | 135 | return 1 for success or 0 for failure. |
136 | In some cases of failure, the reason can be determined with | ||
137 | .Xr ERR_get_error 3 . | ||
136 | .Sh SEE ALSO | 138 | .Sh SEE ALSO |
137 | .Xr d2i_X509 3 , | 139 | .Xr d2i_X509 3 , |
138 | .Xr ERR_get_error 3 , | ||
139 | .Xr X509_CRL_get0_by_serial 3 , | 140 | .Xr X509_CRL_get0_by_serial 3 , |
140 | .Xr X509_CRL_new 3 , | 141 | .Xr X509_CRL_new 3 , |
141 | .Xr X509_get_pubkey 3 , | 142 | .Xr X509_get_pubkey 3 , |
diff --git a/src/lib/libcrypto/man/X509_sign.3 b/src/lib/libcrypto/man/X509_sign.3 index b882afa126..ca4c5192b2 100644 --- a/src/lib/libcrypto/man/X509_sign.3 +++ b/src/lib/libcrypto/man/X509_sign.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: X509_sign.3,v 1.7 2019/06/06 17:41:43 schwarze Exp $ | 1 | .\" $OpenBSD: X509_sign.3,v 1.8 2019/06/14 13:59:32 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: June 6 2019 $ | 51 | .Dd $Mdocdate: June 14 2019 $ |
52 | .Dt X509_SIGN 3 | 52 | .Dt X509_SIGN 3 |
53 | .Os | 53 | .Os |
54 | .Sh NAME | 54 | .Sh NAME |
@@ -174,9 +174,11 @@ and | |||
174 | return 1 if the signature is valid or 0 if the signature check fails. | 174 | return 1 if the signature is valid or 0 if the signature check fails. |
175 | If the signature could not be checked at all because it was invalid or | 175 | If the signature could not be checked at all because it was invalid or |
176 | some other error occurred, then -1 is returned. | 176 | some other error occurred, then -1 is returned. |
177 | .Pp | ||
178 | In some cases of failure, the reason can be determined with | ||
179 | .Xr ERR_get_error 3 . | ||
177 | .Sh SEE ALSO | 180 | .Sh SEE ALSO |
178 | .Xr d2i_X509 3 , | 181 | .Xr d2i_X509 3 , |
179 | .Xr ERR_get_error 3 , | ||
180 | .Xr EVP_DigestInit 3 , | 182 | .Xr EVP_DigestInit 3 , |
181 | .Xr X509_CRL_get0_by_serial 3 , | 183 | .Xr X509_CRL_get0_by_serial 3 , |
182 | .Xr X509_CRL_new 3 , | 184 | .Xr X509_CRL_new 3 , |