-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #148 from expressvpn/wolfssl-patches
wolfssl: add wolfssl patches
- Loading branch information
Showing
15 changed files
with
796 additions
and
1 deletion.
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
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
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
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
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
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
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
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
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
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
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
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
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
38 changes: 38 additions & 0 deletions
38
wolfssl/0001-tls-return-immediately-if-kyber_id2type-fails.patch
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,38 @@ | ||
From b55443bb5f12c5ef99fe0307bcd0702b3817debe Mon Sep 17 00:00:00 2001 | ||
From: res0nance <[email protected]> | ||
Date: Sat, 18 Nov 2023 15:41:47 +0800 | ||
Subject: [PATCH 1/2] tls: return immediately if kyber_id2type() fails | ||
|
||
This prevents a crash as ecc_key is not initialized but the | ||
free function is still called. | ||
|
||
(cherry picked from commit 98789dc000eed2e4128c4f3e44929cef4bf711ca) | ||
--- | ||
src/tls.c | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/src/tls.c b/src/tls.c | ||
index 9a42a3912..eaa06a18b 100644 | ||
--- a/src/tls.c | ||
+++ b/src/tls.c | ||
@@ -8396,7 +8396,7 @@ static int TLSX_KeyShare_ProcessPqc(WOLFSSL* ssl, KeyShareEntry* keyShareEntry) | ||
ret = kyber_id2type(oqs_group, &type); | ||
if (ret != 0) { | ||
WOLFSSL_MSG("Invalid OQS algorithm specified."); | ||
- ret = BAD_FUNC_ARG; | ||
+ return BAD_FUNC_ARG; | ||
} | ||
if (ret == 0) { | ||
ret = wc_KyberKey_Init(type, kem, ssl->heap, INVALID_DEVID); | ||
@@ -8887,7 +8887,7 @@ static int server_generate_pqc_ciphertext(WOLFSSL* ssl, | ||
ret = kyber_id2type(oqs_group, &type); | ||
if (ret != 0) { | ||
WOLFSSL_MSG("Invalid Kyber algorithm specified."); | ||
- ret = BAD_FUNC_ARG; | ||
+ return BAD_FUNC_ARG; | ||
} | ||
|
||
if (ret == 0) { | ||
-- | ||
2.43.0 | ||
|
Oops, something went wrong.