4#include "Stroika/Foundation/StroikaPreComp.h"
6#if qStroika_HasComponent_OpenSSL
9#include "Stroika/Foundation/Execution/RequiredComponentMissingException.h"
17using namespace Stroika::Foundation::Cryptography;
18using namespace Stroika::Foundation::Cryptography::PKI;
19#if !qStroika_HasComponent_OpenSSL
22using namespace Stroika::Foundation::Streams;
31 return BinaryToText::Convert (get ()->GetData ());
39auto PKI::PEMFile::New (
const filesystem::path& pemFile) ->
Ptr
41 return New (IO::FileSystem::FileInputStream::New (pemFile).ReadAll ());
45#if qStroika_HasComponent_OpenSSL
46 return Cryptography::Providers::OpenSSL::PEMFile::New (pemData);
48 Throw (RequiredComponentMissingException{
"SSL providing service"sv});
53#if qStroika_HasComponent_OpenSSL
54 return Cryptography::Providers::OpenSSL::PEMFile::New (entries);
56 Throw (RequiredComponentMissingException{
"SSL providing service"sv});
String is like std::u32string, except it is much easier to use, often much more space efficient,...
A generalization of a vector: a container whose elements are keyed by the natural numbers.
A Streams::Ptr<ELEMENT_TYPE> is a smart-pointer to a stream of elements of type T.
void Throw(T &&e2Throw)
identical to builtin C++ 'throw' except that it does helpful, type dependent DbgTrace() messages firs...