load-tester: Avoid naming conflict with local certificate variables
authorTobias Brunner <tobias@strongswan.org>
Tue, 28 Jan 2020 13:41:15 +0000 (14:41 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 28 Jan 2020 14:32:43 +0000 (15:32 +0100)
src/libcharon/plugins/load_tester/load_tester_creds.c

index 0740dd3..8738092 100644 (file)
@@ -154,7 +154,7 @@ Cj6VaDacc7yOhZK61nGzNJml5NEeLzZkGzYvsIggL/Kb2v42fKYC5OunkZ1Nw3YY
 kGfz0rGDkJqIxx0inxp84PWWR5lX84A9pNQ=
 -----END CERTIFICATE-----
  */
-static char cert[] = {
+static char default_cert[] = {
   0x30,0x82,0x02,0x26,0x30,0x82,0x01,0x8f,0xa0,0x03,0x02,0x01,0x02,0x02,0x01,0x00,
   0x30,0x0d,0x06,0x09,0x2a,0x86,0x48,0x86,0xf7,0x0d,0x01,0x01,0x0b,0x05,0x00,0x30,
   0x37,0x31,0x0c,0x30,0x0a,0x06,0x03,0x55,0x04,0x03,0x13,0x03,0x73,0x72,0x76,0x31,
@@ -235,7 +235,8 @@ static certificate_t *load_issuer_cert()
        if (!path)
        {
                return lib->creds->create(lib->creds, CRED_CERTIFICATE, CERT_X509,
-                                       BUILD_BLOB_ASN1_DER, chunk_create(cert, sizeof(cert)),
+                                       BUILD_BLOB_ASN1_DER,
+                                       chunk_create(default_cert, sizeof(default_cert)),
                                        BUILD_X509_FLAG, X509_CA,
                                        BUILD_END);
        }