20 #ifndef KSI_TRUSTSTORE_H_
21 #define KSI_TRUSTSTORE_H_
int KSI_PKITruststore_new(KSI_CTX *ctx, int setDefaults, KSI_PKITruststore **store)
#define KSI_uint64_t
Definition: types_base.h:105
struct KSI_PKISignature_st KSI_PKISignature
Definition: types.h:98
#define KSI_DEFINE_FN_TO_TLV(typ)
Definition: types_base.h:41
int KSI_PKISignature_new(KSI_CTX *ctx, const void *raw, size_t raw_len, KSI_PKISignature **signature)
int KSI_PKISignature_extractCertificate(const KSI_PKISignature *signature, KSI_PKICertificate **cert)
#define KSI_DEFINE_FN_FROM_TLV(typ)
Definition: types_base.h:30
int KSI_PKITruststore_verifyRawSignature(KSI_CTX *ctx, const unsigned char *data, size_t data_len, const char *algoOid, const unsigned char *signature, size_t signature_len, const KSI_PKICertificate *cert)
int KSI_PKICertificate_getValidityNotBefore(const KSI_PKICertificate *cert, KSI_uint64_t *time)
int KSI_PKISignature_serialize(const KSI_PKISignature *sig, unsigned char **raw, size_t *raw_len)
#define KSI_FN_DEPRECATED(decl, comment)
Definition: common.h:50
char * KSI_PKICertificate_toString(const KSI_PKICertificate *cert, char *buf, size_t buf_len)
int KSI_PKITruststore_verifySignature(KSI_PKITruststore *pki, const unsigned char *data, size_t data_len, const KSI_PKISignature *signature)
int KSI_PKICertificate_serialize(const KSI_PKICertificate *cert, unsigned char **raw, size_t *raw_len)
int KSI_PKITruststore_addLookupFile(const KSI_PKITruststore *store, const char *path)
void KSI_PKICertificate_free(KSI_PKICertificate *cert)
struct KSI_CTX_st KSI_CTX
Definition: types_base.h:124
int KSI_PKITruststore_addLookupDir(const KSI_PKITruststore *store, const char *path)
struct KSI_PKICertificate_st KSI_PKICertificate
Definition: types.h:93
void KSI_PKISignature_free(KSI_PKISignature *sig)
int KSI_PKITruststore_registerGlobals(KSI_CTX *ctx)
struct KSI_PKITruststore_st KSI_PKITruststore
Definition: types.h:103
int KSI_PKICertificate_new(KSI_CTX *ctx, const void *der, size_t der_len, KSI_PKICertificate **cert)
void KSI_PKITruststore_free(KSI_PKITruststore *store)
int KSI_PKITruststore_verifyPKISignature(const KSI_PKITruststore *pki, const unsigned char *data, size_t data_len, const KSI_PKISignature *signature, KSI_CertConstraint *certConstraints)
int KSI_PKICertificate_getValidityNotAfter(const KSI_PKICertificate *cert, KSI_uint64_t *time)