SharkSSL C/C++ Reference
TLS, cryptography, certificates, and PSA integration
SharkSslCertStore Struct Reference

#include <SharkSSL.h>

Data Fields

DoubleList certList
 
SharkSslCAList caList
 
U16 elements
 

Detailed Description

SharkSslCertStore is a container object used when assembling a SharkSslCAList.

Without a certificate store, function SharkSslCon_trustedCA() will only return FALSE (not trusted).

A certificate store is required when a TLS client must validate the server's certificate and the complete chain. See the tutorial Certificate Management for an introduction to Public Key Infrastructure or PKI for short.

Example:

SharkSslCertStore_add(&certStore, cert, certLen);
SHARKSSL_API void SharkSslCertStore_constructor(SharkSslCertStore *o)
Initialize a SharkSslCertStore object.
SHARKSSL_API U16 SharkSslCertStore_add(SharkSslCertStore *o, const char *cert, U32 certlen)
Add one or more certificates to the CA store.
SHARKSSL_API U8 SharkSslCertStore_assemble(SharkSslCertStore *o, SharkSslCAList *outList)
Assemble all certificates added by calling SharkSslCertStore_add.
SharkSslCertStore is a container object used when assembling a SharkSslCAList.
Definition: SharkSSL.h:2834
SharkSslCAList caList
Definition: SharkSSL.h:2836

Field Documentation

◆ caList

SharkSslCAList SharkSslCertStore::caList

◆ certList

DoubleList SharkSslCertStore::certList

◆ elements

U16 SharkSslCertStore::elements