diff options
author | tb <> | 2023-08-24 04:56:36 +0000 |
---|---|---|
committer | tb <> | 2023-08-24 04:56:36 +0000 |
commit | f762db7fa64e98041a128e0822623f490c5367b2 (patch) | |
tree | b70ec1d263e7add67413c80eae4cc3651cd39484 | |
parent | 38ee9becc314438a922fd9621705aa259b96a69d (diff) | |
download | openbsd-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.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/cms/cms_local.h | 4 |
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 | ||
124 | BIO * | 124 | static BIO * |
125 | cms_content_bio(CMS_ContentInfo *cms) | 125 | cms_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 | ||
413 | BIO *cms_content_bio(CMS_ContentInfo *cms); | ||
414 | |||
415 | CMS_ContentInfo *cms_Data_create(void); | 413 | CMS_ContentInfo *cms_Data_create(void); |
416 | 414 | ||
417 | CMS_ContentInfo *cms_DigestedData_create(const EVP_MD *md); | 415 | CMS_ContentInfo *cms_DigestedData_create(const EVP_MD *md); |