Lines 1-22
Link Here
|
1 |
--- src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c.orig |
|
|
2 |
+++ src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c |
3 |
@@ -164,7 +164,7 @@ static array_t *select_signature_schemes(keymat_v2_t *keymat, |
4 |
signature_scheme_t schemes[] = { |
5 |
SIGN_RSA_EMSA_PKCS1_SHA2_384, |
6 |
SIGN_RSA_EMSA_PKCS1_SHA2_256, |
7 |
- }, contained; |
8 |
+ }; |
9 |
bool found; |
10 |
int i, j; |
11 |
|
12 |
@@ -174,8 +174,8 @@ static array_t *select_signature_schemes(keymat_v2_t *keymat, |
13 |
found = FALSE; |
14 |
for (j = 0; j < array_count(selected); j++) |
15 |
{ |
16 |
- array_get(selected, j, &contained); |
17 |
- if (scheme == contained) |
18 |
+ array_get(selected, j, &config); |
19 |
+ if (scheme == config->scheme) |
20 |
{ |
21 |
found = TRUE; |
22 |
break; |