Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
SSL/ClientContext.cpp
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4#include "Stroika/Foundation/StroikaPreComp.h"
5
6#if qStroika_HasComponent_OpenSSL
7#include "Stroika/Foundation/Cryptography/Providers/OpenSSL/ClientContext.h"
8#else
9#include "Stroika/Foundation/Execution/RequiredComponentMissingException.h"
10#endif
11#include "ClientContext.h"
12
13using namespace Stroika::Foundation;
14using namespace Stroika::Foundation::Cryptography;
15#if qStroika_HasComponent_OpenSSL
16using namespace Stroika::Foundation::Cryptography::Providers;
17#else
18using namespace Stroika::Foundation::Execution;
19#endif
20
21/*
22 ********************************************************************************
23 ************************ Cryptography::SSL::ClientContext **********************
24 ********************************************************************************
25 */
26auto Cryptography::SSL::ClientContext::New ([[maybe_unused]] const Options& options) -> Ptr
27{
28#if qStroika_HasComponent_OpenSSL
29 return OpenSSL::ClientContext::New (OpenSSL::ClientContext::Options{options});
30#else
31 Throw (RequiredComponentMissingException{"SSL providing service"sv});
32#endif
33}
void Throw(T &&e2Throw)
identical to builtin C++ 'throw' except that it does helpful, type dependent DbgTrace() messages firs...
Definition Throw.inl:43