chromium/net/third_party/quiche/src/quiche/quic/test_tools/test_certificates.cc

// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "quiche/quic/test_tools/test_certificates.h"

namespace quic {
namespace test {

// A test certificate generated by //net/tools/quic/certs/generate-certs.sh.
ABSL_CONST_INIT const char kTestCertificateRaw[] =;

ABSL_CONST_INIT const absl::string_view kTestCertificate(
    kTestCertificateRaw, sizeof(kTestCertificateRaw));

ABSL_CONST_INIT const char kTestCertificatePem[] =;

// Same leaf as above, but with an intermediary attached.
ABSL_CONST_INIT const char kTestCertificateChainPem[] =;

ABSL_CONST_INIT const char kTestCertWithUnknownSanTypePem[] =;

ABSL_CONST_INIT const char kTestCertificatePrivateKeyRaw[] =;

ABSL_CONST_INIT const absl::string_view kTestCertificatePrivateKey(
    kTestCertificatePrivateKeyRaw, sizeof(kTestCertificatePrivateKeyRaw));

ABSL_CONST_INIT const char kTestCertificatePrivateKeyPem[] =;

// The legacy version was manually generated from the one above using der2ascii.
ABSL_CONST_INIT const char kTestCertificatePrivateKeyLegacyPem[] =;

ABSL_CONST_INIT const char kWildcardCertificateRaw[] =;

ABSL_CONST_INIT const absl::string_view kWildcardCertificate(
    kWildcardCertificateRaw, sizeof(kWildcardCertificateRaw));

ABSL_CONST_INIT const char kWildcardCertificatePrivateKeyRaw[] =;

ABSL_CONST_INIT const absl::string_view kWildcardCertificatePrivateKey(
    kWildcardCertificatePrivateKeyRaw,
    sizeof(kWildcardCertificatePrivateKeyRaw));

ABSL_CONST_INIT const char kTestEcPrivateKeyLegacyPem[] =;

}  // namespace test
}  // namespace quic