summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgeorgeok <giorgos.n.oikonomou@gmail.com>2019-02-24 18:20:57 +0000
committerJay Satiro <raysatiro@yahoo.com>2019-02-25 01:38:35 -0500
commit531b7ad43a7804d6fdaece570fc39b954373a4a9 (patch)
tree0ea27b1816aead3cc0e12f7fcebc4b2c713e1367
parentaa7b813ad1bfb4e72e367fb99c61c6e680d5a4b8 (diff)
downloadcurl-531b7ad43a7804d6fdaece570fc39b954373a4a9.tar.gz
schannel: support CALG_ECDH_EPHEM algorithm
Add support for Ephemeral elliptic curve Diffie-Hellman key exchange algorithm option when selecting ciphers. This became available on the Win10 SDK. Closes https://github.com/curl/curl/pull/3608
-rw-r--r--docs/CIPHERS.md1
-rw-r--r--lib/vtls/schannel.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/docs/CIPHERS.md b/docs/CIPHERS.md
index 0d3be3b56..c01180426 100644
--- a/docs/CIPHERS.md
+++ b/docs/CIPHERS.md
@@ -496,3 +496,4 @@ WinSSL allows the enabling and disabling of encryption algorithms, but not speci
`CALG_ECDH`,
`CALG_ECMQV`,
`CALG_ECDSA`,
+`CALG_ECDH_EPHEM`,
diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c
index 6f55b3b8f..36e68f969 100644
--- a/lib/vtls/schannel.c
+++ b/lib/vtls/schannel.c
@@ -324,6 +324,9 @@ get_alg_id_by_name(char *name)
#ifdef CALG_ECDSA
CIPHEROPTION(CALG_ECDSA);
#endif
+#ifdef CALG_ECDH_EPHEM
+ CIPHEROPTION(CALG_ECDH_EPHEM);
+#endif
return 0;
}