27std::unique_ptr<GSsl::LibraryImpBase> GSsl::Library::newLibraryImp(
G::StringArray & library_config , Library::LogFn log_fn ,
bool verbose )
31 return std::make_unique<MbedTls::LibraryImp>( library_config , log_fn , verbose ) ;
36 return std::make_unique<OpenSSL::LibraryImp>( library_config , log_fn , verbose ) ;
40std::string
GSsl::Library::credit(
const std::string & prefix ,
const std::string & eol ,
const std::string & eot )
43 OpenSSL::LibraryImp::credit( prefix , eol , eol ) +
44 MbedTls::LibraryImp::credit( prefix , eol , eot ) ;
49 return OpenSSL::LibraryImp::sid() +
", " + MbedTls::LibraryImp::sid() ;
static bool consume(G::StringArray &list, std::string_view item)
A convenience function that removes the item from the list and returns true iff is was removed.
static std::string credit(const std::string &prefix, const std::string &eol, const std::string &eot)
Returns a multi-line library credit for all available TLS libraries.
static std::string ids()
Returns a concatenation of all available TLS library names and versions.
static bool enabled() noexcept
Returns true if test features are enabled.
An interface to an underlying TLS library.
std::vector< std::string > StringArray
A std::vector of std::strings.