mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
loader.c: Minor module key check simplification.
Change-Id: I65aefd4434a783096165c179b5f94f2e4810dffe
This commit is contained in:
committed by
Friendly Automation
parent
03e7bbbce9
commit
7dc73c8151
@@ -885,17 +885,7 @@ static int printdigest(const unsigned char *d)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int key_matches(const unsigned char *key1, const unsigned char *key2)
|
||||
{
|
||||
int x;
|
||||
|
||||
for (x = 0; x < 16; x++) {
|
||||
if (key1[x] != key2[x])
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
#define key_matches(a, b) (memcmp((a), (b), 16) == 0)
|
||||
|
||||
static int verify_key(const unsigned char *key)
|
||||
{
|
||||
|
Reference in New Issue
Block a user