17 case CertificateStorage::X509:
19 case CertificateStorage::IdentityOnly:
20 return "IdentityOnly";
22 return "Unknown storage";
28 const std::shared_ptr<const Cert>& cert,
43 fizz::detail::writeBuf<uint16_t>(clientCertBuf, appender);
55 fizz::detail::readBuf<uint16_t>(clientCertBuf, cursor);
60 fizz::detail::readBuf<uint16_t>(ident, cursor);
61 return std::make_shared<const IdentityCert>(
62 ident->moveToFbString().toStdString());
folly::StringPiece toString(StateEnum state)
void write(const T &in, folly::io::Appender &appender)
static std::unique_ptr< IOBuf > create(std::size_t capacity)
constexpr detail::Map< Move > move
std::shared_ptr< const Cert > readClientCertificate(folly::io::Cursor &cursor)
size_t read(T &out, folly::io::Cursor &cursor)
static std::unique_ptr< PeerCert > makePeerCert(Buf certData)
std::unique_ptr< folly::IOBuf > Buf
static std::unique_ptr< IOBuf > derEncode(X509 &)
void appendClientCertificate(CertificateStorage storage, const std::shared_ptr< const Cert > &cert, folly::io::Appender &appender)
static std::unique_ptr< IOBuf > copyBuffer(const void *buf, std::size_t size, std::size_t headroom=0, std::size_t minTailroom=0)