| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 void RegisterHandshakeCompleteCallback(Dart_Handle handshake_complete); | 69 void RegisterHandshakeCompleteCallback(Dart_Handle handshake_complete); |
| 70 void RegisterBadCertificateCallback(Dart_Handle callback); | 70 void RegisterBadCertificateCallback(Dart_Handle callback); |
| 71 Dart_Handle bad_certificate_callback() { | 71 Dart_Handle bad_certificate_callback() { |
| 72 return Dart_HandleFromPersistent(bad_certificate_callback_); | 72 return Dart_HandleFromPersistent(bad_certificate_callback_); |
| 73 } | 73 } |
| 74 intptr_t ProcessReadPlaintextBuffer(int start, int end); | 74 intptr_t ProcessReadPlaintextBuffer(int start, int end); |
| 75 intptr_t ProcessWritePlaintextBuffer(int start1, int end1, | 75 intptr_t ProcessWritePlaintextBuffer(int start1, int end1, |
| 76 int start2, int end2); | 76 int start2, int end2); |
| 77 intptr_t ProcessReadEncryptedBuffer(int start, int end); | 77 intptr_t ProcessReadEncryptedBuffer(int start, int end); |
| 78 intptr_t ProcessWriteEncryptedBuffer(int start, int end); | 78 intptr_t ProcessWriteEncryptedBuffer(int start, int end); |
| 79 void ProcessAllBuffers(int starts[kNumBuffers], | 79 bool ProcessAllBuffers(int starts[kNumBuffers], |
| 80 int ends[kNumBuffers], | 80 int ends[kNumBuffers], |
| 81 bool in_handshake); | 81 bool in_handshake); |
| 82 Dart_Handle PeerCertificate(); | 82 Dart_Handle PeerCertificate(); |
| 83 static void InitializeLibrary(const char* certificate_database, | 83 static void InitializeLibrary(const char* certificate_database, |
| 84 const char* password, | 84 const char* password, |
| 85 bool use_builtin_root_certificates, | 85 bool use_builtin_root_certificates, |
| 86 bool report_duplicate_initialization = true); | 86 bool report_duplicate_initialization = true); |
| 87 static Dart_Port GetServicePort(); | 87 static Dart_Port GetServicePort(); |
| 88 | 88 |
| 89 private: | 89 private: |
| (...skipping 22 matching lines...) Expand all Loading... |
| 112 void InitializeBuffers(Dart_Handle dart_this); | 112 void InitializeBuffers(Dart_Handle dart_this); |
| 113 void InitializePlatformData(); | 113 void InitializePlatformData(); |
| 114 | 114 |
| 115 DISALLOW_COPY_AND_ASSIGN(SSLFilter); | 115 DISALLOW_COPY_AND_ASSIGN(SSLFilter); |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 } // namespace bin | 118 } // namespace bin |
| 119 } // namespace dart | 119 } // namespace dart |
| 120 | 120 |
| 121 #endif // BIN_SECURE_SOCKET_H_ | 121 #endif // BIN_SECURE_SOCKET_H_ |
| OLD | NEW |