diff options
Diffstat (limited to 'src/lib/libcrypto/cms/cms_io.c')
-rw-r--r-- | src/lib/libcrypto/cms/cms_io.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/libcrypto/cms/cms_io.c b/src/lib/libcrypto/cms/cms_io.c index 38e76e0c2e..ceb4ce8ecb 100644 --- a/src/lib/libcrypto/cms/cms_io.c +++ b/src/lib/libcrypto/cms/cms_io.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cms_io.c,v 1.19 2023/04/26 14:23:18 tb Exp $ */ | 1 | /* $OpenBSD: cms_io.c,v 1.20 2023/07/08 08:26:26 beck 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. |
@@ -82,18 +82,21 @@ CMS_stream(unsigned char ***boundary, CMS_ContentInfo *cms) | |||
82 | 82 | ||
83 | return 1; | 83 | return 1; |
84 | } | 84 | } |
85 | LCRYPTO_ALIAS(CMS_stream); | ||
85 | 86 | ||
86 | CMS_ContentInfo * | 87 | CMS_ContentInfo * |
87 | d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms) | 88 | d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms) |
88 | { | 89 | { |
89 | return ASN1_item_d2i_bio(&CMS_ContentInfo_it, bp, cms); | 90 | return ASN1_item_d2i_bio(&CMS_ContentInfo_it, bp, cms); |
90 | } | 91 | } |
92 | LCRYPTO_ALIAS(d2i_CMS_bio); | ||
91 | 93 | ||
92 | int | 94 | int |
93 | i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms) | 95 | i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms) |
94 | { | 96 | { |
95 | return ASN1_item_i2d_bio(&CMS_ContentInfo_it, bp, cms); | 97 | return ASN1_item_i2d_bio(&CMS_ContentInfo_it, bp, cms); |
96 | } | 98 | } |
99 | LCRYPTO_ALIAS(i2d_CMS_bio); | ||
97 | 100 | ||
98 | 101 | ||
99 | CMS_ContentInfo * | 102 | CMS_ContentInfo * |
@@ -129,6 +132,7 @@ BIO_new_CMS(BIO *out, CMS_ContentInfo *cms) | |||
129 | { | 132 | { |
130 | return BIO_new_NDEF(out, (ASN1_VALUE *)cms, &CMS_ContentInfo_it); | 133 | return BIO_new_NDEF(out, (ASN1_VALUE *)cms, &CMS_ContentInfo_it); |
131 | } | 134 | } |
135 | LCRYPTO_ALIAS(BIO_new_CMS); | ||
132 | 136 | ||
133 | /* CMS wrappers round generalised stream and MIME routines */ | 137 | /* CMS wrappers round generalised stream and MIME routines */ |
134 | 138 | ||
@@ -138,6 +142,7 @@ i2d_CMS_bio_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags) | |||
138 | return i2d_ASN1_bio_stream(out, (ASN1_VALUE *)cms, in, flags, | 142 | return i2d_ASN1_bio_stream(out, (ASN1_VALUE *)cms, in, flags, |
139 | &CMS_ContentInfo_it); | 143 | &CMS_ContentInfo_it); |
140 | } | 144 | } |
145 | LCRYPTO_ALIAS(i2d_CMS_bio_stream); | ||
141 | 146 | ||
142 | int | 147 | int |
143 | PEM_write_bio_CMS_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags) | 148 | PEM_write_bio_CMS_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags) |
@@ -145,6 +150,7 @@ PEM_write_bio_CMS_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags) | |||
145 | return PEM_write_bio_ASN1_stream(out, (ASN1_VALUE *)cms, in, flags, | 150 | return PEM_write_bio_ASN1_stream(out, (ASN1_VALUE *)cms, in, flags, |
146 | "CMS", &CMS_ContentInfo_it); | 151 | "CMS", &CMS_ContentInfo_it); |
147 | } | 152 | } |
153 | LCRYPTO_ALIAS(PEM_write_bio_CMS_stream); | ||
148 | 154 | ||
149 | int | 155 | int |
150 | SMIME_write_CMS(BIO *bio, CMS_ContentInfo *cms, BIO *data, int flags) | 156 | SMIME_write_CMS(BIO *bio, CMS_ContentInfo *cms, BIO *data, int flags) |
@@ -159,6 +165,7 @@ SMIME_write_CMS(BIO *bio, CMS_ContentInfo *cms, BIO *data, int flags) | |||
159 | return SMIME_write_ASN1(bio, (ASN1_VALUE *)cms, data, flags, ctype_nid, | 165 | return SMIME_write_ASN1(bio, (ASN1_VALUE *)cms, data, flags, ctype_nid, |
160 | econt_nid, mdalgs, &CMS_ContentInfo_it); | 166 | econt_nid, mdalgs, &CMS_ContentInfo_it); |
161 | } | 167 | } |
168 | LCRYPTO_ALIAS(SMIME_write_CMS); | ||
162 | 169 | ||
163 | CMS_ContentInfo * | 170 | CMS_ContentInfo * |
164 | SMIME_read_CMS(BIO *bio, BIO **bcont) | 171 | SMIME_read_CMS(BIO *bio, BIO **bcont) |
@@ -166,3 +173,4 @@ SMIME_read_CMS(BIO *bio, BIO **bcont) | |||
166 | return (CMS_ContentInfo *)SMIME_read_ASN1(bio, bcont, | 173 | return (CMS_ContentInfo *)SMIME_read_ASN1(bio, bcont, |
167 | &CMS_ContentInfo_it); | 174 | &CMS_ContentInfo_it); |
168 | } | 175 | } |
176 | LCRYPTO_ALIAS(SMIME_read_CMS); | ||