ForestHub SDK 0.1.0
C++14 LLM SDK for PC and embedded platforms
Loading...
Searching...
No Matches
foresthub::platform::CryptoInterface Class Referenceabstract

Abstract interface for TLS/crypto operations. More...

#include <crypto.hpp>

Public Member Functions

virtual std::shared_ptr< TLSClientWrapperCreateTlsClient (const char *root_ca=nullptr, unsigned long timeout_ms=5000)=0
 Create a TLS-enabled client with optional root CA certificate.
virtual const char * GetGtsRootCerts () const =0
 Get the bundled Google Trust Services root certificates (for Google Cloud endpoints).
virtual bool IsAvailable () const =0
 Check if TLS/crypto subsystem is available.

Detailed Description

Abstract interface for TLS/crypto operations.

Member Function Documentation

◆ CreateTlsClient()

virtual std::shared_ptr< TLSClientWrapper > foresthub::platform::CryptoInterface::CreateTlsClient ( const char * root_ca = nullptr,
unsigned long timeout_ms = 5000 )
pure virtual

Create a TLS-enabled client with optional root CA certificate.

Parameters
root_caPEM-encoded root CA certificate, or nullptr for platform default.
timeout_msConnection timeout in milliseconds.
Returns
Shared pointer to the TLS client wrapper.

◆ GetGtsRootCerts()

virtual const char * foresthub::platform::CryptoInterface::GetGtsRootCerts ( ) const
pure virtual

Get the bundled Google Trust Services root certificates (for Google Cloud endpoints).

Returns
PEM-encoded certificate string with static lifetime.

The documentation for this class was generated from the following file: