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

Unified Diff: webrtc/p2p/base/portinterface.h

Issue 2557803002: Add disabled certificate check support to IceServer PeerConnection API. (Closed)
Patch Set: Add disabled certificate check support to IceServer PeerConnection API. Created 4 years 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/portinterface.h
diff --git a/webrtc/p2p/base/portinterface.h b/webrtc/p2p/base/portinterface.h
index e08e791f1a2ed9daec5cdd5a77771b5a33caa259..fe1a793daa25a887e96c44d7eb8482853c77c109 100644
--- a/webrtc/p2p/base/portinterface.h
+++ b/webrtc/p2p/base/portinterface.h
@@ -30,8 +30,17 @@ class StunMessage;
enum ProtocolType {
PROTO_UDP,
PROTO_TCP,
- PROTO_SSLTCP,
- PROTO_LAST = PROTO_SSLTCP
+ PROTO_SSLTCP, // Pseudo-TLS.
+ PROTO_TLS,
pthatcher1 2016/12/07 21:29:35 Same here with PROTO_INSECURE_TLS and PROTO_FAKE_S
hnsl1 2016/12/12 16:08:13 Acknowledged.
+ PROTO_LAST = PROTO_TLS
+};
+
+enum ProtocolFlags {
+ PROTO_FLAG_NONE = 0,
+ // Disable certificate checking for TLS based protocols, making them
+ // inherently insecure.
+ // This is useful for protocol obfuscation, development and testing.
+ PROTO_FLAG_INSECURE_CERT_CHECK = 0x01,
};
// Defines the interface for a port, which represents a local communication

Powered by Google App Engine
This is Rietveld 408576698