OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef RUNTIME_BIN_SECURE_SOCKET_BORINGSSL_H_ | 5 #ifndef RUNTIME_BIN_SECURE_SOCKET_BORINGSSL_H_ |
6 #define RUNTIME_BIN_SECURE_SOCKET_BORINGSSL_H_ | 6 #define RUNTIME_BIN_SECURE_SOCKET_BORINGSSL_H_ |
7 | 7 |
8 #if !defined(RUNTIME_BIN_SECURE_SOCKET_H_) | 8 #if !defined(RUNTIME_BIN_SECURE_SOCKET_H_) |
9 #error Do not include secure_socket_boringssl.h directly. Use secure_socket.h. | 9 #error Do not include secure_socket_boringssl.h directly. Use secure_socket.h. |
10 #endif | 10 #endif |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 ~SSLFilter(); | 99 ~SSLFilter(); |
100 | 100 |
101 Dart_Handle Init(Dart_Handle dart_this); | 101 Dart_Handle Init(Dart_Handle dart_this); |
102 void Connect(const char* hostname, | 102 void Connect(const char* hostname, |
103 SSL_CTX* context, | 103 SSL_CTX* context, |
104 bool is_server, | 104 bool is_server, |
105 bool request_client_certificate, | 105 bool request_client_certificate, |
106 bool require_client_certificate, | 106 bool require_client_certificate, |
107 Dart_Handle protocols_handle); | 107 Dart_Handle protocols_handle); |
108 void Destroy(); | 108 void Destroy(); |
| 109 void FreeResources(); |
109 void Handshake(); | 110 void Handshake(); |
110 void GetSelectedProtocol(Dart_NativeArguments args); | 111 void GetSelectedProtocol(Dart_NativeArguments args); |
111 void Renegotiate(bool use_session_cache, | 112 void Renegotiate(bool use_session_cache, |
112 bool request_client_certificate, | 113 bool request_client_certificate, |
113 bool require_client_certificate); | 114 bool require_client_certificate); |
114 void RegisterHandshakeCompleteCallback(Dart_Handle handshake_complete); | 115 void RegisterHandshakeCompleteCallback(Dart_Handle handshake_complete); |
115 void RegisterBadCertificateCallback(Dart_Handle callback); | 116 void RegisterBadCertificateCallback(Dart_Handle callback); |
116 Dart_Handle bad_certificate_callback() { | 117 Dart_Handle bad_certificate_callback() { |
117 return Dart_HandleFromPersistent(bad_certificate_callback_); | 118 return Dart_HandleFromPersistent(bad_certificate_callback_); |
118 } | 119 } |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 Dart_Handle InitializeBuffers(Dart_Handle dart_this); | 160 Dart_Handle InitializeBuffers(Dart_Handle dart_this); |
160 void InitializePlatformData(); | 161 void InitializePlatformData(); |
161 | 162 |
162 DISALLOW_COPY_AND_ASSIGN(SSLFilter); | 163 DISALLOW_COPY_AND_ASSIGN(SSLFilter); |
163 }; | 164 }; |
164 | 165 |
165 } // namespace bin | 166 } // namespace bin |
166 } // namespace dart | 167 } // namespace dart |
167 | 168 |
168 #endif // RUNTIME_BIN_SECURE_SOCKET_BORINGSSL_H_ | 169 #endif // RUNTIME_BIN_SECURE_SOCKET_BORINGSSL_H_ |
OLD | NEW |