Commit 69b59123 authored by Harald Alvestrand's avatar Harald Alvestrand Committed by Commit Bot

Use a better API for RTC certificates

Bug: webrtc:11450
Change-Id: I3d907c53e9c8cf132f08926f1c39afcddee9c2b9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2116073Reviewed-by: default avatarHenrik Boström <hbos@chromium.org>
Commit-Queue: Harald Alvestrand <hta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#752763}
parent df303931
...@@ -335,10 +335,9 @@ class QuicPeerForTest { ...@@ -335,10 +335,9 @@ class QuicPeerForTest {
rtc::scoped_refptr<rtc::RTCCertificate> CreateTestCertificate() { rtc::scoped_refptr<rtc::RTCCertificate> CreateTestCertificate() {
rtc::KeyParams params; rtc::KeyParams params;
rtc::SSLIdentity* ssl_identity =
rtc::SSLIdentity::Generate("dummy_certificate", params);
return rtc::RTCCertificate::Create( return rtc::RTCCertificate::Create(
std::unique_ptr<rtc::SSLIdentity>(ssl_identity)); rtc::SSLIdentity::Create("dummy_certificate", params));
} }
// Allows faking a failing handshake. // Allows faking a failing handshake.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment