348 #define KSI_CTX_PUBFILE_CACHE_DEFAULT_TTL (8 * 60 * 60)
350 #define KSI_CTX_HA_MAX_SUBSERVICES 3
552 #define KSI_sendSignRequest(ctx, request, handle) KSI_sendAggregatorRequest(ctx, request, handle)
564 #define KSI_sendExtendRequest(ctx, request, handle) KSI_sendExtenderRequest(ctx, request, handle)
663 #define KSI_extendSignature(ctx, sig, extended) KSI_extendSignatureWithPolicy(ctx, sig, KSI_VERIFICATION_POLICY_INTERNAL, NULL, extended)
738 #define KSI_CTX_setAggregatorHmacAlgorithm(ctx, alg_id) KSI_CTX_setOption(ctx, KSI_OPT_AGGR_HMAC_ALGORITHM, (void*)(alg_id))
739 #define KSI_CTX_setExtenderHmacAlgorithm(ctx, alg_id) KSI_CTX_setOption(ctx, KSI_OPT_EXT_HMAC_ALGORITHM, (void*)(alg_id))
745 #define KSI_CTX_FLAG_AGGR_PDU_VER KSI_OPT_AGGR_PDU_VER
746 #define KSI_CTX_FLAG_EXT_PDU_VER KSI_OPT_EXT_PDU_VER
747 #define KSI_CtxFlag KSI_Option_en
748 #define KSI_CTX_setFlag(ctx, flag, param) KSI_CTX_setOption((ctx), (flag), (param))
792 #define KSI_CERT_EMAIL "1.2.840.113549.1.9.1"
793 #define KSI_CERT_COMMON_NAME "2.5.4.3"
794 #define KSI_CERT_COUNTRY "2.5.4.6"
795 #define KSI_CERT_ORGANIZATION "2.5.4.10"
int KSI_receiveAggregatorConfig(KSI_CTX *ctx, KSI_Config **config)
enum KSI_Option_en KSI_Option
const KSI_Policy * KSI_VERIFICATION_POLICY_EMPTY
int KSI_CTX_getPublicationsFile(KSI_CTX *ctx, KSI_PublicationsFile **var)
int KSI_CTX_setRequestHeaderCallback(KSI_CTX *ctx, KSI_RequestHeaderCallback cb)
const char * KSI_getVersion(void)
int KSI_sendAggregatorRequest(KSI_CTX *ctx, KSI_AggregationReq *request, KSI_RequestHandle **handle)
char * KSI_ERR_toString(KSI_CTX *ctx, char *buf, size_t buf_len)
int KSI_CTX_getPKITruststore(KSI_CTX *ctx, KSI_PKITruststore **pki)
int KSI_CTX_registerGlobals(KSI_CTX *ctx, int(*initFn)(void), void(*cleanupFn)(void))
int KSI_CTX_setConnectionTimeoutSeconds(KSI_CTX *ctx, int timeout)
struct KSI_PublicationsFile_st KSI_PublicationsFile
Definition: publicationsfile.h:45
KSI_StatusCode
Definition: ksi.h:47
struct KSI_NetHandle_st KSI_RequestHandle
Definition: types.h:115
int KSI_sendPublicationRequest(KSI_CTX *ctx, const unsigned char *request, size_t request_length, KSI_RequestHandle **handle)
int KSI_CTX_setTransferTimeoutSeconds(KSI_CTX *ctx, int timeout)
int KSI_verifySignature(KSI_CTX *ctx, KSI_Signature *sig)
void KSI_CTX_free(KSI_CTX *ctx)
int KSI_extendSignatureWithPolicy(KSI_CTX *ctx, const KSI_Signature *sig, const KSI_Policy *policy, KSI_VerificationContext *context, KSI_Signature **extended)
const char * KSI_getErrorString(int statusCode)
int KSI_CTX_setAggregator(KSI_CTX *ctx, const char *uri, const char *loginId, const char *key)
struct KSI_ExtendReq_st KSI_ExtendReq
Definition: types.h:54
int KSI_verifyPublicationsFile(KSI_CTX *ctx, const KSI_PublicationsFile *pubFile)
void * KSI_malloc(size_t size)
#define KSI_CERT_EMAIL
Definition: ksi.h:792
int KSI_CTX_getPublicationCertEmail(KSI_CTX *ctx, const char **address)
int KSI_sendExtenderRequest(KSI_CTX *ctx, KSI_ExtendReq *request, KSI_RequestHandle **handle)
struct KSI_DataHash_st KSI_DataHash
Definition: hash.h:52
int KSI_ERR_statusDump(KSI_CTX *ctx, FILE *f)
struct KSI_AggregationReq_st KSI_AggregationReq
Definition: types.h:51
int KSI_CTX_setPublicationCertEmail(KSI_CTX *ctx, const char *email)
int(* KSI_RequestHeaderCallback)(KSI_Header *hdr)
Definition: types.h:83
int KSI_CTX_setNetworkProvider(KSI_CTX *ctx, KSI_NetworkClient *net)
int KSI_CTX_new(KSI_CTX **ctx)
#define KSI_FN_DEPRECATED(decl, comment)
Definition: common.h:50
void * KSI_calloc(size_t num, size_t size)
struct KSI_Config_st KSI_Config
Definition: types.h:50
int KSI_CTX_setOption(KSI_CTX *ctx, KSI_Option opt, void *param)
int KSI_CTX_setLogLevel(KSI_CTX *ctx, int level)
int KSI_CTX_setExtender(KSI_CTX *ctx, const char *uri, const char *loginId, const char *key)
struct KSI_Signature_st KSI_Signature
Definition: types.h:67
int KSI_CTX_setLoggerCallback(KSI_CTX *ctx, KSI_LoggerCallback cb, void *logCtx)
KSI_PDUver_en
Definition: ksi.h:343
int KSI_CTX_setPublicationsFile(KSI_CTX *ctx, KSI_PublicationsFile *var)
struct KSI_Policy_st KSI_Policy
Definition: types.h:70
int KSI_createSignature(KSI_CTX *ctx, KSI_DataHash *dataHash, KSI_Signature **sig)
KSI_Option_en
Definition: ksi.h:360
int KSI_ERR_getBaseErrorMessage(KSI_CTX *ctx, char *buf, size_t len, int *error, int *ext)
struct KSI_CTX_st KSI_CTX
Definition: types_base.h:124
int KSI_receivePublicationsFile(KSI_CTX *ctx, KSI_PublicationsFile **pubFile)
int KSI_CTX_setDefaultPubFileCertConstraints(KSI_CTX *ctx, const KSI_CertConstraint *arr)
struct KSI_PKITruststore_st KSI_PKITruststore
Definition: types.h:103
int(* KSI_Config_Callback)(KSI_CTX *ctx, KSI_Config *conf)
Definition: ksi.h:358
struct KSI_NetworkClient_st KSI_NetworkClient
Definition: types.h:121
int KSI_CTX_getLastFailedSignature(KSI_CTX *ctx, KSI_Signature **lastFailedSignature)
int KSI_receiveExtenderConfig(KSI_CTX *ctx, KSI_Config **config)
int KSI_verifyDataHash(KSI_CTX *ctx, KSI_Signature *sig, const KSI_DataHash *hsh)
int KSI_CTX_setPublicationUrl(KSI_CTX *ctx, const char *uri)
int KSI_CTX_setPKITruststore(KSI_CTX *ctx, KSI_PKITruststore *pki)
int(* KSI_LoggerCallback)(void *logCtx, int level, const char *message)
Definition: types_base.h:115