diff options
author | schwarze <> | 2023-09-13 13:55:50 +0000 |
---|---|---|
committer | schwarze <> | 2023-09-13 13:55:50 +0000 |
commit | 712cf7820fa5dfb2b4cdd0ddcef2a7088da91472 (patch) | |
tree | a5bba90e127a5316797adadcb4c909cd6dc4be7d /src/lib | |
parent | d6f7e584d21473293ceddc212158ac3930e744a7 (diff) | |
download | openbsd-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.3 | 56 |
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 | |||
169 | the base public key ID as returned by | 169 | the 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 , |
172 | any flags, the method description, | 172 | any flags, and internal pointers owned by |
173 | and the PEM type string associated with | 173 | .Fa ameth |
174 | .Fa ameth . | 174 | pointing to its method description string and its PEM type string. |
175 | .Pp | ||
176 | The 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 | ||
180 | This | ||
181 | .Fa ameth | ||
182 | object serves as an alias for another | ||
183 | .Vt EVP_PKEY_ASN1_METHOD | ||
184 | object and will never be returned from | ||
185 | .Fn EVP_PKEY_asn1_find | ||
186 | or | ||
187 | .Fn EVP_PKEY_asn1_find_str . | ||
188 | It 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 | ||
191 | This | ||
192 | .Fa ameth | ||
193 | object is marked as dynamically allocated. | ||
194 | If this flag is set, | ||
195 | .Xr EVP_PKEY_asn1_free 3 | ||
196 | can free | ||
197 | .Fa ameth ; | ||
198 | otherwise, | ||
199 | .Xr EVP_PKEY_asn1_free 3 | ||
200 | has no effect on it. | ||
201 | .It Dv ASN1_PKEY_SIGPARAM_NULL | ||
202 | If the signing | ||
203 | .Fa ctx | ||
204 | uses an | ||
205 | .Vt EVP_PKEY | ||
206 | private key associated with this | ||
207 | .Fa ameth , | ||
208 | instruct | ||
209 | .Xr ASN1_item_sign_ctx 3 | ||
210 | to use a parameter type of | ||
211 | .Dv V_ASN1_NULL | ||
212 | instead of the default | ||
213 | .Dv V_ASN1_UNDEF | ||
214 | when encoding the ASN.1 | ||
215 | .Vt AlgorithmIdentifier | ||
216 | objects with | ||
217 | .Xr X509_ALGOR_set0 3 . | ||
218 | In 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 , |