OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... | |
23 } | 23 } |
24 | 24 |
25 namespace cricket { | 25 namespace cricket { |
26 class Connection; | 26 class Connection; |
27 class IceMessage; | 27 class IceMessage; |
28 class StunMessage; | 28 class StunMessage; |
29 | 29 |
30 enum ProtocolType { | 30 enum ProtocolType { |
31 PROTO_UDP, | 31 PROTO_UDP, |
32 PROTO_TCP, | 32 PROTO_TCP, |
33 PROTO_SSLTCP, | 33 PROTO_SSLTCP, // Pseudo-TLS. |
34 PROTO_LAST = PROTO_SSLTCP | 34 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.
| |
35 PROTO_LAST = PROTO_TLS | |
36 }; | |
37 | |
38 enum ProtocolFlags { | |
39 PROTO_FLAG_NONE = 0, | |
40 // Disable certificate checking for TLS based protocols, making them | |
41 // inherently insecure. | |
42 // This is useful for protocol obfuscation, development and testing. | |
43 PROTO_FLAG_INSECURE_CERT_CHECK = 0x01, | |
35 }; | 44 }; |
36 | 45 |
37 // Defines the interface for a port, which represents a local communication | 46 // Defines the interface for a port, which represents a local communication |
38 // mechanism that can be used to create connections to similar mechanisms of | 47 // mechanism that can be used to create connections to similar mechanisms of |
39 // the other client. Various types of ports will implement this interface. | 48 // the other client. Various types of ports will implement this interface. |
40 class PortInterface { | 49 class PortInterface { |
41 public: | 50 public: |
42 virtual ~PortInterface() {} | 51 virtual ~PortInterface() {} |
43 | 52 |
44 virtual const std::string& Type() const = 0; | 53 virtual const std::string& Type() const = 0; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
122 | 131 |
123 virtual std::string ToString() const = 0; | 132 virtual std::string ToString() const = 0; |
124 | 133 |
125 protected: | 134 protected: |
126 PortInterface() {} | 135 PortInterface() {} |
127 }; | 136 }; |
128 | 137 |
129 } // namespace cricket | 138 } // namespace cricket |
130 | 139 |
131 #endif // WEBRTC_P2P_BASE_PORTINTERFACE_H_ | 140 #endif // WEBRTC_P2P_BASE_PORTINTERFACE_H_ |
OLD | NEW |