11#include <userver/crypto/basic_types.hpp>
13USERVER_NAMESPACE_BEGIN
22 using NativeType = X509;
24 Certificate() =
default;
26 NativeType* GetNative()
const noexcept {
return cert_.get(); }
27 explicit operator
bool()
const noexcept {
return !!cert_; }
42 explicit Certificate(std::shared_ptr<NativeType> cert) : cert_(std::move(cert)) {}
44 std::shared_ptr<NativeType> cert_;