summaryrefslogtreecommitdiff
path: root/lib/libcrypto
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-08-24 04:56:37 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-08-24 04:56:37 +0000
commit31b3b4de3282e27986f0224915e8c579fbf1bb88 (patch)
tree6e73de7f57c286efcb9f5a01676d2ca4eee675c9 /lib/libcrypto
parent0aed0ecadb444e4fd1a72d8900bb57b087524442 (diff)
cms_content_bio() is not used outside of cms_lib.c
Make it a static function and remove its prototype from the internal header.
Diffstat (limited to 'lib/libcrypto')
-rw-r--r--lib/libcrypto/cms/cms_lib.c4
-rw-r--r--lib/libcrypto/cms/cms_local.h4
2 files changed, 3 insertions, 5 deletions
diff --git a/lib/libcrypto/cms/cms_lib.c b/lib/libcrypto/cms/cms_lib.c
index 5891302fdff..8a8fdbc8d5a 100644
--- a/lib/libcrypto/cms/cms_lib.c
+++ b/lib/libcrypto/cms/cms_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cms_lib.c,v 1.23 2023/08/24 04:54:26 tb Exp $ */
+/* $OpenBSD: cms_lib.c,v 1.24 2023/08/24 04:56:36 tb Exp $ */
/*
* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
@@ -121,7 +121,7 @@ cms_Data_create(void)
return cms;
}
-BIO *
+static BIO *
cms_content_bio(CMS_ContentInfo *cms)
{
ASN1_OCTET_STRING **pos;
diff --git a/lib/libcrypto/cms/cms_local.h b/lib/libcrypto/cms/cms_local.h
index 7d8032fb401..2e3a3637e88 100644
--- a/lib/libcrypto/cms/cms_local.h
+++ b/lib/libcrypto/cms/cms_local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cms_local.h,v 1.4 2023/07/07 16:04:57 tb Exp $ */
+/* $OpenBSD: cms_local.h,v 1.5 2023/08/24 04:56:36 tb Exp $ */
/*
* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
@@ -410,8 +410,6 @@ void CMS_IssuerAndSerialNumber_free(CMS_IssuerAndSerialNumber *a);
#define CMS_OIK_KEYIDENTIFIER 1
#define CMS_OIK_PUBKEY 2
-BIO *cms_content_bio(CMS_ContentInfo *cms);
-
CMS_ContentInfo *cms_Data_create(void);
CMS_ContentInfo *cms_DigestedData_create(const EVP_MD *md);