poser
A C framework for POsix SERvices
Loading...
Searching...
No Matches
PSC_CertInfo Class Reference

Metadata of an X.509 certificate. More...

#include <poser/core/certinfo.h>

Public Member Functions

const uint8_t * PSC_CertInfo_fingerprint (const PSC_CertInfo *self)
 Fingerprint of the certificate.
 
const char * PSC_CertInfo_fingerprintStr (const PSC_CertInfo *self)
 Fingerprint string of the certificate.
 
const char * PSC_CertInfo_subject (const PSC_CertInfo *self)
 Subject name of the certificate.
 

Detailed Description

Metadata of an X.509 certificate.

This class holds some information about a certificate, used for custom validation logic.

Member Function Documentation

◆ PSC_CertInfo_fingerprint()

const uint8_t * PSC_CertInfo_fingerprint ( const PSC_CertInfo self)

Fingerprint of the certificate.

The fingerprint of the certificate in SHA512 format. The size will be 64 bytes.

Parameters
selfthe PSC_CertInfo
Returns
pointer to the fingerprint

◆ PSC_CertInfo_fingerprintStr()

const char * PSC_CertInfo_fingerprintStr ( const PSC_CertInfo self)

Fingerprint string of the certificate.

The fingerprint of the certificate in SHA512 format as a hex str.

Parameters
selfthe PSC_CertInfo
Returns
the fingerprint as string

◆ PSC_CertInfo_subject()

const char * PSC_CertInfo_subject ( const PSC_CertInfo self)

Subject name of the certificate.

The certificate's subject name. Warning: Don't use this for your custom validation logic unless you also validate the issuing CA, otherwise it would be inherently insecure!

Parameters
selfthe PSC_CertInfo
Returns
the subject name

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