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

Unified Diff: webrtc/p2p/base/transportdescriptionfactory.cc

Issue 3011133002: Remove the support of fallback from DTLS to SDES. (Closed)
Patch Set: Created 3 years, 3 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: webrtc/p2p/base/transportdescriptionfactory.cc
diff --git a/webrtc/p2p/base/transportdescriptionfactory.cc b/webrtc/p2p/base/transportdescriptionfactory.cc
index 1c75b322926df936e66b9eb5fccfaded5aa6a5ac..2001076bb1f80b700ea28e7e07cba1844f4d03af 100644
--- a/webrtc/p2p/base/transportdescriptionfactory.cc
+++ b/webrtc/p2p/base/transportdescriptionfactory.cc
@@ -119,20 +119,6 @@ bool TransportDescriptionFactory::SetSecurityInfo(
if (!desc->identity_fingerprint) {
return false;
}
- std::string digest_alg;
- if (!certificate_->ssl_certificate().GetSignatureDigestAlgorithm(
- &digest_alg)) {
- LOG(LS_ERROR) << "Failed to retrieve the certificate's digest algorithm";
- return false;
- }
-
- desc->identity_fingerprint.reset(
- rtc::SSLFingerprint::Create(digest_alg, certificate_->identity()));
- if (!desc->identity_fingerprint.get()) {
- LOG(LS_ERROR) << "Failed to create identity fingerprint, alg="
- << digest_alg;
- return false;
- }
// Assign security role.
desc->connection_role = role;

Powered by Google App Engine
This is Rietveld 408576698