]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
eap-aka-3gpp2: Avoid naming conflict with parameters of crypto functions
authorTobias Brunner <tobias@strongswan.org>
Tue, 28 Jan 2020 13:32:38 +0000 (14:32 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 28 Jan 2020 14:32:43 +0000 (15:32 +0100)
src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_functions.c

index a9371a09586adb319e3aaf7c564f2ce266c88f0e..4b49858601d4e1326322a5b1828ad36ac6428823 100644 (file)
@@ -63,7 +63,7 @@ static uint8_t g[] = {
 /**
  * Predefined random bits from the RAND Corporation book
  */
-static uint8_t a[] = {
+static uint8_t a_def[] = {
        0x9d, 0xe9, 0xc9, 0xc8, 0xef, 0xd5, 0x78, 0x11,
        0x48, 0x23, 0x14, 0x01, 0x90, 0x1f, 0x2d, 0x49,
        0x3f, 0x4c, 0x63, 0x65
@@ -72,7 +72,7 @@ static uint8_t a[] = {
 /**
  * Predefined random bits from the RAND Corporation book
  */
-static uint8_t b[] = {
+static uint8_t b_def[] = {
        0x75, 0xef, 0xd1, 0x5c, 0x4b, 0x8f, 0x8f, 0x51,
        0x4e, 0xf3, 0xbc, 0xc3, 0x79, 0x4a, 0x76, 0x5e,
        0x7e, 0xec, 0x45, 0xe0
@@ -192,8 +192,8 @@ static void step4(u_char x[HASH_SIZE_SHA1])
        mpz_init(gm);
 
        mpz_import(xm, HASH_SIZE_SHA1, 1, 1, 1, 0, x);
-       mpz_import(am, sizeof(a), 1, 1, 1, 0, a);
-       mpz_import(bm, sizeof(b), 1, 1, 1, 0, b);
+       mpz_import(am, sizeof(a_def), 1, 1, 1, 0, a_def);
+       mpz_import(bm, sizeof(b_def), 1, 1, 1, 0, b_def);
        mpz_import(gm, sizeof(g), 1, 1, 1, 0, g);
 
        mpz_mul_poly(xm, am, xm);