diff options
Diffstat (limited to 'src/lib/libcrypto/cms/cms.h')
-rw-r--r-- | src/lib/libcrypto/cms/cms.h | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/src/lib/libcrypto/cms/cms.h b/src/lib/libcrypto/cms/cms.h index d639667777..3c92be34f7 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.14 2019/08/11 08:15:27 jsing Exp $ */ | 1 | /* $OpenBSD: cms.h,v 1.15 2019/08/11 10:15:30 jsing 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. |
@@ -78,9 +78,17 @@ DECLARE_STACK_OF(CMS_SignerInfo) | |||
78 | DECLARE_STACK_OF(CMS_RecipientEncryptedKey) | 78 | DECLARE_STACK_OF(CMS_RecipientEncryptedKey) |
79 | DECLARE_STACK_OF(CMS_RecipientInfo) | 79 | DECLARE_STACK_OF(CMS_RecipientInfo) |
80 | DECLARE_STACK_OF(CMS_RevocationInfoChoice) | 80 | DECLARE_STACK_OF(CMS_RevocationInfoChoice) |
81 | DECLARE_ASN1_FUNCTIONS(CMS_ContentInfo) | 81 | CMS_ContentInfo *CMS_ContentInfo_new(void); |
82 | DECLARE_ASN1_FUNCTIONS(CMS_ReceiptRequest) | 82 | void CMS_ContentInfo_free(CMS_ContentInfo *a); |
83 | DECLARE_ASN1_PRINT_FUNCTION(CMS_ContentInfo) | 83 | CMS_ContentInfo *d2i_CMS_ContentInfo(CMS_ContentInfo **a, const unsigned char **in, long len); |
84 | int i2d_CMS_ContentInfo(CMS_ContentInfo *a, unsigned char **out); | ||
85 | extern const ASN1_ITEM CMS_ContentInfo_it; | ||
86 | CMS_ReceiptRequest *CMS_ReceiptRequest_new(void); | ||
87 | void CMS_ReceiptRequest_free(CMS_ReceiptRequest *a); | ||
88 | CMS_ReceiptRequest *d2i_CMS_ReceiptRequest(CMS_ReceiptRequest **a, const unsigned char **in, long len); | ||
89 | int i2d_CMS_ReceiptRequest(CMS_ReceiptRequest *a, unsigned char **out); | ||
90 | extern const ASN1_ITEM CMS_ReceiptRequest_it; | ||
91 | int CMS_ContentInfo_print_ctx(BIO *out, CMS_ContentInfo *x, int indent, const ASN1_PCTX *pctx); | ||
84 | 92 | ||
85 | #define CMS_SIGNERINFO_ISSUER_SERIAL 0 | 93 | #define CMS_SIGNERINFO_ISSUER_SERIAL 0 |
86 | #define CMS_SIGNERINFO_KEYIDENTIFIER 1 | 94 | #define CMS_SIGNERINFO_KEYIDENTIFIER 1 |
@@ -128,7 +136,12 @@ int CMS_is_detached(CMS_ContentInfo *cms); | |||
128 | int CMS_set_detached(CMS_ContentInfo *cms, int detached); | 136 | int CMS_set_detached(CMS_ContentInfo *cms, int detached); |
129 | 137 | ||
130 | #ifdef HEADER_PEM_H | 138 | #ifdef HEADER_PEM_H |
131 | DECLARE_PEM_rw_const(CMS, CMS_ContentInfo) | 139 | CMS_ContentInfo *PEM_read_bio_CMS(BIO *bp, CMS_ContentInfo **x, |
140 | pem_password_cb *cb, void *u); | ||
141 | CMS_ContentInfo *PEM_read_CMS(FILE *fp, CMS_ContentInfo **x, | ||
142 | pem_password_cb *cb, void *u); | ||
143 | int PEM_write_bio_CMS(BIO *bp, const CMS_ContentInfo *x); | ||
144 | int PEM_write_CMS(FILE *fp, const CMS_ContentInfo *x); | ||
132 | #endif | 145 | #endif |
133 | int CMS_stream(unsigned char ***boundary, CMS_ContentInfo *cms); | 146 | int CMS_stream(unsigned char ***boundary, CMS_ContentInfo *cms); |
134 | CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms); | 147 | CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms); |