summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2023-08-27 13:23:13 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2023-08-27 13:23:13 +0000
commitec9924dbf01f522c7c1082b3af4ac63a5f7cd8d9 (patch)
treed06cfe805161453be37797a8cac1bfca10455e46
parent833c5dd6024f420e739998d34a1d2eda71778c3d (diff)
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)
-rw-r--r--lib/libcrypto/man/EVP_PKEY_asn1_get_count.324
1 files changed, 20 insertions, 4 deletions
diff --git a/lib/libcrypto/man/EVP_PKEY_asn1_get_count.3 b/lib/libcrypto/man/EVP_PKEY_asn1_get_count.3
index c14420ba5d3..d5bc0ea8ea5 100644
--- a/lib/libcrypto/man/EVP_PKEY_asn1_get_count.3
+++ b/lib/libcrypto/man/EVP_PKEY_asn1_get_count.3
@@ -1,10 +1,10 @@
-.\" $OpenBSD: EVP_PKEY_asn1_get_count.3,v 1.5 2020/06/24 19:55:54 schwarze Exp $
+.\" $OpenBSD: EVP_PKEY_asn1_get_count.3,v 1.6 2023/08/27 13:23:12 schwarze Exp $
.\" full merge up to: OpenSSL 72a7a702 Feb 26 14:05:09 2019 +0000
.\"
.\" This file is a derived work.
.\" The changes are covered by the following Copyright and license:
.\"
-.\" Copyright (c) 2020 Ingo Schwarze <schwarze@openbsd.org>
+.\" Copyright (c) 2020, 2023 Ingo Schwarze <schwarze@openbsd.org>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
@@ -65,7 +65,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 24 2020 $
+.Dd $Mdocdate: August 27 2023 $
.Dt EVP_PKEY_ASN1_GET_COUNT 3
.Os
.Sh NAME
@@ -141,8 +141,17 @@ If one is found,
is set to that engine and the method from that engine is returned instead.
.Pp
.Fn EVP_PKEY_asn1_find_str
-looks up the method with PEM type string
+looks up the method with the PEM type string given by the first
+.Fa len
+bytes of
.Fa str .
+If
+.Fa len
+is \-1, the
+.Xr strlen 3
+of
+.Fa str
+is used instead.
The PEM type strings supported by default are listed in the
.Xr EVP_PKEY_base_id 3
manual page.
@@ -190,6 +199,13 @@ is out of range.
returns the public key method used by
.Fa pkey .
.Pp
+.Fn EVP_PKEY_asn1_find
+and
+.Fn EVP_PKEY_asn1_find_str
+return a matching public key method or
+.Dv NULL
+if no match is found.
+.Pp
.Fn EVP_PKEY_asn1_get0_info
returns 1 on success or 0 on failure.
.Sh SEE ALSO