Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Unified Diff: talk/session/media/channel_unittest.cc

Issue 1189583002: Support generation of EC keys using P256 curve and support ECDSA certs. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: explicitly enable ECDSA for NSS; tolerate ECDSA and RSA certs in unittest Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: talk/session/media/channel_unittest.cc
diff --git a/talk/session/media/channel_unittest.cc b/talk/session/media/channel_unittest.cc
index 8128190a50e6029a5b76128d95f79068be060e7e..ac812839042d0212760e95e958c7430353349988 100644
--- a/talk/session/media/channel_unittest.cc
+++ b/talk/session/media/channel_unittest.cc
@@ -196,11 +196,13 @@ class ChannelTest : public testing::Test, public sigslot::has_slots<> {
CopyContent(local_media_content2_, &remote_media_content2_);
if (flags1 & DTLS) {
- identity1_.reset(rtc::SSLIdentity::Generate("session1"));
+ // Confirmed to work with KT_RSA and KT_ECDSA.
+ identity1_.reset(rtc::SSLIdentity::Generate("session1", rtc::KT_DEFAULT));
session1_.set_ssl_identity(identity1_.get());
}
if (flags2 & DTLS) {
- identity2_.reset(rtc::SSLIdentity::Generate("session2"));
+ // Confirmed to work with KT_RSA and KT_ECDSA.
+ identity2_.reset(rtc::SSLIdentity::Generate("session2", rtc::KT_DEFAULT));
session2_.set_ssl_identity(identity2_.get());
}

Powered by Google App Engine
This is Rietveld 408576698