#include "quiche/quic/core/crypto/certificate_util.h"
#include <string>
#include <vector>
#include "absl/strings/str_format.h"
#include "absl/strings/str_split.h"
#include "absl/strings/string_view.h"
#include "openssl/bn.h"
#include "openssl/bytestring.h"
#include "openssl/digest.h"
#include "openssl/ec_key.h"
#include "openssl/mem.h"
#include "openssl/pkcs7.h"
#include "openssl/pool.h"
#include "openssl/rsa.h"
#include "openssl/stack.h"
#include "quiche/quic/core/crypto/boring_utils.h"
#include "quiche/quic/platform/api/quic_logging.h"
namespace quic {
namespace {
bool AddEcdsa256SignatureAlgorithm(CBB* cbb) { … }
bool AddName(CBB* cbb, absl::string_view name) { … }
bool CBBAddTime(CBB* cbb, const CertificateTimestamp& timestamp) { … }
bool CBBAddExtension(CBB* extensions, absl::Span<const uint8_t> oid,
bool critical, absl::Span<const uint8_t> contents) { … }
bool IsEcdsa256Key(const EVP_PKEY& evp_key) { … }
}
bssl::UniquePtr<EVP_PKEY> MakeKeyPairForSelfSignedCertificate() { … }
std::string CreateSelfSignedCertificate(EVP_PKEY& key,
const CertificateOptions& options) { … }
}