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

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

Issue 2594623002: Add disabled certificate check support to IceServer PeerConnection API. (Closed)
Patch Set: Support deprecated OPT_SSLTCP name to prevent API breakage. 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
« no previous file with comments | « webrtc/p2p/base/basicpacketsocketfactory.cc ('k') | webrtc/p2p/base/portallocator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/packetsocketfactory.h
diff --git a/webrtc/p2p/base/packetsocketfactory.h b/webrtc/p2p/base/packetsocketfactory.h
index 290d9ca844b9ebcd4c92541b7e30bf2959430016..c3b24175261950bbbfdc41b521e26e20d3ac0cb7 100644
--- a/webrtc/p2p/base/packetsocketfactory.h
+++ b/webrtc/p2p/base/packetsocketfactory.h
@@ -22,9 +22,15 @@ class AsyncResolverInterface;
class PacketSocketFactory {
public:
enum Options {
- OPT_SSLTCP = 0x01, // Pseudo-TLS.
- OPT_TLS = 0x02,
OPT_STUN = 0x04,
+
+ // The TLS options below are mutually exclusive.
+ OPT_TLS = 0x02, // Real and secure TLS.
+ OPT_TLS_FAKE = 0x01, // Fake TLS with a dummy SSL handshake.
+ OPT_TLS_INSECURE = 0x08, // Insecure TLS without certificate validation.
+
+ // Deprecated, use OPT_TLS_FAKE.
+ OPT_SSLTCP = OPT_TLS_FAKE,
};
PacketSocketFactory() { }
« no previous file with comments | « webrtc/p2p/base/basicpacketsocketfactory.cc ('k') | webrtc/p2p/base/portallocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698