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 |
(...skipping 19 matching lines...) Expand all Loading... |
30 static bool InitializeSSLThread(); | 30 static bool InitializeSSLThread(); |
31 static bool CleanupSSL(); | 31 static bool CleanupSSL(); |
32 | 32 |
33 OpenSSLAdapter(AsyncSocket* socket); | 33 OpenSSLAdapter(AsyncSocket* socket); |
34 ~OpenSSLAdapter() override; | 34 ~OpenSSLAdapter() override; |
35 | 35 |
36 void SetMode(SSLMode mode) override; | 36 void SetMode(SSLMode mode) override; |
37 int StartSSL(const char* hostname, bool restartable) override; | 37 int StartSSL(const char* hostname, bool restartable) override; |
38 int Send(const void* pv, size_t cb) override; | 38 int Send(const void* pv, size_t cb) override; |
39 int SendTo(const void* pv, size_t cb, const SocketAddress& addr) override; | 39 int SendTo(const void* pv, size_t cb, const SocketAddress& addr) override; |
40 int Recv(void* pv, size_t cb) override; | 40 int Recv(void* pv, size_t cb, int64_t* timestamp) override; |
41 int RecvFrom(void* pv, size_t cb, SocketAddress* paddr) override; | 41 int RecvFrom(void* pv, |
| 42 size_t cb, |
| 43 SocketAddress* paddr, |
| 44 int64_t* timestamp) override; |
42 int Close() override; | 45 int Close() override; |
43 | 46 |
44 // Note that the socket returns ST_CONNECTING while SSL is being negotiated. | 47 // Note that the socket returns ST_CONNECTING while SSL is being negotiated. |
45 ConnState GetState() const override; | 48 ConnState GetState() const override; |
46 | 49 |
47 protected: | 50 protected: |
48 void OnConnectEvent(AsyncSocket* socket) override; | 51 void OnConnectEvent(AsyncSocket* socket) override; |
49 void OnReadEvent(AsyncSocket* socket) override; | 52 void OnReadEvent(AsyncSocket* socket) override; |
50 void OnWriteEvent(AsyncSocket* socket) override; | 53 void OnWriteEvent(AsyncSocket* socket) override; |
51 void OnCloseEvent(AsyncSocket* socket, int err) override; | 54 void OnCloseEvent(AsyncSocket* socket, int err) override; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 SSLMode ssl_mode_; | 93 SSLMode ssl_mode_; |
91 | 94 |
92 bool custom_verification_succeeded_; | 95 bool custom_verification_succeeded_; |
93 }; | 96 }; |
94 | 97 |
95 ///////////////////////////////////////////////////////////////////////////// | 98 ///////////////////////////////////////////////////////////////////////////// |
96 | 99 |
97 } // namespace rtc | 100 } // namespace rtc |
98 | 101 |
99 #endif // WEBRTC_BASE_OPENSSLADAPTER_H__ | 102 #endif // WEBRTC_BASE_OPENSSLADAPTER_H__ |
OLD | NEW |