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
This commit is contained in:
georgeok 2019-02-24 18:20:57 +00:00 committed by Jay Satiro
parent aa7b813ad1
commit 531b7ad43a
2 changed files with 4 additions and 0 deletions

View File

@ -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`,

View File

@ -323,6 +323,9 @@ get_alg_id_by_name(char *name)
#endif
#ifdef CALG_ECDSA
CIPHEROPTION(CALG_ECDSA);
#endif
#ifdef CALG_ECDH_EPHEM
CIPHEROPTION(CALG_ECDH_EPHEM);
#endif
return 0;
}