OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 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. |
| 4 |
| 5 #ifndef BIN_SECURE_SOCKET_MACOS_H_ |
| 6 #define BIN_SECURE_SOCKET_MACOS_H_ |
| 7 |
| 8 #if !defined(BIN_SECURE_SOCKET_H_) |
| 9 #error Do not include secure_socket_macos.h directly. Use secure_socket.h. |
| 10 #endif |
| 11 |
| 12 #include <CoreFoundation/CoreFoundation.h> |
| 13 #include <Security/SecureTransport.h> |
| 14 #include <Security/Security.h> |
| 15 |
| 16 #include "bin/dartutils.h" |
| 17 |
| 18 namespace dart { |
| 19 namespace bin { |
| 20 |
| 21 // SSLFilter encapsulates the SecureTransport code in a filter that communicates |
| 22 // with the containing _SecureFilterImpl Dart object through four shared |
| 23 // ExternalByteArray buffers, for reading and writing plaintext, and |
| 24 // reading and writing encrypted text. The filter handles handshaking |
| 25 // and certificate verification. |
| 26 class SSLFilter { |
| 27 public: |
| 28 // Callback called by the IOService. |
| 29 static CObject* ProcessFilterRequest(const CObjectArray& request); |
| 30 |
| 31 private: |
| 32 DISALLOW_COPY_AND_ASSIGN(SSLFilter); |
| 33 }; |
| 34 |
| 35 } // namespace bin |
| 36 } // namespace dart |
| 37 |
| 38 #endif // BIN_SECURE_SOCKET_MACOS_H_ |
OLD | NEW |