| 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_OPENSSLSTREAMADAPTER_H_ | 11 #ifndef WEBRTC_RTC_BASE_OPENSSLSTREAMADAPTER_H_ |
| 12 #define WEBRTC_RTC_BASE_OPENSSLSTREAMADAPTER_H_ | 12 #define WEBRTC_RTC_BASE_OPENSSLSTREAMADAPTER_H_ |
| 13 | 13 |
| 14 #include <string> | 14 #include <string> |
| 15 #include <memory> | 15 #include <memory> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "webrtc/base/buffer.h" | 18 #include "webrtc/rtc_base/buffer.h" |
| 19 #include "webrtc/base/sslstreamadapter.h" | 19 #include "webrtc/rtc_base/opensslidentity.h" |
| 20 #include "webrtc/base/opensslidentity.h" | 20 #include "webrtc/rtc_base/sslstreamadapter.h" |
| 21 | 21 |
| 22 typedef struct ssl_st SSL; | 22 typedef struct ssl_st SSL; |
| 23 typedef struct ssl_ctx_st SSL_CTX; | 23 typedef struct ssl_ctx_st SSL_CTX; |
| 24 typedef struct ssl_cipher_st SSL_CIPHER; | 24 typedef struct ssl_cipher_st SSL_CIPHER; |
| 25 typedef struct x509_store_ctx_st X509_STORE_CTX; | 25 typedef struct x509_store_ctx_st X509_STORE_CTX; |
| 26 | 26 |
| 27 namespace rtc { | 27 namespace rtc { |
| 28 | 28 |
| 29 // This class was written with OpenSSLAdapter (a socket adapter) as a | 29 // This class was written with OpenSSLAdapter (a socket adapter) as a |
| 30 // starting point. It has similar structure and functionality, but uses a | 30 // starting point. It has similar structure and functionality, but uses a |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 // A 50-ms initial timeout ensures rapid setup on fast connections, but may | 217 // A 50-ms initial timeout ensures rapid setup on fast connections, but may |
| 218 // be too aggressive for low bandwidth links. | 218 // be too aggressive for low bandwidth links. |
| 219 int dtls_handshake_timeout_ms_ = 50; | 219 int dtls_handshake_timeout_ms_ = 50; |
| 220 }; | 220 }; |
| 221 | 221 |
| 222 ///////////////////////////////////////////////////////////////////////////// | 222 ///////////////////////////////////////////////////////////////////////////// |
| 223 | 223 |
| 224 } // namespace rtc | 224 } // namespace rtc |
| 225 | 225 |
| 226 #endif // WEBRTC_RTC_BASE_OPENSSLSTREAMADAPTER_H_ | 226 #endif // WEBRTC_RTC_BASE_OPENSSLSTREAMADAPTER_H_ |
| OLD | NEW |