summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorschwarze <>2023-08-27 13:23:12 +0000
committerschwarze <>2023-08-27 13:23:12 +0000
commitd0926c115d127cac7ceacf58752533ccf72e3735 (patch)
tree8a5cb2c8593effdebc04a1e46d911396877529ea /src/lib
parentbbf0061ba516b682eeec68d4d828ce53f3ef780c (diff)
downloadopenbsd-d0926c115d127cac7ceacf58752533ccf72e3735.tar.gz
openbsd-d0926c115d127cac7ceacf58752533ccf72e3735.tar.bz2
openbsd-d0926c115d127cac7ceacf58752533ccf72e3735.zip
document the return value of EVP_PKEY_asn1_find(3) and
the "len" argument and the return value of EVP_PKEY_asn1_find_str(3)
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/man/EVP_PKEY_asn1_get_count.324
1 files changed, 20 insertions, 4 deletions
diff --git a/src/lib/libcrypto/man/EVP_PKEY_asn1_get_count.3 b/src/lib/libcrypto/man/EVP_PKEY_asn1_get_count.3
index c14420ba5d..d5bc0ea8ea 100644
--- a/src/lib/libcrypto/man/EVP_PKEY_asn1_get_count.3
+++ b/src/lib/libcrypto/man/EVP_PKEY_asn1_get_count.3
@@ -1,10 +1,10 @@
1.\" $OpenBSD: EVP_PKEY_asn1_get_count.3,v 1.5 2020/06/24 19:55:54 schwarze Exp $ 1.\" $OpenBSD: EVP_PKEY_asn1_get_count.3,v 1.6 2023/08/27 13:23:12 schwarze Exp $
2.\" full merge up to: OpenSSL 72a7a702 Feb 26 14:05:09 2019 +0000 2.\" full merge up to: OpenSSL 72a7a702 Feb 26 14:05:09 2019 +0000
3.\" 3.\"
4.\" This file is a derived work. 4.\" This file is a derived work.
5.\" The changes are covered by the following Copyright and license: 5.\" The changes are covered by the following Copyright and license:
6.\" 6.\"
7.\" Copyright (c) 2020 Ingo Schwarze <schwarze@openbsd.org> 7.\" Copyright (c) 2020, 2023 Ingo Schwarze <schwarze@openbsd.org>
8.\" 8.\"
9.\" Permission to use, copy, modify, and distribute this software for any 9.\" Permission to use, copy, modify, and distribute this software for any
10.\" purpose with or without fee is hereby granted, provided that the above 10.\" purpose with or without fee is hereby granted, provided that the above
@@ -65,7 +65,7 @@
65.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 65.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
66.\" OF THE POSSIBILITY OF SUCH DAMAGE. 66.\" OF THE POSSIBILITY OF SUCH DAMAGE.
67.\" 67.\"
68.Dd $Mdocdate: June 24 2020 $ 68.Dd $Mdocdate: August 27 2023 $
69.Dt EVP_PKEY_ASN1_GET_COUNT 3 69.Dt EVP_PKEY_ASN1_GET_COUNT 3
70.Os 70.Os
71.Sh NAME 71.Sh NAME
@@ -141,8 +141,17 @@ If one is found,
141is set to that engine and the method from that engine is returned instead. 141is set to that engine and the method from that engine is returned instead.
142.Pp 142.Pp
143.Fn EVP_PKEY_asn1_find_str 143.Fn EVP_PKEY_asn1_find_str
144looks up the method with PEM type string 144looks up the method with the PEM type string given by the first
145.Fa len
146bytes of
145.Fa str . 147.Fa str .
148If
149.Fa len
150is \-1, the
151.Xr strlen 3
152of
153.Fa str
154is used instead.
146The PEM type strings supported by default are listed in the 155The PEM type strings supported by default are listed in the
147.Xr EVP_PKEY_base_id 3 156.Xr EVP_PKEY_base_id 3
148manual page. 157manual page.
@@ -190,6 +199,13 @@ is out of range.
190returns the public key method used by 199returns the public key method used by
191.Fa pkey . 200.Fa pkey .
192.Pp 201.Pp
202.Fn EVP_PKEY_asn1_find
203and
204.Fn EVP_PKEY_asn1_find_str
205return a matching public key method or
206.Dv NULL
207if no match is found.
208.Pp
193.Fn EVP_PKEY_asn1_get0_info 209.Fn EVP_PKEY_asn1_get0_info
194returns 1 on success or 0 on failure. 210returns 1 on success or 0 on failure.
195.Sh SEE ALSO 211.Sh SEE ALSO