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 BIN_SECURE_SOCKET_H_ | 5 #ifndef BIN_SECURE_SOCKET_H_ |
6 #define BIN_SECURE_SOCKET_H_ | 6 #define BIN_SECURE_SOCKET_H_ |
7 | 7 |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <string.h> | 9 #include <string.h> |
10 #include <stdio.h> | 10 #include <stdio.h> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 filter_(NULL) { } | 54 filter_(NULL) { } |
55 | 55 |
56 void Init(Dart_Handle dart_this); | 56 void Init(Dart_Handle dart_this); |
57 void Connect(const char* host, | 57 void Connect(const char* host, |
58 RawAddr* raw_addr, | 58 RawAddr* raw_addr, |
59 int port, | 59 int port, |
60 bool is_server, | 60 bool is_server, |
61 const char* certificate_name, | 61 const char* certificate_name, |
62 bool request_client_certificate, | 62 bool request_client_certificate, |
63 bool require_client_certificate, | 63 bool require_client_certificate, |
64 bool send_client_certificate); | 64 bool send_client_certificate, |
| 65 Dart_Handle protocols_handle); |
65 void Destroy(); | 66 void Destroy(); |
66 void Handshake(); | 67 void Handshake(); |
| 68 void GetSelectedProtocol(Dart_NativeArguments args); |
67 void Renegotiate(bool use_session_cache, | 69 void Renegotiate(bool use_session_cache, |
68 bool request_client_certificate, | 70 bool request_client_certificate, |
69 bool require_client_certificate); | 71 bool require_client_certificate); |
70 void RegisterHandshakeCompleteCallback(Dart_Handle handshake_complete); | 72 void RegisterHandshakeCompleteCallback(Dart_Handle handshake_complete); |
71 void RegisterBadCertificateCallback(Dart_Handle callback); | 73 void RegisterBadCertificateCallback(Dart_Handle callback); |
72 Dart_Handle bad_certificate_callback() { | 74 Dart_Handle bad_certificate_callback() { |
73 return Dart_HandleFromPersistent(bad_certificate_callback_); | 75 return Dart_HandleFromPersistent(bad_certificate_callback_); |
74 } | 76 } |
75 intptr_t ProcessReadPlaintextBuffer(int start, int end); | 77 intptr_t ProcessReadPlaintextBuffer(int start, int end); |
76 intptr_t ProcessWritePlaintextBuffer(int start1, int end1, | 78 intptr_t ProcessWritePlaintextBuffer(int start1, int end1, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 void InitializeBuffers(Dart_Handle dart_this); | 116 void InitializeBuffers(Dart_Handle dart_this); |
115 void InitializePlatformData(); | 117 void InitializePlatformData(); |
116 | 118 |
117 DISALLOW_COPY_AND_ASSIGN(SSLFilter); | 119 DISALLOW_COPY_AND_ASSIGN(SSLFilter); |
118 }; | 120 }; |
119 | 121 |
120 } // namespace bin | 122 } // namespace bin |
121 } // namespace dart | 123 } // namespace dart |
122 | 124 |
123 #endif // BIN_SECURE_SOCKET_H_ | 125 #endif // BIN_SECURE_SOCKET_H_ |
OLD | NEW |