Vanilla.PDF  2.2.0
Cross-platform toolkit for creating and modifying PDF documents
List of all members
TrustedCertificateStoreHandle Class Reference

Collection of trusted certificates for signature verification. More...

Inheritance diagram for TrustedCertificateStoreHandle:
IUnknownHandle
error_type CALLING_CONVENTION TrustedCertificateStore_Create (TrustedCertificateStoreHandle **result)
 Create an empty trusted certificate store.
 
error_type CALLING_CONVENTION TrustedCertificateStore_AddCertificateFromPEM (TrustedCertificateStoreHandle *handle, const BufferHandle *pem_data)
 Add a certificate from PEM format.
 
error_type CALLING_CONVENTION TrustedCertificateStore_AddCertificateFromDER (TrustedCertificateStoreHandle *handle, const BufferHandle *der_data)
 Add a certificate from DER format.
 
error_type CALLING_CONVENTION TrustedCertificateStore_LoadFromDirectory (TrustedCertificateStoreHandle *handle, string_type directory_path)
 Load certificates from directory (e.g., /etc/ssl/certs)
 
error_type CALLING_CONVENTION TrustedCertificateStore_LoadSystemDefaults (TrustedCertificateStoreHandle *handle)
 Load system default trusted certificates.
 
error_type CALLING_CONVENTION TrustedCertificateStore_Release (TrustedCertificateStoreHandle *handle)
 Decrement the internal reference counter.
 

Additional Inherited Members

- Public Member Functions inherited from IUnknownHandle
error_type CALLING_CONVENTION IUnknown_AddRef (IUnknownHandle *handle)
 Increment the internal reference counter.
 

Detailed Description

Collection of trusted certificates for signature verification.

Examples
verify.c.

Friends And Related Symbol Documentation

◆ TrustedCertificateStore_AddCertificateFromPEM()

error_type CALLING_CONVENTION TrustedCertificateStore_AddCertificateFromPEM ( TrustedCertificateStoreHandle handle,
const BufferHandle pem_data 
)
related

Add a certificate from PEM format.

Parameters
handleThe certificate store
pem_dataPEM-encoded certificate data (null-terminated UTF-8 string)

◆ TrustedCertificateStore_AddCertificateFromDER()

error_type CALLING_CONVENTION TrustedCertificateStore_AddCertificateFromDER ( TrustedCertificateStoreHandle handle,
const BufferHandle der_data 
)
related

Add a certificate from DER format.

Parameters
handleThe certificate store
der_dataDER-encoded certificate data

◆ TrustedCertificateStore_LoadFromDirectory()

error_type CALLING_CONVENTION TrustedCertificateStore_LoadFromDirectory ( TrustedCertificateStoreHandle handle,
string_type  directory_path 
)
related

Load certificates from directory (e.g., /etc/ssl/certs)

Parameters
handleThe certificate store
directory_pathPath to directory containing certificates (UTF-8 encoded)

◆ TrustedCertificateStore_LoadSystemDefaults()

error_type CALLING_CONVENTION TrustedCertificateStore_LoadSystemDefaults ( TrustedCertificateStoreHandle handle)
related

Load system default trusted certificates.

Parameters
handleThe certificate store

On Windows: Uses Windows Certificate Store On Linux/macOS: Uses OpenSSL default paths

◆ TrustedCertificateStore_Release()

error_type CALLING_CONVENTION TrustedCertificateStore_Release ( TrustedCertificateStoreHandle handle)
related

Decrement the internal reference counter.

When the internal counter reaches zero the object is deleted. Releasing already disposed object causes undefined behavior.

See also
IUnknown_Release

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