QSTP common includes and definitions.
#define QSTP_EXPORT_API
The api export prefix.
Definition common.h:99
#define QSTP_CERTIFICATE_ISSUER_SIZE
The maximum length of the certificate issuer string (including terminator).
Definition qstp.h:488
qstp_errors
The QSTP error values.
Definition qstp.h:875
QSTP_EXPORT_API qstp_errors qstp_root_certificate_revoke(const uint8_t *rootkey, const uint8_t *serial, const qsc_ipinfo_ipv4_address *address)
Send a certificate revocation request to a client.
QSTP_EXPORT_API bool qstp_root_sign_certificate(const char *fpath, const qstp_root_certificate *root, const uint8_t *rootkey)
Sign a child certificate.
Definition root.c:128
QSTP_EXPORT_API void qstp_root_key_generate(qstp_root_signature_key *kset, const char issuer[QSTP_CERTIFICATE_ISSUER_SIZE], uint32_t exp)
Generate a new root key.
Definition root.c:52
QSTP_EXPORT_API void qstp_root_certificate_print(const qstp_root_certificate *root)
Print the root certificate.
Definition root.c:76
QSTP_EXPORT_API bool qstp_root_certificate_export(const qstp_root_certificate *root, const char *fpath)
Export the root certificate to a file.
Definition root.c:19
QSTP_EXPORT_API void qstp_root_server_certificate_print(const qstp_server_certificate *cert)
Print a server certificate.
Definition root.c:102
The root certificate structure.
Definition qstp.h:1031
The QSTP root key structure.
Definition qstp.h:1048
The server certificate structure.
Definition qstp.h:994