poser
A C framework for POsix SERvices
|
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. | |
Metadata of an X.509 certificate.
This class holds some information about a certificate, used for custom validation logic.
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.
self | the PSC_CertInfo |
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.
self | the PSC_CertInfo |
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!
self | the PSC_CertInfo |