// Copyright 2011 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef BSSL_PKI_PEM_H_ #define BSSL_PKI_PEM_H_ #include <stddef.h> #include <string> #include <string_view> #include <vector> #include <openssl/base.h> BSSL_NAMESPACE_BEGIN // PEMTokenizer is a utility class for the parsing of data encapsulated // using RFC 1421, Privacy Enhancement for Internet Electronic Mail. It // does not implement the full specification, most notably it does not // support the Encapsulated Header Portion described in Section 4.4. class OPENSSL_EXPORT PEMTokenizer { … }; // Encodes |data| in the encapsulated message format described in RFC 1421, // with |type| as the PEM block type (eg: CERTIFICATE). OPENSSL_EXPORT std::string PEMEncode(std::string_view data, const std::string &type); BSSL_NAMESPACE_END #endif // BSSL_PKI_PEM_H_