commit | bbfed52cf2912d5088abeb017049241e4d37d21f | [log] [tgz] |
---|---|---|
author | ssaroha <ssaroha@gmail.com> | Sun Dec 11 18:42:07 2016 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Mon Dec 12 02:42:14 2016 +0000 |
tree | a45c06dd66afb145572c58255a64119ffe7281fd | |
parent | ae875f24ae3b85edc3528914b6a7350a8ee00596 [diff] [blame] |
Set OPENSSL_EC_NAMED_CURVE explicitly on EC key so that certificate has ASN1 OID and NIST curve info. Without this openSSL handshake negotiation fails throwing NO_SHARED_CIPHER error. the change made is along the lines of openssl behavior documented here: https://wiki.openssl.org/index.php/Elliptic_Curve_Diffie_Hellman#ECDH_and_Named_Curves tested with openssl 1.0.2j BUG=webrtc:6763 Review-Url: https://codereview.webrtc.org/2534773002 Cr-Commit-Position: refs/heads/master@{#15536}
diff --git a/webrtc/base/opensslstreamadapter.cc b/webrtc/base/opensslstreamadapter.cc index 0e7a292..3b3aa5d 100644 --- a/webrtc/base/opensslstreamadapter.cc +++ b/webrtc/base/opensslstreamadapter.cc
@@ -20,6 +20,7 @@ #include <openssl/x509v3.h> #ifndef OPENSSL_IS_BORINGSSL #include <openssl/dtls1.h> +#include <openssl/ssl.h> #endif #include <memory>