Make EC{,PK}PARAMETERS_it static
authortb <tb@openbsd.org>
Thu, 3 Oct 2024 05:07:49 +0000 (05:07 +0000)
committertb <tb@openbsd.org>
Thu, 3 Oct 2024 05:07:49 +0000 (05:07 +0000)
They aren't used outside of this file.

lib/libcrypto/ec/ec_asn1.c

index eddc376..825f4f3 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: ec_asn1.c,v 1.56 2024/10/03 04:20:28 tb Exp $ */
+/* $OpenBSD: ec_asn1.c,v 1.57 2024/10/03 05:07:49 tb Exp $ */
 /*
  * Written by Nils Larsch for the OpenSSL project.
  */
@@ -405,7 +405,7 @@ static const ASN1_TEMPLATE ECPARAMETERS_seq_tt[] = {
        },
 };
 
-const ASN1_ITEM ECPARAMETERS_it = {
+static const ASN1_ITEM ECPARAMETERS_it = {
        .itype = ASN1_ITYPE_SEQUENCE,
        .utype = V_ASN1_SEQUENCE,
        .templates = ECPARAMETERS_seq_tt,
@@ -451,7 +451,7 @@ static const ASN1_TEMPLATE ECPKPARAMETERS_ch_tt[] = {
        },
 };
 
-const ASN1_ITEM ECPKPARAMETERS_it = {
+static const ASN1_ITEM ECPKPARAMETERS_it = {
        .itype = ASN1_ITYPE_CHOICE,
        .utype = offsetof(ECPKPARAMETERS, type),
        .templates = ECPKPARAMETERS_ch_tt,