#include "pem.h"
#include "string_util.h"
#include <string_view>
namespace {
constexpr std::string_view kPEMHeaderBeginBlock = …;
constexpr std::string_view kPEMHeaderEndBlock = …;
constexpr std::string_view kPEMHeaderTail = …;
}
BSSL_NAMESPACE_BEGIN
struct PEMTokenizer::PEMType { … };
PEMTokenizer::PEMTokenizer(
std::string_view str, const std::vector<std::string> &allowed_block_types) { … }
PEMTokenizer::~PEMTokenizer() = default;
bool PEMTokenizer::GetNext() { … }
void PEMTokenizer::Init(std::string_view str,
const std::vector<std::string> &allowed_block_types) { … }
std::string PEMEncode(std::string_view data, const std::string &type) { … }
BSSL_NAMESPACE_END