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

Unified Diff: p2p/base/transportdescriptionfactory.cc

Issue 3011133002: Remove the support of fallback from DTLS to SDES. (Closed)
Patch Set: Merge and address the comments. 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
« no previous file with comments | « p2p/base/transportcontroller.cc ('k') | pc/peerconnectioninterface_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: p2p/base/transportdescriptionfactory.cc
diff --git a/p2p/base/transportdescriptionfactory.cc b/p2p/base/transportdescriptionfactory.cc
index 78fbf541d12bd89c874f22f5da13bd4a060bfa90..69663c4eb5a5fa2cd8695b6d113b4eb411987a93 100644
--- a/p2p/base/transportdescriptionfactory.cc
+++ b/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;
« no previous file with comments | « p2p/base/transportcontroller.cc ('k') | pc/peerconnectioninterface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698