diff options
| author | joshua <> | 2024-03-30 01:53:05 +0000 |
|---|---|---|
| committer | joshua <> | 2024-03-30 01:53:05 +0000 |
| commit | 8476ea411cac22160a27f6983eb735b7e3c618ab (patch) | |
| tree | 2af1204279ba14a32a0c91f2b6a613a9725a3f55 /src | |
| parent | 93e8f72106c322ba12a11dba4bbb62366eb77322 (diff) | |
| download | openbsd-8476ea411cac22160a27f6983eb735b7e3c618ab.tar.gz openbsd-8476ea411cac22160a27f6983eb735b7e3c618ab.tar.bz2 openbsd-8476ea411cac22160a27f6983eb735b7e3c618ab.zip | |
Hide symbols in CMS
ok jsing
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/Symbols.namespace | 8 | ||||
| -rw-r--r-- | src/lib/libcrypto/cms/cms_ess.c | 6 | ||||
| -rw-r--r-- | src/lib/libcrypto/cms/cms_io.c | 6 | ||||
| -rw-r--r-- | src/lib/libcrypto/cms/cms_lib.c | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/hidden/openssl/cms.h | 11 |
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 | } |
| 121 | LCRYPTO_ALIAS(CMS_get1_ReceiptRequest); | ||
| 121 | 122 | ||
| 122 | CMS_ReceiptRequest * | 123 | CMS_ReceiptRequest * |
| 123 | CMS_ReceiptRequest_create0(unsigned char *id, int idlen, int allorfirst, | 124 | CMS_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 | } |
| 159 | LCRYPTO_ALIAS(CMS_ReceiptRequest_create0); | ||
| 158 | 160 | ||
| 159 | int | 161 | int |
| 160 | CMS_add1_ReceiptRequest(CMS_SignerInfo *si, CMS_ReceiptRequest *rr) | 162 | CMS_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 | } |
| 185 | LCRYPTO_ALIAS(CMS_add1_ReceiptRequest); | ||
| 183 | 186 | ||
| 184 | void | 187 | void |
| 185 | CMS_ReceiptRequest_get0_values(CMS_ReceiptRequest *rr, ASN1_STRING **pcid, | 188 | CMS_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 | } |
| 208 | LCRYPTO_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 | } |
| 108 | LCRYPTO_ALIAS(PEM_read_bio_CMS); | ||
| 108 | 109 | ||
| 109 | CMS_ContentInfo * | 110 | CMS_ContentInfo * |
| 110 | PEM_read_CMS(FILE *fp, CMS_ContentInfo **x, pem_password_cb *cb, void *u) | 111 | PEM_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 | } |
| 116 | LCRYPTO_ALIAS(PEM_read_CMS); | ||
| 115 | 117 | ||
| 116 | int | 118 | int |
| 117 | PEM_write_bio_CMS(BIO *bp, const CMS_ContentInfo *x) | 119 | PEM_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 | } |
| 124 | LCRYPTO_ALIAS(PEM_write_bio_CMS); | ||
| 122 | 125 | ||
| 123 | int | 126 | int |
| 124 | PEM_write_CMS(FILE *fp, const CMS_ContentInfo *x) | 127 | PEM_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 | } |
| 132 | LCRYPTO_ALIAS(PEM_write_CMS); | ||
| 129 | 133 | ||
| 130 | BIO * | 134 | BIO * |
| 131 | BIO_new_CMS(BIO *out, CMS_ContentInfo *cms) | 135 | BIO_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 | } |
| 317 | LCRYPTO_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); | |||
| 39 | LCRYPTO_USED(CMS_SignerInfo_get_version); | 39 | LCRYPTO_USED(CMS_SignerInfo_get_version); |
| 40 | LCRYPTO_USED(CMS_dataInit); | 40 | LCRYPTO_USED(CMS_dataInit); |
| 41 | LCRYPTO_USED(CMS_dataFinal); | 41 | LCRYPTO_USED(CMS_dataFinal); |
| 42 | LCRYPTO_USED(CMS_get0_content); | ||
| 42 | LCRYPTO_USED(CMS_is_detached); | 43 | LCRYPTO_USED(CMS_is_detached); |
| 43 | LCRYPTO_USED(CMS_set_detached); | 44 | LCRYPTO_USED(CMS_set_detached); |
| 45 | LCRYPTO_USED(PEM_read_bio_CMS); | ||
| 46 | LCRYPTO_USED(PEM_read_CMS); | ||
| 47 | LCRYPTO_USED(PEM_write_bio_CMS); | ||
| 48 | LCRYPTO_USED(PEM_write_CMS); | ||
| 44 | LCRYPTO_USED(CMS_stream); | 49 | LCRYPTO_USED(CMS_stream); |
| 45 | LCRYPTO_USED(d2i_CMS_bio); | 50 | LCRYPTO_USED(d2i_CMS_bio); |
| 46 | LCRYPTO_USED(i2d_CMS_bio); | 51 | LCRYPTO_USED(i2d_CMS_bio); |
| @@ -133,6 +138,10 @@ LCRYPTO_USED(CMS_unsigned_add1_attr_by_OBJ); | |||
| 133 | LCRYPTO_USED(CMS_unsigned_add1_attr_by_NID); | 138 | LCRYPTO_USED(CMS_unsigned_add1_attr_by_NID); |
| 134 | LCRYPTO_USED(CMS_unsigned_add1_attr_by_txt); | 139 | LCRYPTO_USED(CMS_unsigned_add1_attr_by_txt); |
| 135 | LCRYPTO_USED(CMS_unsigned_get0_data_by_OBJ); | 140 | LCRYPTO_USED(CMS_unsigned_get0_data_by_OBJ); |
| 141 | LCRYPTO_USED(CMS_get1_ReceiptRequest); | ||
| 142 | LCRYPTO_USED(CMS_ReceiptRequest_create0); | ||
| 143 | LCRYPTO_USED(CMS_add1_ReceiptRequest); | ||
| 144 | LCRYPTO_USED(CMS_ReceiptRequest_get0_values); | ||
| 136 | LCRYPTO_USED(CMS_RecipientInfo_kari_get0_alg); | 145 | LCRYPTO_USED(CMS_RecipientInfo_kari_get0_alg); |
| 137 | LCRYPTO_USED(CMS_RecipientInfo_kari_get0_reks); | 146 | LCRYPTO_USED(CMS_RecipientInfo_kari_get0_reks); |
| 138 | LCRYPTO_USED(CMS_RecipientInfo_kari_get0_orig_id); | 147 | LCRYPTO_USED(CMS_RecipientInfo_kari_get0_orig_id); |
