OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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 |
11 #ifndef WEBRTC_RTC_BASE_SSLSTREAMADAPTER_H_ | 11 #ifndef WEBRTC_RTC_BASE_SSLSTREAMADAPTER_H_ |
12 #define WEBRTC_RTC_BASE_SSLSTREAMADAPTER_H_ | 12 #define WEBRTC_RTC_BASE_SSLSTREAMADAPTER_H_ |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 #include <string> | 15 #include <string> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "webrtc/rtc_base/sslidentity.h" | 18 #include "webrtc/base/stream.h" |
19 #include "webrtc/rtc_base/stream.h" | 19 #include "webrtc/base/sslidentity.h" |
20 | 20 |
21 namespace rtc { | 21 namespace rtc { |
22 | 22 |
23 // Constants for SSL profile. | 23 // Constants for SSL profile. |
24 const int TLS_NULL_WITH_NULL_NULL = 0; | 24 const int TLS_NULL_WITH_NULL_NULL = 0; |
25 | 25 |
26 // Constants for SRTP profiles. | 26 // Constants for SRTP profiles. |
27 const int SRTP_INVALID_CRYPTO_SUITE = 0; | 27 const int SRTP_INVALID_CRYPTO_SUITE = 0; |
28 #ifndef SRTP_AES128_CM_SHA1_80 | 28 #ifndef SRTP_AES128_CM_SHA1_80 |
29 const int SRTP_AES128_CM_SHA1_80 = 0x0001; | 29 const int SRTP_AES128_CM_SHA1_80 = 0x0001; |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 270 |
271 // If true (default), the client is required to provide a certificate during | 271 // If true (default), the client is required to provide a certificate during |
272 // handshake. If no certificate is given, handshake fails. This applies to | 272 // handshake. If no certificate is given, handshake fails. This applies to |
273 // server mode only. | 273 // server mode only. |
274 bool client_auth_enabled_; | 274 bool client_auth_enabled_; |
275 }; | 275 }; |
276 | 276 |
277 } // namespace rtc | 277 } // namespace rtc |
278 | 278 |
279 #endif // WEBRTC_RTC_BASE_SSLSTREAMADAPTER_H_ | 279 #endif // WEBRTC_RTC_BASE_SSLSTREAMADAPTER_H_ |
OLD | NEW |