summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/Symbols.namespace8
-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
-rw-r--r--src/lib/libcrypto/hidden/openssl/cms.h11
5 files changed, 30 insertions, 4 deletions
diff --git a/src/lib/libcrypto/Symbols.namespace b/src/lib/libcrypto/Symbols.namespace
index 511cd626ba..812a4280db 100644
--- a/src/lib/libcrypto/Symbols.namespace
+++ b/src/lib/libcrypto/Symbols.namespace
@@ -2591,3 +2591,11 @@ _libre_BF_ecb_encrypt
2591_libre_BF_cbc_encrypt 2591_libre_BF_cbc_encrypt
2592_libre_BF_cfb64_encrypt 2592_libre_BF_cfb64_encrypt
2593_libre_BF_ofb64_encrypt 2593_libre_BF_ofb64_encrypt
2594_libre_PEM_read_bio_CMS
2595_libre_PEM_read_CMS
2596_libre_PEM_write_bio_CMS
2597_libre_PEM_write_CMS
2598_libre_CMS_get1_ReceiptRequest
2599_libre_CMS_ReceiptRequest_create0
2600_libre_CMS_add1_ReceiptRequest
2601_libre_CMS_ReceiptRequest_get0_values
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
diff --git a/src/lib/libcrypto/hidden/openssl/cms.h b/src/lib/libcrypto/hidden/openssl/cms.h
index 0f450e603c..430b2c5355 100644
--- a/src/lib/libcrypto/hidden/openssl/cms.h
+++ b/src/lib/libcrypto/hidden/openssl/cms.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: cms.h,v 1.2 2023/07/28 10:28:02 tb Exp $ */ 1/* $OpenBSD: cms.h,v 1.3 2024/03/30 01:53:05 joshua Exp $ */
2/* 2/*
3 * Copyright (c) 2023 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2023 Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -39,8 +39,13 @@ LCRYPTO_USED(CMS_get_version);
39LCRYPTO_USED(CMS_SignerInfo_get_version); 39LCRYPTO_USED(CMS_SignerInfo_get_version);
40LCRYPTO_USED(CMS_dataInit); 40LCRYPTO_USED(CMS_dataInit);
41LCRYPTO_USED(CMS_dataFinal); 41LCRYPTO_USED(CMS_dataFinal);
42LCRYPTO_USED(CMS_get0_content);
42LCRYPTO_USED(CMS_is_detached); 43LCRYPTO_USED(CMS_is_detached);
43LCRYPTO_USED(CMS_set_detached); 44LCRYPTO_USED(CMS_set_detached);
45LCRYPTO_USED(PEM_read_bio_CMS);
46LCRYPTO_USED(PEM_read_CMS);
47LCRYPTO_USED(PEM_write_bio_CMS);
48LCRYPTO_USED(PEM_write_CMS);
44LCRYPTO_USED(CMS_stream); 49LCRYPTO_USED(CMS_stream);
45LCRYPTO_USED(d2i_CMS_bio); 50LCRYPTO_USED(d2i_CMS_bio);
46LCRYPTO_USED(i2d_CMS_bio); 51LCRYPTO_USED(i2d_CMS_bio);
@@ -133,6 +138,10 @@ LCRYPTO_USED(CMS_unsigned_add1_attr_by_OBJ);
133LCRYPTO_USED(CMS_unsigned_add1_attr_by_NID); 138LCRYPTO_USED(CMS_unsigned_add1_attr_by_NID);
134LCRYPTO_USED(CMS_unsigned_add1_attr_by_txt); 139LCRYPTO_USED(CMS_unsigned_add1_attr_by_txt);
135LCRYPTO_USED(CMS_unsigned_get0_data_by_OBJ); 140LCRYPTO_USED(CMS_unsigned_get0_data_by_OBJ);
141LCRYPTO_USED(CMS_get1_ReceiptRequest);
142LCRYPTO_USED(CMS_ReceiptRequest_create0);
143LCRYPTO_USED(CMS_add1_ReceiptRequest);
144LCRYPTO_USED(CMS_ReceiptRequest_get0_values);
136LCRYPTO_USED(CMS_RecipientInfo_kari_get0_alg); 145LCRYPTO_USED(CMS_RecipientInfo_kari_get0_alg);
137LCRYPTO_USED(CMS_RecipientInfo_kari_get0_reks); 146LCRYPTO_USED(CMS_RecipientInfo_kari_get0_reks);
138LCRYPTO_USED(CMS_RecipientInfo_kari_get0_orig_id); 147LCRYPTO_USED(CMS_RecipientInfo_kari_get0_orig_id);