aboutsummaryrefslogtreecommitdiff
path: root/decrepit
diff options
context:
space:
mode:
authorJulien Desgats <julien@cloudflare.com>2019-06-03 14:19:00 +0100
committerCQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>2019-06-04 13:40:07 +0000
commit20d43e2fa51e20922b8a93a77567072ab2b8e835 (patch)
treef583808cf202e05bf60d153a10b3409072377977 /decrepit
parent95147ea89ff1b5be2ec1466704c3cae5c550825f (diff)
downloadboringssl-20d43e2fa51e20922b8a93a77567072ab2b8e835.zip
boringssl-20d43e2fa51e20922b8a93a77567072ab2b8e835.tar.gz
boringssl-20d43e2fa51e20922b8a93a77567072ab2b8e835.tar.bz2
Fix name clash in test structures
Revealed by -lfto linking. Creating multiple classes with the same name but different contents is illegal. Change-Id: I184c34235f4f11e94d47dee1ca2d1a97de55d6ba Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/36304 Reviewed-by: David Benjamin <davidben@google.com> Commit-Queue: David Benjamin <davidben@google.com>
Diffstat (limited to 'decrepit')
-rw-r--r--decrepit/blowfish/blowfish_test.cc4
-rw-r--r--decrepit/cast/cast_test.cc4
2 files changed, 4 insertions, 4 deletions
diff --git a/decrepit/blowfish/blowfish_test.cc b/decrepit/blowfish/blowfish_test.cc
index d19346a..4b08fe4 100644
--- a/decrepit/blowfish/blowfish_test.cc
+++ b/decrepit/blowfish/blowfish_test.cc
@@ -19,7 +19,7 @@
#include "../../crypto/internal.h"
#include "../../crypto/test/test_util.h"
-struct TestCase {
+struct BlowfishTestCase {
uint8_t key[16];
uint8_t plaintext[16];
uint8_t iv[8];
@@ -28,7 +28,7 @@ struct TestCase {
uint8_t cfb_ciphertext[16];
};
-static const TestCase kTests[] = {
+static const BlowfishTestCase kTests[] = {
// Randomly generated test cases. Checked against vanilla OpenSSL.
{
{0xbb, 0x56, 0xb1, 0x27, 0x7c, 0x4c, 0xdd, 0x5a, 0x99, 0x90, 0x1e, 0x6f,
diff --git a/decrepit/cast/cast_test.cc b/decrepit/cast/cast_test.cc
index 05a04cb..fd5f2a9 100644
--- a/decrepit/cast/cast_test.cc
+++ b/decrepit/cast/cast_test.cc
@@ -19,7 +19,7 @@
#include "../../crypto/internal.h"
#include "../../crypto/test/test_util.h"
-struct TestCase {
+struct CastTestCase {
uint8_t key[16];
uint8_t plaintext[16];
uint8_t iv[8];
@@ -27,7 +27,7 @@ struct TestCase {
uint8_t cbc_ciphertext[24];
};
-static const TestCase kTests[] = {
+static const CastTestCase kTests[] = {
// Randomly generated test cases. Checked against vanilla OpenSSL.
{
{0xbb, 0x56, 0xb1, 0x27, 0x7c, 0x4c, 0xdd, 0x5a, 0x99, 0x90, 0x1e, 0x6f,