summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2018-05-13 16:42:22 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2018-05-13 16:42:22 +0000
commitf0653976456bfd5088c599da0c6c2cbfaa8d05ab (patch)
treed7e562f63f9284ef4538d615921bc3e65af6c4ed /lib
parent2c42162949117a0e08f5c6f4907dfe941c6c1542 (diff)
Document EVP_PKEY_get0_asn1(3), it is declared in <openssl/evp.h>.
It makes no sense to have method enumerators public, but the function to retrieve the method of a specific public key undocumented. Besides, it is confusing to have EVP_PKEY_asn1_get0(3) documented without mentioning the very different EVP_PKEY_get0_asn1(3). Remove a duplicate .Xr while here, and reference the related accessor EVP_PKEY_base_id(3). Triggered by tb@ adding a const qualifier to the argument.
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/man/EVP_PKEY_asn1_get_count.317
1 files changed, 13 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 5e3901e6013..576a2935cba 100644
--- a/lib/libcrypto/man/EVP_PKEY_asn1_get_count.3
+++ b/lib/libcrypto/man/EVP_PKEY_asn1_get_count.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: EVP_PKEY_asn1_get_count.3,v 1.2 2018/03/23 04:34:23 schwarze Exp $
+.\" $OpenBSD: EVP_PKEY_asn1_get_count.3,v 1.3 2018/05/13 16:42:21 schwarze Exp $
.\" full merge up to: OpenSSL 751148e2 Oct 27 00:11:11 2017 +0200
.\"
.\" This file was written by Richard Levitte <levitte@openssl.org>.
@@ -48,12 +48,13 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: March 23 2018 $
+.Dd $Mdocdate: May 13 2018 $
.Dt EVP_PKEY_ASN1_GET_COUNT 3
.Os
.Sh NAME
.Nm EVP_PKEY_asn1_get_count ,
.Nm EVP_PKEY_asn1_get0 ,
+.Nm EVP_PKEY_get0_asn1 ,
.Nm EVP_PKEY_asn1_find ,
.Nm EVP_PKEY_asn1_find_str ,
.Nm EVP_PKEY_asn1_get0_info
@@ -67,6 +68,10 @@
.Fa "int idx"
.Fc
.Ft const EVP_PKEY_ASN1_METHOD *
+.Fo EVP_PKEY_get0_asn1
+.Fa "const EVP_PKEY *pkey"
+.Fc
+.Ft const EVP_PKEY_ASN1_METHOD *
.Fo EVP_PKEY_asn1_find
.Fa "ENGINE **pe"
.Fa "int type"
@@ -152,11 +157,15 @@ if
.Fa idx
is out of range.
.Pp
+.Fn EVP_PKEY_get0_asn1
+returns the public key method used by
+.Fa pkey .
+.Pp
.Fn EVP_PKEY_asn1_get0_info
returns 1 on success or 0 on failure.
.Sh SEE ALSO
-.Xr EVP_PKEY_asn1_add0 3 ,
-.Xr EVP_PKEY_asn1_new 3
+.Xr EVP_PKEY_asn1_new 3 ,
+.Xr EVP_PKEY_base_id 3
.Sh HISTORY
These functions first appeared in OpenSSL 1.0.0
and have been available since