From: tb Date: Thu, 24 Aug 2023 04:56:36 +0000 (+0000) Subject: cms_content_bio() is not used outside of cms_lib.c X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=90fa8d06b46ff8d6bbdf888b0a212a81cabf6dba;p=openbsd cms_content_bio() is not used outside of cms_lib.c Make it a static function and remove its prototype from the internal header. --- 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);