diff options
| author | tb <> | 2023-07-26 19:30:43 +0000 |
|---|---|---|
| committer | tb <> | 2023-07-26 19:30:43 +0000 |
| commit | 448fdf6f174b2bf5b0f563c036bc95078971e8f7 (patch) | |
| tree | 92f7e464680d05dc0117db97c88866c60145cf48 /src/lib/libcrypto/man | |
| parent | 418b099a615b2e95c8b51d4a201ac9d2eed482e0 (diff) | |
| download | openbsd-448fdf6f174b2bf5b0f563c036bc95078971e8f7.tar.gz openbsd-448fdf6f174b2bf5b0f563c036bc95078971e8f7.tar.bz2 openbsd-448fdf6f174b2bf5b0f563c036bc95078971e8f7.zip | |
Document CMS_SignerInfos_get_version and CMS_get_version which will
be added in the upcoming bump.
Diffstat (limited to 'src/lib/libcrypto/man')
| -rw-r--r-- | src/lib/libcrypto/man/CMS_get0_SignerInfos.3 | 25 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/CMS_get0_type.3 | 32 |
2 files changed, 53 insertions, 4 deletions
diff --git a/src/lib/libcrypto/man/CMS_get0_SignerInfos.3 b/src/lib/libcrypto/man/CMS_get0_SignerInfos.3 index faf20c49d2..0be92d800f 100644 --- a/src/lib/libcrypto/man/CMS_get0_SignerInfos.3 +++ b/src/lib/libcrypto/man/CMS_get0_SignerInfos.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: CMS_get0_SignerInfos.3,v 1.7 2019/11/02 15:39:46 schwarze Exp $ | 1 | .\" $OpenBSD: CMS_get0_SignerInfos.3,v 1.8 2023/07/26 19:30:43 tb Exp $ |
| 2 | .\" full merge up to: OpenSSL 83cf7abf May 29 13:07:08 2018 +0100 | 2 | .\" full merge up to: OpenSSL 83cf7abf May 29 13:07:08 2018 +0100 |
| 3 | .\" | 3 | .\" |
| 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. | 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. |
| @@ -48,11 +48,12 @@ | |||
| 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: November 2 2019 $ | 51 | .Dd $Mdocdate: July 26 2023 $ |
| 52 | .Dt CMS_GET0_SIGNERINFOS 3 | 52 | .Dt CMS_GET0_SIGNERINFOS 3 |
| 53 | .Os | 53 | .Os |
| 54 | .Sh NAME | 54 | .Sh NAME |
| 55 | .Nm CMS_get0_SignerInfos , | 55 | .Nm CMS_get0_SignerInfos , |
| 56 | .Nm CMS_SignerInfo_get_version , | ||
| 56 | .Nm CMS_SignerInfo_get0_signer_id , | 57 | .Nm CMS_SignerInfo_get0_signer_id , |
| 57 | .Nm CMS_SignerInfo_get0_signature , | 58 | .Nm CMS_SignerInfo_get0_signature , |
| 58 | .Nm CMS_SignerInfo_cert_cmp , | 59 | .Nm CMS_SignerInfo_cert_cmp , |
| @@ -65,6 +66,11 @@ | |||
| 65 | .Fa "CMS_ContentInfo *cms" | 66 | .Fa "CMS_ContentInfo *cms" |
| 66 | .Fc | 67 | .Fc |
| 67 | .Ft int | 68 | .Ft int |
| 69 | .Fo CMS_SignerInfo_get_version | ||
| 70 | .Fa "CMS_SignerInfo *si" | ||
| 71 | .Fa "long *version" | ||
| 72 | .Fc | ||
| 73 | .Ft int | ||
| 68 | .Fo CMS_SignerInfo_get0_signer_id | 74 | .Fo CMS_SignerInfo_get0_signer_id |
| 69 | .Fa "CMS_SignerInfo *si" | 75 | .Fa "CMS_SignerInfo *si" |
| 70 | .Fa "ASN1_OCTET_STRING **keyid" | 76 | .Fa "ASN1_OCTET_STRING **keyid" |
| @@ -94,6 +100,14 @@ structures associated with the | |||
| 94 | structure | 100 | structure |
| 95 | .Fa cms . | 101 | .Fa cms . |
| 96 | .Pp | 102 | .Pp |
| 103 | .Fn CMS_SignerInfo_get_version | ||
| 104 | sets | ||
| 105 | .Pf * Fa version | ||
| 106 | to the syntax version number of the | ||
| 107 | .Vt SignerInfo | ||
| 108 | structure | ||
| 109 | .Fa si . | ||
| 110 | .Pp | ||
| 97 | .Fn CMS_SignerInfo_get0_signer_id | 111 | .Fn CMS_SignerInfo_get0_signer_id |
| 98 | retrieves the certificate | 112 | retrieves the certificate |
| 99 | .Vt SignerIdentifier | 113 | .Vt SignerIdentifier |
| @@ -157,6 +171,9 @@ if there are no signers or if | |||
| 157 | is not of the type | 171 | is not of the type |
| 158 | .Vt SignedData . | 172 | .Vt SignedData . |
| 159 | .Pp | 173 | .Pp |
| 174 | .Fn CMS_SignerInfo_get_version | ||
| 175 | always succeeds and returns 1. | ||
| 176 | .Pp | ||
| 160 | .Fn CMS_SignerInfo_get0_signer_id | 177 | .Fn CMS_SignerInfo_get0_signer_id |
| 161 | returns 1 for success or 0 for failure. | 178 | returns 1 for success or 0 for failure. |
| 162 | .Pp | 179 | .Pp |
| @@ -190,3 +207,7 @@ first appeared in OpenSSL 0.9.8h and | |||
| 190 | in OpenSSL 1.0.2. | 207 | in OpenSSL 1.0.2. |
| 191 | These functions have been available since | 208 | These functions have been available since |
| 192 | .Ox 6.7 . | 209 | .Ox 6.7 . |
| 210 | .Pp | ||
| 211 | .Fn CMS_SignerInfo_get_version | ||
| 212 | first appeared in | ||
| 213 | .Ox 7.4 . | ||
diff --git a/src/lib/libcrypto/man/CMS_get0_type.3 b/src/lib/libcrypto/man/CMS_get0_type.3 index 45ed3167b5..6b30fe2572 100644 --- a/src/lib/libcrypto/man/CMS_get0_type.3 +++ b/src/lib/libcrypto/man/CMS_get0_type.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: CMS_get0_type.3,v 1.7 2019/11/02 15:39:46 schwarze Exp $ | 1 | .\" $OpenBSD: CMS_get0_type.3,v 1.8 2023/07/26 19:30:43 tb 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,11 +65,12 @@ | |||
| 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: November 2 2019 $ | 68 | .Dd $Mdocdate: July 26 2023 $ |
| 69 | .Dt CMS_GET0_TYPE 3 | 69 | .Dt CMS_GET0_TYPE 3 |
| 70 | .Os | 70 | .Os |
| 71 | .Sh NAME | 71 | .Sh NAME |
| 72 | .Nm CMS_get0_type , | 72 | .Nm CMS_get0_type , |
| 73 | .Nm CMS_get_version , | ||
| 73 | .Nm CMS_set1_eContentType , | 74 | .Nm CMS_set1_eContentType , |
| 74 | .Nm CMS_get0_eContentType , | 75 | .Nm CMS_get0_eContentType , |
| 75 | .Nm CMS_get0_content | 76 | .Nm CMS_get0_content |
| @@ -81,6 +82,11 @@ | |||
| 81 | .Fa "const CMS_ContentInfo *cms" | 82 | .Fa "const CMS_ContentInfo *cms" |
| 82 | .Fc | 83 | .Fc |
| 83 | .Ft int | 84 | .Ft int |
| 85 | .Fo CMS_get_version | ||
| 86 | .Fa "const CMS_ContentInfo *cms" | ||
| 87 | .Fa "long *version" | ||
| 88 | .Fc | ||
| 89 | .Ft int | ||
| 84 | .Fo CMS_set1_eContentType | 90 | .Fo CMS_set1_eContentType |
| 85 | .Fa "CMS_ContentInfo *cms" | 91 | .Fa "CMS_ContentInfo *cms" |
| 86 | .Fa "const ASN1_OBJECT *oid" | 92 | .Fa "const ASN1_OBJECT *oid" |
| @@ -149,6 +155,21 @@ copies the supplied | |||
| 149 | .Fa oid , | 155 | .Fa oid , |
| 150 | so it should be freed up after use. | 156 | so it should be freed up after use. |
| 151 | .Pp | 157 | .Pp |
| 158 | .Fn CMS_get_version | ||
| 159 | sets | ||
| 160 | .Pf * Fa version | ||
| 161 | to the syntax version number of the | ||
| 162 | .Vt ContentType | ||
| 163 | structure | ||
| 164 | .Fa cms . | ||
| 165 | The version is a number between 0 and 5 and is defined for all the | ||
| 166 | above content types except for arbitrary data. | ||
| 167 | For arbitrary data and unsupported content types | ||
| 168 | .Fn CMS_get_version | ||
| 169 | fails and the content of | ||
| 170 | .Pf * Fa version | ||
| 171 | is unspecified. | ||
| 172 | .Pp | ||
| 152 | .Fn CMS_get0_eContentType | 173 | .Fn CMS_get0_eContentType |
| 153 | returns the type of the embedded content. | 174 | returns the type of the embedded content. |
| 154 | .Pp | 175 | .Pp |
| @@ -176,6 +197,9 @@ return internal pointers to | |||
| 176 | .Vt OBJECT IDENTIFIER | 197 | .Vt OBJECT IDENTIFIER |
| 177 | structures. | 198 | structures. |
| 178 | .Pp | 199 | .Pp |
| 200 | .Fn CMS_get_version | ||
| 201 | returns 1 on success and 0 on failure. | ||
| 202 | .Pp | ||
| 179 | .Fn CMS_get0_content | 203 | .Fn CMS_get0_content |
| 180 | returns an internal pointer to the storage location where the pointer | 204 | returns an internal pointer to the storage location where the pointer |
| 181 | to the embedded content is stored. | 205 | to the embedded content is stored. |
| @@ -196,3 +220,7 @@ RFC 3274: Compressed Data Content Type for Cryptographic Message Syntax (CMS) | |||
| 196 | These functions first appeared in OpenSSL 0.9.8h | 220 | These functions first appeared in OpenSSL 0.9.8h |
| 197 | and have been available since | 221 | and have been available since |
| 198 | .Ox 6.7 . | 222 | .Ox 6.7 . |
| 223 | .Pp | ||
| 224 | .Fn CMS_get_version | ||
| 225 | first appeared in | ||
| 226 | .Ox 7.4 . | ||
