summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2018-05-13 16:42:21 +0000
committerschwarze <>2018-05-13 16:42:21 +0000
commit2a9fde64e5ecfd374200217318b1b5ed00bec286 (patch)
tree6b295944602248cee0496a68afe9a3a42c4b2295 /src
parent4007edb975aa9506f5186aa4eb27dd6a7d69b64f (diff)
downloadopenbsd-2a9fde64e5ecfd374200217318b1b5ed00bec286.tar.gz
openbsd-2a9fde64e5ecfd374200217318b1b5ed00bec286.tar.bz2
openbsd-2a9fde64e5ecfd374200217318b1b5ed00bec286.zip
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 'src')
-rw-r--r--src/lib/libcrypto/man/EVP_PKEY_asn1_get_count.317
1 files changed, 13 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 5e3901e601..576a2935cb 100644
--- a/src/lib/libcrypto/man/EVP_PKEY_asn1_get_count.3
+++ b/src/lib/libcrypto/man/EVP_PKEY_asn1_get_count.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EVP_PKEY_asn1_get_count.3,v 1.2 2018/03/23 04:34:23 schwarze Exp $ 1.\" $OpenBSD: EVP_PKEY_asn1_get_count.3,v 1.3 2018/05/13 16:42:21 schwarze Exp $
2.\" full merge up to: OpenSSL 751148e2 Oct 27 00:11:11 2017 +0200 2.\" full merge up to: OpenSSL 751148e2 Oct 27 00:11:11 2017 +0200
3.\" 3.\"
4.\" This file was written by Richard Levitte <levitte@openssl.org>. 4.\" This file was written by Richard Levitte <levitte@openssl.org>.
@@ -48,12 +48,13 @@
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE. 49.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\" 50.\"
51.Dd $Mdocdate: March 23 2018 $ 51.Dd $Mdocdate: May 13 2018 $
52.Dt EVP_PKEY_ASN1_GET_COUNT 3 52.Dt EVP_PKEY_ASN1_GET_COUNT 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
55.Nm EVP_PKEY_asn1_get_count , 55.Nm EVP_PKEY_asn1_get_count ,
56.Nm EVP_PKEY_asn1_get0 , 56.Nm EVP_PKEY_asn1_get0 ,
57.Nm EVP_PKEY_get0_asn1 ,
57.Nm EVP_PKEY_asn1_find , 58.Nm EVP_PKEY_asn1_find ,
58.Nm EVP_PKEY_asn1_find_str , 59.Nm EVP_PKEY_asn1_find_str ,
59.Nm EVP_PKEY_asn1_get0_info 60.Nm EVP_PKEY_asn1_get0_info
@@ -67,6 +68,10 @@
67.Fa "int idx" 68.Fa "int idx"
68.Fc 69.Fc
69.Ft const EVP_PKEY_ASN1_METHOD * 70.Ft const EVP_PKEY_ASN1_METHOD *
71.Fo EVP_PKEY_get0_asn1
72.Fa "const EVP_PKEY *pkey"
73.Fc
74.Ft const EVP_PKEY_ASN1_METHOD *
70.Fo EVP_PKEY_asn1_find 75.Fo EVP_PKEY_asn1_find
71.Fa "ENGINE **pe" 76.Fa "ENGINE **pe"
72.Fa "int type" 77.Fa "int type"
@@ -152,11 +157,15 @@ if
152.Fa idx 157.Fa idx
153is out of range. 158is out of range.
154.Pp 159.Pp
160.Fn EVP_PKEY_get0_asn1
161returns the public key method used by
162.Fa pkey .
163.Pp
155.Fn EVP_PKEY_asn1_get0_info 164.Fn EVP_PKEY_asn1_get0_info
156returns 1 on success or 0 on failure. 165returns 1 on success or 0 on failure.
157.Sh SEE ALSO 166.Sh SEE ALSO
158.Xr EVP_PKEY_asn1_add0 3 , 167.Xr EVP_PKEY_asn1_new 3 ,
159.Xr EVP_PKEY_asn1_new 3 168.Xr EVP_PKEY_base_id 3
160.Sh HISTORY 169.Sh HISTORY
161These functions first appeared in OpenSSL 1.0.0 170These functions first appeared in OpenSSL 1.0.0
162and have been available since 171and have been available since