summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-08-24 04:56:36 +0000
committertb <>2023-08-24 04:56:36 +0000
commitf762db7fa64e98041a128e0822623f490c5367b2 (patch)
treeb70ec1d263e7add67413c80eae4cc3651cd39484
parent38ee9becc314438a922fd9621705aa259b96a69d (diff)
downloadopenbsd-f762db7fa64e98041a128e0822623f490c5367b2.tar.gz
openbsd-f762db7fa64e98041a128e0822623f490c5367b2.tar.bz2
openbsd-f762db7fa64e98041a128e0822623f490c5367b2.zip
cms_content_bio() is not used outside of cms_lib.c
Make it a static function and remove its prototype from the internal header.
-rw-r--r--src/lib/libcrypto/cms/cms_lib.c4
-rw-r--r--src/lib/libcrypto/cms/cms_local.h4
2 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libcrypto/cms/cms_lib.c b/src/lib/libcrypto/cms/cms_lib.c
index 5891302fdf..8a8fdbc8d5 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.23 2023/08/24 04:54:26 tb Exp $ */ 1/* $OpenBSD: cms_lib.c,v 1.24 2023/08/24 04:56:36 tb 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.
@@ -121,7 +121,7 @@ cms_Data_create(void)
121 return cms; 121 return cms;
122} 122}
123 123
124BIO * 124static BIO *
125cms_content_bio(CMS_ContentInfo *cms) 125cms_content_bio(CMS_ContentInfo *cms)
126{ 126{
127 ASN1_OCTET_STRING **pos; 127 ASN1_OCTET_STRING **pos;
diff --git a/src/lib/libcrypto/cms/cms_local.h b/src/lib/libcrypto/cms/cms_local.h
index 7d8032fb40..2e3a3637e8 100644
--- a/src/lib/libcrypto/cms/cms_local.h
+++ b/src/lib/libcrypto/cms/cms_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: cms_local.h,v 1.4 2023/07/07 16:04:57 tb Exp $ */ 1/* $OpenBSD: cms_local.h,v 1.5 2023/08/24 04:56:36 tb 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.
@@ -410,8 +410,6 @@ void CMS_IssuerAndSerialNumber_free(CMS_IssuerAndSerialNumber *a);
410#define CMS_OIK_KEYIDENTIFIER 1 410#define CMS_OIK_KEYIDENTIFIER 1
411#define CMS_OIK_PUBKEY 2 411#define CMS_OIK_PUBKEY 2
412 412
413BIO *cms_content_bio(CMS_ContentInfo *cms);
414
415CMS_ContentInfo *cms_Data_create(void); 413CMS_ContentInfo *cms_Data_create(void);
416 414
417CMS_ContentInfo *cms_DigestedData_create(const EVP_MD *md); 415CMS_ContentInfo *cms_DigestedData_create(const EVP_MD *md);