Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@google.com>2016-09-27 20:55:57 +0300
committerCQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>2016-09-27 21:11:29 +0300
commitdaf4a05bf40f8d0771a0da4891dc0cc60c722818 (patch)
tree2765a895d30603d8510a6c5fd68a9aae1120c6dc
parentb1dd8cdab508dc3f9761c2d7fbe9d25f09a3d383 (diff)
Avoid using empty initializer lists.
One of Chromium's toolchains can't handle this for some reason. See also empty_crls and empty in TestVerify. Change-Id: I5e6a849f3042288da2e406882ae5cfec249a86ae Reviewed-on: https://boringssl-review.googlesource.com/11340 Reviewed-by: Steven Valdez <svaldez@google.com> Reviewed-by: David Benjamin <davidben@google.com> Commit-Queue: David Benjamin <davidben@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
-rw-r--r--crypto/x509/x509_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/x509/x509_test.cc b/crypto/x509/x509_test.cc
index d2364ad8..dc5af139 100644
--- a/crypto/x509/x509_test.cc
+++ b/crypto/x509/x509_test.cc
@@ -545,7 +545,8 @@ static bool TestCRL() {
return false;
}
- if (Verify(leaf.get(), {root.get()}, {root.get()}, {},
+ std::vector<X509_CRL *> empty_crls;
+ if (Verify(leaf.get(), {root.get()}, {root.get()}, empty_crls,
X509_V_FLAG_CRL_CHECK) != X509_V_ERR_UNABLE_TO_GET_CRL) {
fprintf(stderr, "CRLs were not required.\n");
return false;