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_BASE_SSLSTREAMADAPTER_H_ | 11 #ifndef WEBRTC_BASE_SSLSTREAMADAPTER_H_ |
12 #define WEBRTC_BASE_SSLSTREAMADAPTER_H_ | 12 #define WEBRTC_BASE_SSLSTREAMADAPTER_H_ |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "webrtc/base/stream.h" | 17 #include "webrtc/base/stream.h" |
18 #include "webrtc/base/sslidentity.h" | 18 #include "webrtc/base/sslidentity.h" |
19 | 19 |
20 namespace rtc { | 20 namespace rtc { |
21 | 21 |
22 // Constants for SSL profile. | 22 // Constants for SSL profile. |
23 const int TLS_NULL_WITH_NULL_NULL = 0; | 23 const int TLS_NULL_WITH_NULL_NULL = 0; |
24 | 24 |
25 // Constants for SRTP profiles. | 25 // Constants for SRTP profiles. |
26 const int SRTP_INVALID_CRYPTO_SUITE = 0; | 26 const int SRTP_INVALID_CRYPTO_SUITE = 0; |
| 27 #ifndef SRTP_AES128_CM_SHA1_80 |
27 const int SRTP_AES128_CM_SHA1_80 = 0x0001; | 28 const int SRTP_AES128_CM_SHA1_80 = 0x0001; |
| 29 #endif |
| 30 #ifndef SRTP_AES128_CM_SHA1_32 |
28 const int SRTP_AES128_CM_SHA1_32 = 0x0002; | 31 const int SRTP_AES128_CM_SHA1_32 = 0x0002; |
| 32 #endif |
29 | 33 |
30 // Cipher suite to use for SRTP. Typically a 80-bit HMAC will be used, except | 34 // Cipher suite to use for SRTP. Typically a 80-bit HMAC will be used, except |
31 // in applications (voice) where the additional bandwidth may be significant. | 35 // in applications (voice) where the additional bandwidth may be significant. |
32 // A 80-bit HMAC is always used for SRTCP. | 36 // A 80-bit HMAC is always used for SRTCP. |
33 // 128-bit AES with 80-bit SHA-1 HMAC. | 37 // 128-bit AES with 80-bit SHA-1 HMAC. |
34 extern const char CS_AES_CM_128_HMAC_SHA1_80[]; | 38 extern const char CS_AES_CM_128_HMAC_SHA1_80[]; |
35 // 128-bit AES with 32-bit SHA-1 HMAC. | 39 // 128-bit AES with 32-bit SHA-1 HMAC. |
36 extern const char CS_AES_CM_128_HMAC_SHA1_32[]; | 40 extern const char CS_AES_CM_128_HMAC_SHA1_32[]; |
37 | 41 |
38 // Given the DTLS-SRTP protection profile ID, as defined in | 42 // Given the DTLS-SRTP protection profile ID, as defined in |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 213 |
210 // If true (default), the client is required to provide a certificate during | 214 // If true (default), the client is required to provide a certificate during |
211 // handshake. If no certificate is given, handshake fails. This applies to | 215 // handshake. If no certificate is given, handshake fails. This applies to |
212 // server mode only. | 216 // server mode only. |
213 bool client_auth_enabled_; | 217 bool client_auth_enabled_; |
214 }; | 218 }; |
215 | 219 |
216 } // namespace rtc | 220 } // namespace rtc |
217 | 221 |
218 #endif // WEBRTC_BASE_SSLSTREAMADAPTER_H_ | 222 #endif // WEBRTC_BASE_SSLSTREAMADAPTER_H_ |
OLD | NEW |