diff options
author | schwarze <> | 2018-02-16 17:24:33 +0000 |
---|---|---|
committer | schwarze <> | 2018-02-16 17:24:33 +0000 |
commit | 6175606f57c702839620f7be2b0d09144134bdff (patch) | |
tree | 247edf9ab28a69fdf34fa9e755758cef37d3beb0 /src/lib | |
parent | f46aa16c43bee0c979a780cca5275c5551c5c4e5 (diff) | |
download | openbsd-6175606f57c702839620f7be2b0d09144134bdff.tar.gz openbsd-6175606f57c702839620f7be2b0d09144134bdff.tar.bz2 openbsd-6175606f57c702839620f7be2b0d09144134bdff.zip |
Add missing RETURN VALUES sections; from Paul Yang
via OpenSSL commit 1f13ad31 Dec 25 17:50:39 2017 +0800, tweaked by me.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/man/X509_LOOKUP_hash_dir.3 | 26 | ||||
-rw-r--r-- | src/lib/libcrypto/man/X509_NAME_ENTRY_get_object.3 | 40 | ||||
-rw-r--r-- | src/lib/libcrypto/man/X509_NAME_print_ex.3 | 27 |
3 files changed, 78 insertions, 15 deletions
diff --git a/src/lib/libcrypto/man/X509_LOOKUP_hash_dir.3 b/src/lib/libcrypto/man/X509_LOOKUP_hash_dir.3 index cfa8f0dc78..f25f86fad5 100644 --- a/src/lib/libcrypto/man/X509_LOOKUP_hash_dir.3 +++ b/src/lib/libcrypto/man/X509_LOOKUP_hash_dir.3 | |||
@@ -1,9 +1,9 @@ | |||
1 | .\" $OpenBSD: X509_LOOKUP_hash_dir.3,v 1.3 2017/01/06 22:46:06 schwarze Exp $ | 1 | .\" $OpenBSD: X509_LOOKUP_hash_dir.3,v 1.4 2018/02/16 17:24:33 schwarze Exp $ |
2 | .\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 | 2 | .\" full merge up to: OpenSSL 61f805c1 Jan 16 01:01:46 2018 +0800 |
3 | .\" | 3 | .\" |
4 | .\" This file was written by Victor B. Wagner <vitus@cryptocom.ru> | 4 | .\" This file was written by Victor B. Wagner <vitus@cryptocom.ru> |
5 | .\" and Claus Assmann. | 5 | .\" and Claus Assmann. |
6 | .\" Copyright (c) 2015, 2016 The OpenSSL Project. All rights reserved. | 6 | .\" Copyright (c) 2015, 2016, 2017 The OpenSSL Project. All rights reserved. |
7 | .\" | 7 | .\" |
8 | .\" Redistribution and use in source and binary forms, with or without | 8 | .\" Redistribution and use in source and binary forms, with or without |
9 | .\" modification, are permitted provided that the following conditions | 9 | .\" modification, are permitted provided that the following conditions |
@@ -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: January 6 2017 $ | 52 | .Dd $Mdocdate: February 16 2018 $ |
53 | .Dt X509_LOOKUP_HASH_DIR 3 | 53 | .Dt X509_LOOKUP_HASH_DIR 3 |
54 | .Os | 54 | .Os |
55 | .Sh NAME | 55 | .Sh NAME |
@@ -141,9 +141,6 @@ filename causes these functions to load the default certificate | |||
141 | store file (see | 141 | store file (see |
142 | .Xr X509_STORE_set_default_paths 3 ) . | 142 | .Xr X509_STORE_set_default_paths 3 ) . |
143 | .Pp | 143 | .Pp |
144 | These functions return the number of objects loaded from file or 0 | ||
145 | in case of error. | ||
146 | .Pp | ||
147 | Both methods support adding several certificate locations into one | 144 | Both methods support adding several certificate locations into one |
148 | .Sy X509_STORE . | 145 | .Sy X509_STORE . |
149 | .Pp | 146 | .Pp |
@@ -211,6 +208,21 @@ sequence number greater than that of the already cached CRL. | |||
211 | Note that the hash algorithm used for subject name hashing changed in | 208 | Note that the hash algorithm used for subject name hashing changed in |
212 | OpenSSL 1.0.0, and all certificate stores have to be rehashed when | 209 | OpenSSL 1.0.0, and all certificate stores have to be rehashed when |
213 | moving from OpenSSL 0.9.8 to 1.0.0. | 210 | moving from OpenSSL 0.9.8 to 1.0.0. |
211 | .Sh RETURN VALUES | ||
212 | .Fn X509_LOOKUP_hash_dir | ||
213 | and | ||
214 | .Fn X509_LOOKUP_file | ||
215 | always return a pointer to a static | ||
216 | .Vt X509_LOOKUP_METHOD | ||
217 | structure. | ||
218 | .Pp | ||
219 | .Fn X509_load_cert_file , | ||
220 | .Fn X509_load_crl_file , | ||
221 | and | ||
222 | .Fn X509_load_cert_crl_file | ||
223 | return the number of objects loaded from the | ||
224 | .Fa file | ||
225 | or 0 on error. | ||
214 | .Sh SEE ALSO | 226 | .Sh SEE ALSO |
215 | .Xr d2i_X509_bio 3 , | 227 | .Xr d2i_X509_bio 3 , |
216 | .Xr PEM_read_PrivateKey 3 , | 228 | .Xr PEM_read_PrivateKey 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 e11a4b7708..ca33f2a56a 100644 --- a/src/lib/libcrypto/man/X509_NAME_ENTRY_get_object.3 +++ b/src/lib/libcrypto/man/X509_NAME_ENTRY_get_object.3 | |||
@@ -1,5 +1,6 @@ | |||
1 | .\" $OpenBSD: X509_NAME_ENTRY_get_object.3,v 1.6 2016/12/25 22:15:10 schwarze Exp $ | 1 | .\" $OpenBSD: X509_NAME_ENTRY_get_object.3,v 1.7 2018/02/16 17:24:33 schwarze Exp $ |
2 | .\" 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 | .\" | 4 | .\" |
4 | .\" This file is a derived work. | 5 | .\" This file is a derived work. |
5 | .\" The changes are covered by the following Copyright and license: | 6 | .\" The changes are covered by the following Copyright and license: |
@@ -19,7 +20,8 @@ | |||
19 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 20 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
20 | .\" | 21 | .\" |
21 | .\" The original file was written by Dr. Stephen Henson <steve@openssl.org>. | 22 | .\" The original file was written by Dr. Stephen Henson <steve@openssl.org>. |
22 | .\" Copyright (c) 2002, 2005, 2006 The OpenSSL Project. All rights reserved. | 23 | .\" Copyright (c) 2002, 2005, 2006, 2017 The OpenSSL Project. |
24 | .\" All rights reserved. | ||
23 | .\" | 25 | .\" |
24 | .\" Redistribution and use in source and binary forms, with or without | 26 | .\" Redistribution and use in source and binary forms, with or without |
25 | .\" modification, are permitted provided that the following conditions | 27 | .\" modification, are permitted provided that the following conditions |
@@ -65,7 +67,7 @@ | |||
65 | .\" 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 |
66 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 68 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
67 | .\" | 69 | .\" |
68 | .Dd $Mdocdate: December 25 2016 $ | 70 | .Dd $Mdocdate: February 16 2018 $ |
69 | .Dt X509_NAME_ENTRY_GET_OBJECT 3 | 71 | .Dt X509_NAME_ENTRY_GET_OBJECT 3 |
70 | .Os | 72 | .Os |
71 | .Sh NAME | 73 | .Sh NAME |
@@ -220,6 +222,36 @@ but in the case of | |||
220 | .Fn X509_NAME_ENTRY_set_data | 222 | .Fn X509_NAME_ENTRY_set_data |
221 | 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 |
222 | can be looked up internally. | 224 | can be looked up internally. |
225 | .Sh RETURN VALUES | ||
226 | .Fn X509_NAME_ENTRY_new , | ||
227 | .Fn X509_NAME_ENTRY_create_by_txt , | ||
228 | .Fn X509_NAME_ENTRY_create_by_NID , | ||
229 | and | ||
230 | .Fn X509_NAME_ENTRY_create_by_OBJ | ||
231 | return a valid | ||
232 | .Vt X509_NAME_ENTRY | ||
233 | structure on success or | ||
234 | .Dv NULL | ||
235 | if an error occurred. | ||
236 | .Pp | ||
237 | .Fn X509_NAME_ENTRY_get_object | ||
238 | returns a valid | ||
239 | .Vt ASN1_OBJECT | ||
240 | structure if it is set or | ||
241 | .Dv NULL | ||
242 | if an error occurred. | ||
243 | .Pp | ||
244 | .Fn X509_NAME_ENTRY_get_data | ||
245 | returns a valid | ||
246 | .Vt ASN1_STRING | ||
247 | structure if it is set or | ||
248 | .Dv NULL | ||
249 | if an error occurred. | ||
250 | .Pp | ||
251 | .Fn X509_NAME_ENTRY_set_object | ||
252 | and | ||
253 | .Fn X509_NAME_ENTRY_set_data | ||
254 | return 1 on success or 0 on error. | ||
223 | .Sh SEE ALSO | 255 | .Sh SEE ALSO |
224 | .Xr ERR_get_error 3 , | 256 | .Xr ERR_get_error 3 , |
225 | .Xr OBJ_nid2obj 3 , | 257 | .Xr OBJ_nid2obj 3 , |
diff --git a/src/lib/libcrypto/man/X509_NAME_print_ex.3 b/src/lib/libcrypto/man/X509_NAME_print_ex.3 index 1342a200ad..7761d87504 100644 --- a/src/lib/libcrypto/man/X509_NAME_print_ex.3 +++ b/src/lib/libcrypto/man/X509_NAME_print_ex.3 | |||
@@ -1,8 +1,9 @@ | |||
1 | .\" $OpenBSD: X509_NAME_print_ex.3,v 1.6 2016/12/25 22:15:10 schwarze Exp $ | 1 | .\" $OpenBSD: X509_NAME_print_ex.3,v 1.7 2018/02/16 17:24:33 schwarze Exp $ |
2 | .\" 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 | .\" | 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, 2004, 2007, 2016 The OpenSSL Project. | 6 | .\" Copyright (c) 2002, 2004, 2007, 2016, 2017 The OpenSSL Project. |
6 | .\" All rights reserved. | 7 | .\" All rights reserved. |
7 | .\" | 8 | .\" |
8 | .\" Redistribution and use in source and binary forms, with or without | 9 | .\" Redistribution and use in source and binary forms, with or without |
@@ -49,7 +50,7 @@ | |||
49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 50 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 51 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
51 | .\" | 52 | .\" |
52 | .Dd $Mdocdate: December 25 2016 $ | 53 | .Dd $Mdocdate: February 16 2018 $ |
53 | .Dt X509_NAME_PRINT_EX 3 | 54 | .Dt X509_NAME_PRINT_EX 3 |
54 | .Os | 55 | .Os |
55 | .Sh NAME | 56 | .Sh NAME |
@@ -248,6 +249,24 @@ uses a format identical to | |||
248 | in fact it calls | 249 | in fact it calls |
249 | .Fn X509_NAME_print | 250 | .Fn X509_NAME_print |
250 | internally. | 251 | internally. |
252 | .Sh RETURN VALUES | ||
253 | .Fn X509_NAME_print_ex | ||
254 | and | ||
255 | .Fn X509_NAME_print_ex_fp | ||
256 | return 1 on success or 0 on error if | ||
257 | .Dv XN_FLAG_COMPAT | ||
258 | is set in | ||
259 | .Fa flags . | ||
260 | Otherwise, they return the number of printed bytes including the | ||
261 | indentation or \-1 on error. | ||
262 | .Pp | ||
263 | .Fn X509_NAME_oneline | ||
264 | returns a valid string on success or | ||
265 | .Dv NULL | ||
266 | on error. | ||
267 | .Pp | ||
268 | .Fn X509_NAME_print | ||
269 | returns 1 on success or 0 on error. | ||
251 | .Sh SEE ALSO | 270 | .Sh SEE ALSO |
252 | .Xr ASN1_STRING_print_ex 3 , | 271 | .Xr ASN1_STRING_print_ex 3 , |
253 | .Xr d2i_X509_NAME 3 , | 272 | .Xr d2i_X509_NAME 3 , |