Guardtime KSI c SDK
Functions
pkitruststore.h File Reference
#include "types.h"

Go to the source code of this file.

Functions

int KSI_PKITruststore_registerGlobals (KSI_CTX *ctx)
 
int KSI_PKITruststore_new (KSI_CTX *ctx, int setDefaults, KSI_PKITruststore **store)
 
void KSI_PKITruststore_free (KSI_PKITruststore *store)
 
int KSI_PKICertificate_new (KSI_CTX *ctx, const void *der, size_t der_len, KSI_PKICertificate **cert)
 
void KSI_PKICertificate_free (KSI_PKICertificate *cert)
 
int KSI_PKICertificate_fromTlv (KSI_TLV *tlv, KSI_PKICertificate **o)
 
int KSI_PKICertificate_toTlv (KSI_CTX *ctx, const KSI_PKICertificate *o, unsigned tag, int isNonCritical, int isForward, KSI_TLV **tlv)
 
int KSI_PKICertificate_serialize (const KSI_PKICertificate *cert, unsigned char **raw, size_t *raw_len)
 
int KSI_PKISignature_new (KSI_CTX *ctx, const void *raw, size_t raw_len, KSI_PKISignature **signature)
 
void KSI_PKISignature_free (KSI_PKISignature *sig)
 
int KSI_PKISignature_extractCertificate (const KSI_PKISignature *signature, KSI_PKICertificate **cert)
 
int KSI_PKISignature_serialize (const KSI_PKISignature *sig, unsigned char **raw, size_t *raw_len)
 
int KSI_PKISignature_fromTlv (KSI_TLV *tlv, KSI_PKISignature **o)
 
int KSI_PKISignature_toTlv (KSI_CTX *ctx, const KSI_PKISignature *o, unsigned tag, int isNonCritical, int isForward, KSI_TLV **tlv)
 
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_PKITruststore_verifySignature (KSI_PKITruststore *pki, const unsigned char *data, size_t data_len, const KSI_PKISignature *signature)
 
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_PKITruststore_addLookupFile (const KSI_PKITruststore *store, const char *path)
 
int KSI_PKITruststore_addLookupDir (const KSI_PKITruststore *store, const char *path)
 
char * KSI_PKICertificate_toString (const KSI_PKICertificate *cert, char *buf, size_t buf_len)
 
int KSI_PKICertificate_getValidityNotBefore (const KSI_PKICertificate *cert, KSI_uint64_t *time)
 
int KSI_PKICertificate_getValidityNotAfter (const KSI_PKICertificate *cert, KSI_uint64_t *time)