From: schwarze Date: Sun, 27 Aug 2023 13:23:12 +0000 (+0000) Subject: document the return value of EVP_PKEY_asn1_find(3) and X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=55e5f7f1ba85da36c00f7d8a60754283ebe551d4;p=openbsd 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) --- 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 +.\" Copyright (c) 2020, 2023 Ingo Schwarze .\" .\" 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