summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorschwarze <>2023-09-13 13:55:50 +0000
committerschwarze <>2023-09-13 13:55:50 +0000
commit712cf7820fa5dfb2b4cdd0ddcef2a7088da91472 (patch)
treea5bba90e127a5316797adadcb4c909cd6dc4be7d /src/lib
parentd6f7e584d21473293ceddc212158ac3930e744a7 (diff)
downloadopenbsd-712cf7820fa5dfb2b4cdd0ddcef2a7088da91472.tar.gz
openbsd-712cf7820fa5dfb2b4cdd0ddcef2a7088da91472.tar.bz2
openbsd-712cf7820fa5dfb2b4cdd0ddcef2a7088da91472.zip
document the EVP_PKEY_ASN1_METHOD flags
ASN1_PKEY_ALIAS, ASN1_PKEY_DYNAMIC, and ASN1_PKEY_SIGPARAM_NULL
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/man/EVP_PKEY_asn1_get_count.356
1 files changed, 51 insertions, 5 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 d5bc0ea8ea..9f272a2426 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.6 2023/08/27 13:23:12 schwarze Exp $ 1.\" $OpenBSD: EVP_PKEY_asn1_get_count.3,v 1.7 2023/09/13 13:55:50 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.
@@ -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: August 27 2023 $ 68.Dd $Mdocdate: September 13 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
@@ -169,9 +169,55 @@ retrieves the public key ID as returned by
169the base public key ID as returned by 169the base public key ID as returned by
170.Xr EVP_PKEY_base_id 3 170.Xr EVP_PKEY_base_id 3
171.Pq both NIDs , 171.Pq both NIDs ,
172any flags, the method description, 172any flags, and internal pointers owned by
173and the PEM type string associated with 173.Fa ameth
174.Fa ameth . 174pointing to its method description string and its PEM type string.
175.Pp
176The following flags bits can occur, OR'ed together in
177.Pf * Fa ppkey_flags :
178.Bl -tag -width Ds
179.It Dv ASN1_PKEY_ALIAS
180This
181.Fa ameth
182object serves as an alias for another
183.Vt EVP_PKEY_ASN1_METHOD
184object and will never be returned from
185.Fn EVP_PKEY_asn1_find
186or
187.Fn EVP_PKEY_asn1_find_str .
188It is either an alias built into the library, or it was created with
189.Xr EVP_PKEY_asn1_add_alias 3 .
190.It Dv ASN1_PKEY_DYNAMIC
191This
192.Fa ameth
193object is marked as dynamically allocated.
194If this flag is set,
195.Xr EVP_PKEY_asn1_free 3
196can free
197.Fa ameth ;
198otherwise,
199.Xr EVP_PKEY_asn1_free 3
200has no effect on it.
201.It Dv ASN1_PKEY_SIGPARAM_NULL
202If the signing
203.Fa ctx
204uses an
205.Vt EVP_PKEY
206private key associated with this
207.Fa ameth ,
208instruct
209.Xr ASN1_item_sign_ctx 3
210to use a parameter type of
211.Dv V_ASN1_NULL
212instead of the default
213.Dv V_ASN1_UNDEF
214when encoding the ASN.1
215.Vt AlgorithmIdentifier
216objects with
217.Xr X509_ALGOR_set0 3 .
218In particular, this is used for
219.Dv EVP_PKEY_RSA .
220.El
175.Pp 221.Pp
176.Fn EVP_PKEY_asn1_get_count , 222.Fn EVP_PKEY_asn1_get_count ,
177.Fn EVP_PKEY_asn1_get0 , 223.Fn EVP_PKEY_asn1_get0 ,