linux-sgx/backport-v3nametest-Make-the-gennames-structure-static.patch
2024-01-08 17:04:53 +08:00

25 lines
1.3 KiB
Diff

From 7eea331eabe8b0a7ce03c9602a2bc72e9ddfe676 Mon Sep 17 00:00:00 2001
From: Tomas Mraz <tmraz@fedoraproject.org>
Date: Tue, 8 Dec 2020 17:45:32 +0100
Subject: [PATCH] v3nametest: Make the gennames structure static
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13635)
---
test/v3nametest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/external/dcap_source/SGXDataCenterAttestationPrimitives-DCAP_1.8/QuoteVerification/intel-sgx-ssl-lin_2.10_1.1.1g/openssl_source/openssl-1.1.1g/test/v3nametest.c b/external/dcap_source/SGXDataCenterAttestationPrimitives-DCAP_1.8/QuoteVerification/intel-sgx-ssl-lin_2.10_1.1.1g/openssl_source/openssl-1.1.1g/test/v3nametest.c
index cdf0472387f14..e1eeb75f2f6ae 100644
--- a/external/dcap_source/SGXDataCenterAttestationPrimitives-DCAP_1.8/QuoteVerification/intel-sgx-ssl-lin_2.10_1.1.1g/openssl_source/openssl-1.1.1g/test/v3nametest.c
+++ b/external/dcap_source/SGXDataCenterAttestationPrimitives-DCAP_1.8/QuoteVerification/intel-sgx-ssl-lin_2.10_1.1.1g/openssl_source/openssl-1.1.1g/test/v3nametest.c
@@ -359,7 +359,7 @@ static int call_run_cert(int i)
return failed == 0;
}
-struct gennamedata {
+static struct gennamedata {
const unsigned char der[22];
size_t derlen;
} gennames[] = {