| 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 #ifdef DART_IO_SECURE_SOCKET_DISABLED | 8 #ifdef DART_IO_SECURE_SOCKET_DISABLED |
| 9 #error "secure_socket.h can only be included on builds with SSL enabled" | 9 #error "secure_socket.h can only be included on builds with SSL enabled" |
| 10 #endif | 10 #endif |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 int buffer_size_; | 109 int buffer_size_; |
| 110 int encrypted_buffer_size_; | 110 int encrypted_buffer_size_; |
| 111 Dart_PersistentHandle string_start_; | 111 Dart_PersistentHandle string_start_; |
| 112 Dart_PersistentHandle string_length_; | 112 Dart_PersistentHandle string_length_; |
| 113 Dart_PersistentHandle dart_buffer_objects_[kNumBuffers]; | 113 Dart_PersistentHandle dart_buffer_objects_[kNumBuffers]; |
| 114 Dart_PersistentHandle handshake_complete_; | 114 Dart_PersistentHandle handshake_complete_; |
| 115 Dart_PersistentHandle bad_certificate_callback_; | 115 Dart_PersistentHandle bad_certificate_callback_; |
| 116 bool in_handshake_; | 116 bool in_handshake_; |
| 117 bool is_server_; | 117 bool is_server_; |
| 118 char* hostname_; | 118 char* hostname_; |
| 119 X509_VERIFY_PARAM* certificate_checking_parameters_; | |
| 120 | 119 |
| 121 static bool isBufferEncrypted(int i) { | 120 static bool isBufferEncrypted(int i) { |
| 122 return static_cast<BufferIndex>(i) >= kFirstEncrypted; | 121 return static_cast<BufferIndex>(i) >= kFirstEncrypted; |
| 123 } | 122 } |
| 124 void InitializeBuffers(Dart_Handle dart_this); | 123 void InitializeBuffers(Dart_Handle dart_this); |
| 125 void InitializePlatformData(); | 124 void InitializePlatformData(); |
| 126 | 125 |
| 127 DISALLOW_COPY_AND_ASSIGN(SSLFilter); | 126 DISALLOW_COPY_AND_ASSIGN(SSLFilter); |
| 128 }; | 127 }; |
| 129 | 128 |
| 130 } // namespace bin | 129 } // namespace bin |
| 131 } // namespace dart | 130 } // namespace dart |
| 132 | 131 |
| 133 #endif // BIN_SECURE_SOCKET_H_ | 132 #endif // BIN_SECURE_SOCKET_H_ |
| OLD | NEW |