23 using NativeType = X509;
25 Certificate() =
default;
27 NativeType* GetNative()
const noexcept {
return cert_.get(); }
28 explicit operator
bool()
const noexcept {
return !!cert_; }
46 explicit Certificate(std::shared_ptr<NativeType> cert) : cert_(std::move(cert)) {}
48 std::shared_ptr<NativeType> cert_;