Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: runtime/bin/secure_socket_macos.h

Issue 1764403002: Set up for mac native secure sockets (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/bin/secure_socket_boringssl.cc ('k') | runtime/bin/secure_socket_macos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « runtime/bin/secure_socket_boringssl.cc ('k') | runtime/bin/secure_socket_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698