summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/cms/cms_lib.c
diff options
context:
space:
mode:
authorbeck <>2023-07-08 08:26:26 +0000
committerbeck <>2023-07-08 08:26:26 +0000
commit8035a603830bfb31d58529c3c42a85a6999ff6cb (patch)
treefcfb051a056f2d002add550f13e8e12390dedcd6 /src/lib/libcrypto/cms/cms_lib.c
parentdf461b97942223971be70a60b9fd46902754373f (diff)
downloadopenbsd-8035a603830bfb31d58529c3c42a85a6999ff6cb.tar.gz
openbsd-8035a603830bfb31d58529c3c42a85a6999ff6cb.tar.bz2
openbsd-8035a603830bfb31d58529c3c42a85a6999ff6cb.zip
Hide symbols in cms, comp, conf, and buffer
ok jsing@
Diffstat (limited to 'src/lib/libcrypto/cms/cms_lib.c')
-rw-r--r--src/lib/libcrypto/cms/cms_lib.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/lib/libcrypto/cms/cms_lib.c b/src/lib/libcrypto/cms/cms_lib.c
index f8d950de03..fa62e61e96 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.17 2023/06/11 05:35:43 tb Exp $ */ 1/* $OpenBSD: cms_lib.c,v 1.18 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.
@@ -69,24 +69,28 @@ d2i_CMS_ContentInfo(CMS_ContentInfo **a, const unsigned char **in, long len)
69 return (CMS_ContentInfo *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, 69 return (CMS_ContentInfo *)ASN1_item_d2i((ASN1_VALUE **)a, in, len,
70 &CMS_ContentInfo_it); 70 &CMS_ContentInfo_it);
71} 71}
72LCRYPTO_ALIAS(d2i_CMS_ContentInfo);
72 73
73int 74int
74i2d_CMS_ContentInfo(CMS_ContentInfo *a, unsigned char **out) 75i2d_CMS_ContentInfo(CMS_ContentInfo *a, unsigned char **out)
75{ 76{
76 return ASN1_item_i2d((ASN1_VALUE *)a, out, &CMS_ContentInfo_it); 77 return ASN1_item_i2d((ASN1_VALUE *)a, out, &CMS_ContentInfo_it);
77} 78}
79LCRYPTO_ALIAS(i2d_CMS_ContentInfo);
78 80
79CMS_ContentInfo * 81CMS_ContentInfo *
80CMS_ContentInfo_new(void) 82CMS_ContentInfo_new(void)
81{ 83{
82 return (CMS_ContentInfo *)ASN1_item_new(&CMS_ContentInfo_it); 84 return (CMS_ContentInfo *)ASN1_item_new(&CMS_ContentInfo_it);
83} 85}
86LCRYPTO_ALIAS(CMS_ContentInfo_new);
84 87
85void 88void
86CMS_ContentInfo_free(CMS_ContentInfo *a) 89CMS_ContentInfo_free(CMS_ContentInfo *a)
87{ 90{
88 ASN1_item_free((ASN1_VALUE *)a, &CMS_ContentInfo_it); 91 ASN1_item_free((ASN1_VALUE *)a, &CMS_ContentInfo_it);
89} 92}
93LCRYPTO_ALIAS(CMS_ContentInfo_free);
90 94
91int 95int
92CMS_ContentInfo_print_ctx(BIO *out, CMS_ContentInfo *x, int indent, const ASN1_PCTX *pctx) 96CMS_ContentInfo_print_ctx(BIO *out, CMS_ContentInfo *x, int indent, const ASN1_PCTX *pctx)
@@ -94,12 +98,14 @@ CMS_ContentInfo_print_ctx(BIO *out, CMS_ContentInfo *x, int indent, const ASN1_P
94 return ASN1_item_print(out, (ASN1_VALUE *)x, indent, 98 return ASN1_item_print(out, (ASN1_VALUE *)x, indent,
95 &CMS_ContentInfo_it, pctx); 99 &CMS_ContentInfo_it, pctx);
96} 100}
101LCRYPTO_ALIAS(CMS_ContentInfo_print_ctx);
97 102
98const ASN1_OBJECT * 103const ASN1_OBJECT *
99CMS_get0_type(const CMS_ContentInfo *cms) 104CMS_get0_type(const CMS_ContentInfo *cms)
100{ 105{
101 return cms->contentType; 106 return cms->contentType;
102} 107}
108LCRYPTO_ALIAS(CMS_get0_type);
103 109
104CMS_ContentInfo * 110CMS_ContentInfo *
105cms_Data_create(void) 111cms_Data_create(void)
@@ -182,6 +188,7 @@ CMS_dataInit(CMS_ContentInfo *cms, BIO *icont)
182 188
183 return NULL; 189 return NULL;
184} 190}
191LCRYPTO_ALIAS(CMS_dataInit);
185 192
186int 193int
187CMS_dataFinal(CMS_ContentInfo *cms, BIO *cmsbio) 194CMS_dataFinal(CMS_ContentInfo *cms, BIO *cmsbio)
@@ -228,6 +235,7 @@ CMS_dataFinal(CMS_ContentInfo *cms, BIO *cmsbio)
228 return 0; 235 return 0;
229 } 236 }
230} 237}
238LCRYPTO_ALIAS(CMS_dataFinal);
231 239
232/* 240/*
233 * Return an OCTET STRING pointer to content. This allows it to be accessed 241 * Return an OCTET STRING pointer to content. This allows it to be accessed
@@ -311,6 +319,7 @@ CMS_get0_eContentType(CMS_ContentInfo *cms)
311 319
312 return NULL; 320 return NULL;
313} 321}
322LCRYPTO_ALIAS(CMS_get0_eContentType);
314 323
315int 324int
316CMS_set1_eContentType(CMS_ContentInfo *cms, const ASN1_OBJECT *oid) 325CMS_set1_eContentType(CMS_ContentInfo *cms, const ASN1_OBJECT *oid)
@@ -330,6 +339,7 @@ CMS_set1_eContentType(CMS_ContentInfo *cms, const ASN1_OBJECT *oid)
330 339
331 return 1; 340 return 1;
332} 341}
342LCRYPTO_ALIAS(CMS_set1_eContentType);
333 343
334int 344int
335CMS_is_detached(CMS_ContentInfo *cms) 345CMS_is_detached(CMS_ContentInfo *cms)
@@ -344,6 +354,7 @@ CMS_is_detached(CMS_ContentInfo *cms)
344 354
345 return 1; 355 return 1;
346} 356}
357LCRYPTO_ALIAS(CMS_is_detached);
347 358
348int 359int
349CMS_set_detached(CMS_ContentInfo *cms, int detached) 360CMS_set_detached(CMS_ContentInfo *cms, int detached)
@@ -371,6 +382,7 @@ CMS_set_detached(CMS_ContentInfo *cms, int detached)
371 382
372 return 0; 383 return 0;
373} 384}
385LCRYPTO_ALIAS(CMS_set_detached);
374 386
375/* Create a digest BIO from an X509_ALGOR structure */ 387/* Create a digest BIO from an X509_ALGOR structure */
376 388
@@ -471,6 +483,7 @@ CMS_add0_CertificateChoices(CMS_ContentInfo *cms)
471 483
472 return cch; 484 return cch;
473} 485}
486LCRYPTO_ALIAS(CMS_add0_CertificateChoices);
474 487
475int 488int
476CMS_add0_cert(CMS_ContentInfo *cms, X509 *cert) 489CMS_add0_cert(CMS_ContentInfo *cms, X509 *cert)
@@ -499,6 +512,7 @@ CMS_add0_cert(CMS_ContentInfo *cms, X509 *cert)
499 512
500 return 1; 513 return 1;
501} 514}
515LCRYPTO_ALIAS(CMS_add0_cert);
502 516
503int 517int
504CMS_add1_cert(CMS_ContentInfo *cms, X509 *cert) 518CMS_add1_cert(CMS_ContentInfo *cms, X509 *cert)
@@ -511,6 +525,7 @@ CMS_add1_cert(CMS_ContentInfo *cms, X509 *cert)
511 525
512 return r; 526 return r;
513} 527}
528LCRYPTO_ALIAS(CMS_add1_cert);
514 529
515static STACK_OF(CMS_RevocationInfoChoice) ** 530static STACK_OF(CMS_RevocationInfoChoice) **
516cms_get0_revocation_choices(CMS_ContentInfo *cms) 531cms_get0_revocation_choices(CMS_ContentInfo *cms)
@@ -553,6 +568,7 @@ CMS_add0_RevocationInfoChoice(CMS_ContentInfo *cms)
553 568
554 return rch; 569 return rch;
555} 570}
571LCRYPTO_ALIAS(CMS_add0_RevocationInfoChoice);
556 572
557int 573int
558CMS_add0_crl(CMS_ContentInfo *cms, X509_CRL *crl) 574CMS_add0_crl(CMS_ContentInfo *cms, X509_CRL *crl)
@@ -567,6 +583,7 @@ CMS_add0_crl(CMS_ContentInfo *cms, X509_CRL *crl)
567 583
568 return 1; 584 return 1;
569} 585}
586LCRYPTO_ALIAS(CMS_add0_crl);
570 587
571int 588int
572CMS_add1_crl(CMS_ContentInfo *cms, X509_CRL *crl) 589CMS_add1_crl(CMS_ContentInfo *cms, X509_CRL *crl)
@@ -579,6 +596,7 @@ CMS_add1_crl(CMS_ContentInfo *cms, X509_CRL *crl)
579 596
580 return r; 597 return r;
581} 598}
599LCRYPTO_ALIAS(CMS_add1_crl);
582 600
583STACK_OF(X509) * 601STACK_OF(X509) *
584CMS_get1_certs(CMS_ContentInfo *cms) 602CMS_get1_certs(CMS_ContentInfo *cms)
@@ -608,6 +626,7 @@ CMS_get1_certs(CMS_ContentInfo *cms)
608 } 626 }
609 return certs; 627 return certs;
610} 628}
629LCRYPTO_ALIAS(CMS_get1_certs);
611 630
612STACK_OF(X509_CRL) * 631STACK_OF(X509_CRL) *
613CMS_get1_crls(CMS_ContentInfo *cms) 632CMS_get1_crls(CMS_ContentInfo *cms)
@@ -637,6 +656,7 @@ CMS_get1_crls(CMS_ContentInfo *cms)
637 } 656 }
638 return crls; 657 return crls;
639} 658}
659LCRYPTO_ALIAS(CMS_get1_crls);
640 660
641static const ASN1_OCTET_STRING * 661static const ASN1_OCTET_STRING *
642cms_X509_get0_subject_key_id(X509 *x) 662cms_X509_get0_subject_key_id(X509 *x)