proxygen
|
#include <Certificate.h>
Static Public Member Functions | |
static Buf | prepareSignData (CertificateVerifyContext context, folly::ByteRange toBeSigned) |
static CertificateMsg | getCertMessage (const std::vector< folly::ssl::X509UniquePtr > &certs, Buf certificateRequestContext) |
template<KeyType T> | |
static std::vector< SignatureScheme > | getSigSchemes () |
static std::unique_ptr< PeerCert > | makePeerCert (Buf certData) |
static std::unique_ptr< SelfCert > | makeSelfCert (std::string certData, std::string keyData, const std::vector< std::shared_ptr< CertificateCompressor >> &compressors={}) |
static std::unique_ptr< SelfCert > | makeSelfCert (std::string certData, std::string encryptedKeyData, std::string password, const std::vector< std::shared_ptr< CertificateCompressor >> &compressors={}) |
static std::unique_ptr< SelfCert > | makeSelfCert (std::vector< folly::ssl::X509UniquePtr > certs, folly::ssl::EvpPkeyUniquePtr key, const std::vector< std::shared_ptr< CertificateCompressor >> &compressors={}) |
static CompressedCertificate | cloneCompressedCert (const CompressedCertificate &src) |
Definition at line 79 of file Certificate.h.
|
static |
Clones a compressed cert by copying the relevant fields and cloning the underlying data IOBuf.
Definition at line 201 of file Certificate.cpp.
References fizz::CompressedCertificate::algorithm, fizz::CompressedCertificate::compressed_certificate_message, and fizz::CompressedCertificate::uncompressed_length.
Referenced by fizz::SelfCertImpl< T >::getCompressedCert().
|
static |
Definition at line 59 of file Certificate.cpp.
References fizz::CertificateEntry::cert_data, fizz::CertificateMsg::certificate_list, fizz::CertificateMsg::certificate_request_context, folly::IOBuf::create(), dataPtr(), and folly::gen::move.
Referenced by fizz::SelfCertImpl< T >::getCertMessage().
|
static |
Create a PeerCert from the ASN1 encoded certData.
Definition at line 87 of file Certificate.cpp.
References b, folly::test::begin(), makeSelfCert(), folly::gen::move, folly::gen::range(), folly::ssl::OpenSSLCertUtils::readCertsFromBuffer(), and string.
Referenced by fizz::Factory::makePeerCert(), and fizz::server::readClientCertificate().
|
static |
Creates a SelfCert using the supplied certificate/key file data and compressors. Throws std::runtime_error on error.
Definition at line 154 of file Certificate.cpp.
References folly::gen::move.
Referenced by fizz::tool::fizzClientCommand(), fizz::tool::fizzServerCommand(), and makePeerCert().
|
static |
Creates a SelfCert using the supplied certificate, encrypted key data, and password. Throws std::runtime_error on error.
Definition at line 162 of file Certificate.cpp.
References folly::gen::move.
|
static |
Definition at line 171 of file Certificate.cpp.
References folly::gen::move.
|
static |
Adds the appropriate context data to prepare toBeSigned for a signature scheme's signing function.
Definition at line 23 of file Certificate.cpp.
References fizz::Client, folly::IOBuf::create(), folly::Range< Iter >::data(), fizz::test::label, fizz::Server, folly::Range< Iter >::size(), and uint8_t.
Referenced by fizz::JavaCryptoPeerCert::verify().