| 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> |
| 11 #include <sys/types.h> | 11 #include <sys/types.h> |
| 12 | 12 |
| 13 #include <prinit.h> | 13 #include <prinit.h> |
| 14 #include <prerror.h> | 14 #include <prerror.h> |
| 15 #include <prnetdb.h> | 15 #include <prnetdb.h> |
| 16 #include <ssl.h> | 16 #include <ssl.h> |
| 17 | 17 |
| 18 #include "platform/globals.h" | |
| 19 #include "platform/thread.h" | |
| 20 | |
| 21 #include "bin/builtin.h" | 18 #include "bin/builtin.h" |
| 22 #include "bin/dartutils.h" | 19 #include "bin/dartutils.h" |
| 23 #include "bin/socket.h" | 20 #include "bin/socket.h" |
| 21 #include "bin/thread.h" |
| 24 #include "bin/utils.h" | 22 #include "bin/utils.h" |
| 25 | 23 |
| 26 namespace dart { | 24 namespace dart { |
| 27 namespace bin { | 25 namespace bin { |
| 28 | 26 |
| 29 /* | 27 /* |
| 30 * SSLFilter encapsulates the NSS SSL(TLS) code in a filter, that communicates | 28 * SSLFilter encapsulates the NSS SSL(TLS) code in a filter, that communicates |
| 31 * with the containing _SecureFilterImpl Dart object through four shared | 29 * with the containing _SecureFilterImpl Dart object through four shared |
| 32 * ExternalByteArray buffers, for reading and writing plaintext, and | 30 * ExternalByteArray buffers, for reading and writing plaintext, and |
| 33 * reading and writing encrypted text. The filter handles handshaking | 31 * reading and writing encrypted text. The filter handles handshaking |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 void InitializeBuffers(Dart_Handle dart_this); | 114 void InitializeBuffers(Dart_Handle dart_this); |
| 117 void InitializePlatformData(); | 115 void InitializePlatformData(); |
| 118 | 116 |
| 119 DISALLOW_COPY_AND_ASSIGN(SSLFilter); | 117 DISALLOW_COPY_AND_ASSIGN(SSLFilter); |
| 120 }; | 118 }; |
| 121 | 119 |
| 122 } // namespace bin | 120 } // namespace bin |
| 123 } // namespace dart | 121 } // namespace dart |
| 124 | 122 |
| 125 #endif // BIN_SECURE_SOCKET_H_ | 123 #endif // BIN_SECURE_SOCKET_H_ |
| OLD | NEW |