Struct SolidSyslogWolfSslCredentials¶
ClassList > SolidSyslogWolfSslCredentials
#include <SolidSyslogWolfSslCredentialsDefinition.h>
struct SolidSyslogWolfSslCredentials
{
bool (*Install)(
struct SolidSyslogWolfSslCredentials* base,
struct WOLFSSL_CTX* ctx,
struct SolidSyslogTlsCredentialsInstalled* installed
);
void (*Release)(struct SolidSyslogWolfSslCredentials* base);
};
Detailed Description¶
Where a WolfSslStream's credentials come from.
Called once per connection each, so material is obtained only for a connection actually being made and released when it ends.
Public Attributes Documentation¶
Install¶
Install trust anchors and - for mutual TLS - the client credential onto ctx , and report throughinstalled what the stream cannot read back out ofctx: whether anchors were installed, and the fingerprints that pin the peer.
bool(* SolidSyslogWolfSslCredentials::Install) (struct SolidSyslogWolfSslCredentials *base, struct WOLFSSL_CTX *ctx, struct SolidSyslogTlsCredentialsInstalled *installed);
The stream enforces what is reported. Either anchors or pins authorise a peer on their own; where both are reported the peer must satisfy both, and a build of wolfSSL that cannot check a pin on a chain that verifies refuses the connection instead. Called from Open, after the transport connects and before the session is created from the context, so what is installed here is what the session inherits.
Report a refusal that fails Install once per run of the same detail, not once per call: the stream calls Install on every Open and the sender retries every servicing pass. A different detail is new information and reports; an Install that returns true re-arms it.
Return value:
falsethe material that authorises the peer could not be produced; the connection attempt fails and the sender retries on its next pass. A fault in the client's own credential is reported by the backend and returns true - it never stops delivery.
Release¶
Release what Install acquired.
Called from Close exactly once for every Install call, whatever that call returned, so a backend needs no rollback of its own and the integrator is always told when the credential window has closed. Must be a safe no-op when nothing was acquired.
The documentation for this class was generated from the following file Platform/WolfSsl/Interface/SolidSyslogWolfSslCredentialsDefinition.h