diff options
| author | tb <> | 2023-07-28 10:28:02 +0000 |
|---|---|---|
| committer | tb <> | 2023-07-28 10:28:02 +0000 |
| commit | 3c8d1e1cf9bb15a3ea986b0fa3f53d33663d6c55 (patch) | |
| tree | 4805fc669f5e6c6056eecb84f7c45e854cea9dd8 /src/lib/libcrypto/cms/cms.h | |
| parent | 2bca7fcf4242f1f10d0b696c606387ec84d6ccd0 (diff) | |
| download | openbsd-3c8d1e1cf9bb15a3ea986b0fa3f53d33663d6c55.tar.gz openbsd-3c8d1e1cf9bb15a3ea986b0fa3f53d33663d6c55.tar.bz2 openbsd-3c8d1e1cf9bb15a3ea986b0fa3f53d33663d6c55.zip | |
Provide CMS{,_SignerInfo}_get_version
Add accessors for the syntax versions of ContentInfo and SignerInfo.
These will be used soon in rpki-client for some more compliance checks.
ok job jsing
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/cms/cms.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/cms/cms.h b/src/lib/libcrypto/cms/cms.h index 3c92be34f7..76672af097 100644 --- a/src/lib/libcrypto/cms/cms.h +++ b/src/lib/libcrypto/cms/cms.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: cms.h,v 1.15 2019/08/11 10:15:30 jsing Exp $ */ | 1 | /* $OpenBSD: cms.h,v 1.16 2023/07/28 10:28:02 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 4 | * project. | 4 | * project. |
| @@ -128,6 +128,9 @@ int CMS_ContentInfo_print_ctx(BIO *out, CMS_ContentInfo *x, int indent, const AS | |||
| 128 | 128 | ||
| 129 | const ASN1_OBJECT *CMS_get0_type(const CMS_ContentInfo *cms); | 129 | const ASN1_OBJECT *CMS_get0_type(const CMS_ContentInfo *cms); |
| 130 | 130 | ||
| 131 | int CMS_get_version(const CMS_ContentInfo *cms, long *version); | ||
| 132 | int CMS_SignerInfo_get_version(const CMS_SignerInfo *si, long *version); | ||
| 133 | |||
| 131 | BIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont); | 134 | BIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont); |
| 132 | int CMS_dataFinal(CMS_ContentInfo *cms, BIO *bio); | 135 | int CMS_dataFinal(CMS_ContentInfo *cms, BIO *bio); |
| 133 | 136 | ||
