Commit Graph

11 Commits

Author SHA1 Message Date
Ryan Macnak 877284947b Rename TARGET_OS_* to HOST_OS_*.
Like HOST_ARCH_*, HOST_OS_* describes the OS the VM is running on, which may be different from the OS the VM is generating code for during AOT compilation.

Currently we conflate the two when emitting AOT as assembly, and we get away with it because Flutter only uses assembly for targeting iOS and one can only target iOS from a Mac, but we expect to use assembly for Android as well so native tools can unwind Dart frames.

R=zra@google.com

Review-Url: https://codereview.chromium.org/2750843003 .
2017-03-15 13:11:05 -07:00
Zachary Anderson 479a97b129 clang-format runtime/bin
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2480793002 .
2016-11-04 12:30:56 -07:00
Zach Anderson 522ce88fe6 Implements remaining SecurityContext calls for iOS
BUG=
R=asiva@google.com, iposva@google.com

Review URL: https://codereview.chromium.org/1852783003 .
2016-04-13 10:27:39 -07:00
Zach Anderson b0475caa7f Allows adding trusted certs on iOS.
BUG=
R=iposva@google.com

Review URL: https://codereview.chromium.org/1845273004 .
2016-03-31 15:51:14 -07:00
Zach Anderson 08450dc432 Begin work on ios secure sockets
BUG=
R=iposva@google.com

Review URL: https://codereview.chromium.org/1839123003 .
2016-03-31 12:55:31 -07:00
Zachary Anderson 7308e58c3f Really remove io support when dart:io is unsupported.
Previously we would compile in implementaitions of native calls for
IO functions that would never be used. This CL provides implementations
that throw a Dart exception if they're called by mistake. It also uses
a DART_IO_DISABLED preprocessor define to clean up the build files and
check that we're not including code we shouldn't.

R=iposva@google.com, johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1839463002 .
2016-03-29 11:22:03 -07:00
Zach Anderson 5cee7ff634 Fixes handling of short reads/writes for Mac SSL
The SecureTransport API is a bit finicky about the return code
and length from SSL{Read,Write}Callback. I think I've got it
right now, but we'll have to keep an eye on it.

Also a small tweak to avoid an extra trip through the event loop
before putting a write event on the secure socket stream.

related #26104

R=iposva@google.com

Review URL: https://codereview.chromium.org/1842703003 .
2016-03-29 10:30:09 -07:00
Zachary Anderson b10f3e7be9 Some build file cleanup
R=iposva@google.com

Review URL: https://codereview.chromium.org/1824053002 .
2016-03-22 13:29:26 -07:00
Zach Anderson ed4589ae9d Use SecItemImport instead of SecKeychainItemImport
BUG=

Review URL: https://codereview.chromium.org/1820183002 .
2016-03-21 19:10:19 -07:00
Zach Anderson e82b3c9092 Try to fix Mac build
BUG=

Review URL: https://codereview.chromium.org/1821693003 .
2016-03-21 15:57:38 -07:00
Zach Anderson e900b1b944 Implements secure sockets on Mac OS with SecureTransport API
R=iposva@google.com

Review URL: https://codereview.chromium.org/1721283002 .
2016-03-21 15:46:29 -07:00