-
Notifications
You must be signed in to change notification settings - Fork 761
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
security/strongswan: Fix crash in public key authentication with 5.6.2
While here, added LICENSE_FILE. PR: 226404 Submitted by: strongswan@Nanoteq.com (maintainer) Approved by: tcberner (mentor, implicit)
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
security/strongswan/files/patch-src_libcharon_sa_ikev2_authenticators_pubkey_authenticator.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| --- src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c.orig | ||
| +++ src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c | ||
| @@ -164,7 +164,7 @@ static array_t *select_signature_schemes(keymat_v2_t *keymat, | ||
| signature_scheme_t schemes[] = { | ||
| SIGN_RSA_EMSA_PKCS1_SHA2_384, | ||
| SIGN_RSA_EMSA_PKCS1_SHA2_256, | ||
| - }, contained; | ||
| + }; | ||
| bool found; | ||
| int i, j; | ||
|
|
||
| @@ -174,8 +174,8 @@ static array_t *select_signature_schemes(keymat_v2_t *keymat, | ||
| found = FALSE; | ||
| for (j = 0; j < array_count(selected); j++) | ||
| { | ||
| - array_get(selected, j, &contained); | ||
| - if (scheme == contained) | ||
| + array_get(selected, j, &config); | ||
| + if (scheme == config->scheme) | ||
| { | ||
| found = TRUE; | ||
| break; |