Skip to content

Commit

Permalink
Mute gcc 12+ warnings for pkcs12_plug.c
Browse files Browse the repository at this point in the history
We're simply hiding the size from the compiler and pray the
warnings are false positives.

Kudos to Claudio, see openwall#5154
  • Loading branch information
magnumripper committed Dec 2, 2024
1 parent 6b0b371 commit b99b478
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pkcs12_plug.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ int pkcs12_pbe_derive_key_simd_sha256( int iterations, int id, const unsigned ch
}


static void pkcs12_fill_salt_buffer_simd(unsigned char *data[SIMD_MAX_GROUP_PFX], size_t data_len,
static void pkcs12_fill_salt_buffer_simd(unsigned char *data[], size_t data_len,
const unsigned char *filler, size_t fill_len, int fill_count)
{
int j;
Expand All @@ -393,9 +393,9 @@ static void pkcs12_fill_salt_buffer_simd(unsigned char *data[SIMD_MAX_GROUP_PFX]
}
}

static void pkcs12_fill_buffer_simd(unsigned char *data[SIMD_MAX_GROUP_PFX], size_t data_len,
const unsigned char *filler[SIMD_MAX_GROUP_PFX],
size_t fill_len[SIMD_MAX_GROUP_PFX], int fill_count)
static void pkcs12_fill_buffer_simd(unsigned char *data[], size_t data_len,
const unsigned char *filler[],
size_t fill_len[], int fill_count)
{
int j;
unsigned char *p;
Expand Down

0 comments on commit b99b478

Please sign in to comment.