commit | d9e572d3e64bd44757ce536a73a79503d5bf4491 | [log] [tgz] |
---|---|---|
author | Robert Sloan <varomodt@google.com> | Mon Aug 27 12:27:00 2018 -0700 |
committer | Robert Sloan <varomodt@google.com> | Mon Aug 27 13:16:47 2018 -0700 |
tree | 9fadcf0d34cf18320701edc474a0130fe06d99d9 | |
parent | bfcf3a72c0bcb62cfde80e932db0668a7f96c0f8 [diff] [blame] |
external/boringssl: Sync to 9c969bf4919e82c7fa8e1d32d0c7c81654027683. This includes the following changes: https://boringssl.googlesource.com/boringssl/+log/8625ec4b436ccb4098ed4aac10891eff8372be41..9c969bf4919e82c7fa8e1d32d0c7c81654027683 Test: BoringSSL CTS Presubmits Change-Id: I1da35d99383d154945bbd60b9fbad5e21ed9d161
diff --git a/src/crypto/test/test_util.cc b/src/crypto/test/test_util.cc index 4ad777f..29be702 100644 --- a/src/crypto/test/test_util.cc +++ b/src/crypto/test/test_util.cc
@@ -30,15 +30,15 @@ } std::ostream &operator<<(std::ostream &os, const Bytes &in) { - if (in.len == 0) { + if (in.span_.empty()) { return os << "<empty Bytes>"; } // Print a byte slice as hex. static const char hex[] = "0123456789abcdef"; - for (size_t i = 0; i < in.len; i++) { - os << hex[in.data[i] >> 4]; - os << hex[in.data[i] & 0xf]; + for (uint8_t b : in.span_) { + os << hex[b >> 4]; + os << hex[b & 0xf]; } return os; }