summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/cms
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/cms')
-rw-r--r--src/lib/libcrypto/cms/cms_ess.c6
-rw-r--r--src/lib/libcrypto/cms/cms_io.c6
-rw-r--r--src/lib/libcrypto/cms/cms_lib.c3
3 files changed, 12 insertions, 3 deletions
diff --git a/src/lib/libcrypto/cms/cms_ess.c b/src/lib/libcrypto/cms/cms_ess.c
index 16b54c1992..cced998545 100644
--- a/src/lib/libcrypto/cms/cms_ess.c
+++ b/src/lib/libcrypto/cms/cms_ess.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: cms_ess.c,v 1.24 2024/01/14 18:40:24 tb Exp $ */ 1/* $OpenBSD: cms_ess.c,v 1.25 2024/03/30 01:53:05 joshua 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.
@@ -118,6 +118,7 @@ CMS_get1_ReceiptRequest(CMS_SignerInfo *si, CMS_ReceiptRequest **prr)
118 118
119 return 1; 119 return 1;
120} 120}
121LCRYPTO_ALIAS(CMS_get1_ReceiptRequest);
121 122
122CMS_ReceiptRequest * 123CMS_ReceiptRequest *
123CMS_ReceiptRequest_create0(unsigned char *id, int idlen, int allorfirst, 124CMS_ReceiptRequest_create0(unsigned char *id, int idlen, int allorfirst,
@@ -155,6 +156,7 @@ CMS_ReceiptRequest_create0(unsigned char *id, int idlen, int allorfirst,
155 156
156 return NULL; 157 return NULL;
157} 158}
159LCRYPTO_ALIAS(CMS_ReceiptRequest_create0);
158 160
159int 161int
160CMS_add1_ReceiptRequest(CMS_SignerInfo *si, CMS_ReceiptRequest *rr) 162CMS_add1_ReceiptRequest(CMS_SignerInfo *si, CMS_ReceiptRequest *rr)
@@ -180,6 +182,7 @@ CMS_add1_ReceiptRequest(CMS_SignerInfo *si, CMS_ReceiptRequest *rr)
180 182
181 return r; 183 return r;
182} 184}
185LCRYPTO_ALIAS(CMS_add1_ReceiptRequest);
183 186
184void 187void
185CMS_ReceiptRequest_get0_values(CMS_ReceiptRequest *rr, ASN1_STRING **pcid, 188CMS_ReceiptRequest_get0_values(CMS_ReceiptRequest *rr, ASN1_STRING **pcid,
@@ -202,6 +205,7 @@ CMS_ReceiptRequest_get0_values(CMS_ReceiptRequest *rr, ASN1_STRING **pcid,
202 if (prto) 205 if (prto)
203 *prto = rr->receiptsTo; 206 *prto = rr->receiptsTo;
204} 207}
208LCRYPTO_ALIAS(CMS_ReceiptRequest_get0_values);
205 209
206/* Digest a SignerInfo structure for msgSigDigest attribute processing */ 210/* Digest a SignerInfo structure for msgSigDigest attribute processing */
207 211
diff --git a/src/lib/libcrypto/cms/cms_io.c b/src/lib/libcrypto/cms/cms_io.c
index ceb4ce8ecb..84ada47c49 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.20 2023/07/08 08:26:26 beck Exp $ */ 1/* $OpenBSD: cms_io.c,v 1.21 2024/03/30 01:53:05 joshua 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.
@@ -105,6 +105,7 @@ PEM_read_bio_CMS(BIO *bp, CMS_ContentInfo **x, pem_password_cb *cb, void *u)
105 return PEM_ASN1_read_bio((d2i_of_void *)d2i_CMS_ContentInfo, 105 return PEM_ASN1_read_bio((d2i_of_void *)d2i_CMS_ContentInfo,
106 PEM_STRING_CMS, bp, (void **)x, cb, u); 106 PEM_STRING_CMS, bp, (void **)x, cb, u);
107} 107}
108LCRYPTO_ALIAS(PEM_read_bio_CMS);
108 109
109CMS_ContentInfo * 110CMS_ContentInfo *
110PEM_read_CMS(FILE *fp, CMS_ContentInfo **x, pem_password_cb *cb, void *u) 111PEM_read_CMS(FILE *fp, CMS_ContentInfo **x, pem_password_cb *cb, void *u)
@@ -112,6 +113,7 @@ PEM_read_CMS(FILE *fp, CMS_ContentInfo **x, pem_password_cb *cb, void *u)
112 return PEM_ASN1_read((d2i_of_void *)d2i_CMS_ContentInfo, 113 return PEM_ASN1_read((d2i_of_void *)d2i_CMS_ContentInfo,
113 PEM_STRING_CMS, fp, (void **)x, cb, u); 114 PEM_STRING_CMS, fp, (void **)x, cb, u);
114} 115}
116LCRYPTO_ALIAS(PEM_read_CMS);
115 117
116int 118int
117PEM_write_bio_CMS(BIO *bp, const CMS_ContentInfo *x) 119PEM_write_bio_CMS(BIO *bp, const CMS_ContentInfo *x)
@@ -119,6 +121,7 @@ PEM_write_bio_CMS(BIO *bp, const CMS_ContentInfo *x)
119 return PEM_ASN1_write_bio((i2d_of_void *)i2d_CMS_ContentInfo, 121 return PEM_ASN1_write_bio((i2d_of_void *)i2d_CMS_ContentInfo,
120 PEM_STRING_CMS, bp, (void *)x, NULL, NULL, 0, NULL, NULL); 122 PEM_STRING_CMS, bp, (void *)x, NULL, NULL, 0, NULL, NULL);
121} 123}
124LCRYPTO_ALIAS(PEM_write_bio_CMS);
122 125
123int 126int
124PEM_write_CMS(FILE *fp, const CMS_ContentInfo *x) 127PEM_write_CMS(FILE *fp, const CMS_ContentInfo *x)
@@ -126,6 +129,7 @@ PEM_write_CMS(FILE *fp, const CMS_ContentInfo *x)
126 return PEM_ASN1_write((i2d_of_void *)i2d_CMS_ContentInfo, 129 return PEM_ASN1_write((i2d_of_void *)i2d_CMS_ContentInfo,
127 PEM_STRING_CMS, fp, (void *)x, NULL, NULL, 0, NULL, NULL); 130 PEM_STRING_CMS, fp, (void *)x, NULL, NULL, 0, NULL, NULL);
128} 131}
132LCRYPTO_ALIAS(PEM_write_CMS);
129 133
130BIO * 134BIO *
131BIO_new_CMS(BIO *out, CMS_ContentInfo *cms) 135BIO_new_CMS(BIO *out, CMS_ContentInfo *cms)
diff --git a/src/lib/libcrypto/cms/cms_lib.c b/src/lib/libcrypto/cms/cms_lib.c
index 8a8fdbc8d5..37eb3e294c 100644
--- a/src/lib/libcrypto/cms/cms_lib.c
+++ b/src/lib/libcrypto/cms/cms_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: cms_lib.c,v 1.24 2023/08/24 04:56:36 tb Exp $ */ 1/* $OpenBSD: cms_lib.c,v 1.25 2024/03/30 01:53:05 joshua 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.
@@ -314,6 +314,7 @@ CMS_get0_content(CMS_ContentInfo *cms)
314 return NULL; 314 return NULL;
315 } 315 }
316} 316}
317LCRYPTO_ALIAS(CMS_get0_content);
317 318
318/* 319/*
319 * Return an ASN1_OBJECT pointer to content type. This allows it to be 320 * Return an ASN1_OBJECT pointer to content type. This allows it to be