| 1 |
// Written by Dr Stephen N Henson ([email protected]) for the OpenSSL project 1999. |
| 2 |
// Copyright (c) 1999 The OpenSSL Project. All rights reserved. |
| 3 |
// SPDX-License-Identifier: Apache-2.0 |
| 4 |
|
| 5 |
#if !defined(BORINGSSL_SHARED_LIBRARY) |
| 6 |
|
| 7 |
#include <gtest/gtest.h> |
| 8 |
|
| 9 |
#include <openssl/x509.h> |
| 10 |
|
| 11 |
#include "../internal.h" |
| 12 |
#include "ext_dat.h" |
| 13 |
|
| 14 |
// Check ext_data.h is correct. |
| 15 |
TEST(X509V3Test, TabTest) { |
| 16 |
EXPECT_EQ(OPENSSL_ARRAY_SIZE(standard_exts), STANDARD_EXTENSION_COUNT); |
| 17 |
for (size_t i = 1; i < OPENSSL_ARRAY_SIZE(standard_exts); i++) { |
| 18 |
SCOPED_TRACE(i); |
| 19 |
EXPECT_LT(standard_exts[i-1]->ext_nid, standard_exts[i]->ext_nid); |
| 20 |
} |
| 21 |
} |
| 22 |
|
| 23 |
#endif // !BORINGSSL_SHARED_LIBRARY |