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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 void Connect(const char* host, | 59 void Connect(const char* host, |
60 RawAddr* raw_addr, | 60 RawAddr* raw_addr, |
61 int port, | 61 int port, |
62 bool is_server, | 62 bool is_server, |
63 const char* certificate_name, | 63 const char* certificate_name, |
64 bool request_client_certificate, | 64 bool request_client_certificate, |
65 bool require_client_certificate, | 65 bool require_client_certificate, |
66 bool send_client_certificate); | 66 bool send_client_certificate); |
67 void Destroy(); | 67 void Destroy(); |
68 void Handshake(); | 68 void Handshake(); |
| 69 void Renegotiate(bool use_session_cache, |
| 70 bool request_client_certificate, |
| 71 bool require_client_certificate); |
69 void RegisterHandshakeCompleteCallback(Dart_Handle handshake_complete); | 72 void RegisterHandshakeCompleteCallback(Dart_Handle handshake_complete); |
70 void RegisterBadCertificateCallback(Dart_Handle callback); | 73 void RegisterBadCertificateCallback(Dart_Handle callback); |
71 Dart_Handle bad_certificate_callback() { | 74 Dart_Handle bad_certificate_callback() { |
72 return Dart_HandleFromPersistent(bad_certificate_callback_); | 75 return Dart_HandleFromPersistent(bad_certificate_callback_); |
73 } | 76 } |
74 intptr_t ProcessReadPlaintextBuffer(int start, int end); | 77 intptr_t ProcessReadPlaintextBuffer(int start, int end); |
75 intptr_t ProcessWritePlaintextBuffer(int start1, int end1, | 78 intptr_t ProcessWritePlaintextBuffer(int start1, int end1, |
76 int start2, int end2); | 79 int start2, int end2); |
77 intptr_t ProcessReadEncryptedBuffer(int start, int end); | 80 intptr_t ProcessReadEncryptedBuffer(int start, int end); |
78 intptr_t ProcessWriteEncryptedBuffer(int start, int end); | 81 intptr_t ProcessWriteEncryptedBuffer(int start, int end); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 void InitializeBuffers(Dart_Handle dart_this); | 115 void InitializeBuffers(Dart_Handle dart_this); |
113 void InitializePlatformData(); | 116 void InitializePlatformData(); |
114 | 117 |
115 DISALLOW_COPY_AND_ASSIGN(SSLFilter); | 118 DISALLOW_COPY_AND_ASSIGN(SSLFilter); |
116 }; | 119 }; |
117 | 120 |
118 } // namespace bin | 121 } // namespace bin |
119 } // namespace dart | 122 } // namespace dart |
120 | 123 |
121 #endif // BIN_SECURE_SOCKET_H_ | 124 #endif // BIN_SECURE_SOCKET_H_ |
OLD | NEW |