aboutsummaryrefslogtreecommitdiff
path: root/core/bearssl/patches/0001-Add-missing-return-in-client-single-EC-choose-functi.patch
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-06-12 11:21:24 +0300
committerCem Keylan <cem@ckyln.com>2020-06-12 11:21:24 +0300
commit726d6b5ff1083cd0a9f47cb97ca331ae8bf68259 (patch)
treea676251181331176dd47a0bd27cc79f2448396d7 /core/bearssl/patches/0001-Add-missing-return-in-client-single-EC-choose-functi.patch
parent7a3aa7ad7a13c769c09f1ce043343c0ebec41e25 (diff)
downloadrepository-726d6b5ff1083cd0a9f47cb97ca331ae8bf68259.tar.gz
bearssl: add patches from michael
Diffstat (limited to 'core/bearssl/patches/0001-Add-missing-return-in-client-single-EC-choose-functi.patch')
-rw-r--r--core/bearssl/patches/0001-Add-missing-return-in-client-single-EC-choose-functi.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/core/bearssl/patches/0001-Add-missing-return-in-client-single-EC-choose-functi.patch b/core/bearssl/patches/0001-Add-missing-return-in-client-single-EC-choose-functi.patch
new file mode 100644
index 00000000..421bbc7f
--- /dev/null
+++ b/core/bearssl/patches/0001-Add-missing-return-in-client-single-EC-choose-functi.patch
@@ -0,0 +1,25 @@
+From a5c3ea02385205858128e414873a0150cd8bceda Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Fri, 31 Jan 2020 15:11:32 -0800
+Subject: [PATCH] Add missing return in client single EC choose function
+
+Otherwise, static ECDH is never selected.
+---
+ src/ssl/ssl_ccert_single_ec.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/ssl/ssl_ccert_single_ec.c b/src/ssl/ssl_ccert_single_ec.c
+index 93ebcde..2e1e54f 100644
+--- a/src/ssl/ssl_ccert_single_ec.c
++++ b/src/ssl/ssl_ccert_single_ec.c
+@@ -69,6 +69,7 @@ cc_choose(const br_ssl_client_certificate_class **pctx,
+ choices->hash_id = -1;
+ choices->chain = zc->chain;
+ choices->chain_len = zc->chain_len;
++ return;
+ }
+ }
+
+--
+2.25.0
+