5namespace Stroika::Foundation::Cryptography::Providers::OpenSSL::PrivateKey {
7#if qStroika_HasComponent_OpenSSL
13 inline LibRepType::LibRepType (nullptr_t)
14 : inherited{nullptr, &::EVP_PKEY_free}
17 inline LibRepType::LibRepType (EVP_PKEY* p)
18 : inherited{p, &::EVP_PKEY_free}
27 inline Ptr::Ptr (
const shared_ptr<IRep>& p)
31 inline Ptr::Ptr (
const shared_ptr<PKI::PrivateKey::IRep>& p)
33 if (
auto pp = dynamic_pointer_cast<IRep> (p)) [[likely]] {
37 Execution::Throw (bad_cast{});
40 inline EVP_PKEY* Ptr::Get_EVP_PKEY ()
const
42 return get ()->Get_EVP_PKEY ();