dart-sdk/runtime
David Benjamin ee65e3efa0 Use accessors for X509_STORE and X509_OBJECT
This will avoid build failures in the future when X509_STORE and
X509_OBJECT become opaque. Along the way, it does the following:

- Remove unnecessary NULL check for the object list (it's always
  non-NULL, and STACK_OF(T) functions generally treat NULL as the empty
  list).

- Use BoringSSL's ranged-for adapters for STACK_OF(T).

By using the X509_OBJECT accessor, rather than reaching into the union
directly, this also avoids a potential memory error in the future, if
you ever put non-X509 objects into your X509_STORE.
(X509_OBJECT_get0_X509 checks the type and returns NULL.)

TEST=rely on CI tests, this is refactor

Change-Id: Iafb8c06cfdfa86948119c229837b2e20b824f612
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/206460
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
Auto-Submit: David Benjamin <davidben@google.com>
2021-07-12 19:57:34 +00:00
..
bin Use accessors for X509_STORE and X509_OBJECT 2021-07-12 19:57:34 +00:00
docs Don't store entry points directly in ICData and MegamorphicCache 2021-07-12 17:17:25 +00:00
include [vm] Fix gcc build. 2021-07-02 00:45:53 +00:00
lib Revert "[vm/concurrency] Ensure fixes to switchable call (due to disabled code) is correctly performed" 2021-07-03 07:38:18 +00:00
observatory [ VM / Service ] Add UserTag support to C-API and send UserTagChanged 2021-06-23 00:58:47 +00:00
observatory_2 [ VM / Service ] Add UserTag support to C-API and send UserTagChanged 2021-06-23 00:58:47 +00:00
platform Reland "[platform] Fix Utils::IsAbsoluteUint and rename to MagnitudeIsUint." 2021-07-08 14:22:54 +00:00
tests [vm/concurrency] Enable isolate stress tests in JIT mode 2021-07-12 16:36:54 +00:00
third_party [tools] Update all iteritems -> items 2021-05-20 11:36:52 +00:00
tools [graphexplorer] Support Dart heap snapshot format and merged dominators. 2021-07-07 15:44:22 +00:00
vm Don't store entry points directly in ICData and MegamorphicCache 2021-07-12 17:17:25 +00:00
.clang-tidy
.gitignore
BUILD.gn [vm] Reland: Prefix HOST_OS_* and TARGET_OS_* with DART_ 2021-07-02 19:06:45 +00:00
codereview.settings
configs.gni Reland "[vm] Build dart2native dependencies with the normal "create_sdk" target" 2020-06-17 16:12:26 +00:00
CPPLINT.cfg
PRESUBMIT.py [Presubmit] Fixes presubmit for breaking API change. 2020-03-03 13:30:20 +00:00
runtime_args.gni [wasm] Remove deprecated dart_enable_wasm flag. 2021-04-01 22:45:07 +00:00