|
| #define | KSI_PDU_VERSION_1 1 |
| |
| #define | KSI_PDU_VERSION_2 2 |
| |
| #define | KSI_CTX_PUBFILE_CACHE_DEFAULT_TTL (8 * 60 * 60) |
| |
| #define | KSI_sendSignRequest(ctx, request, handle) KSI_sendAggregatorRequest(ctx, request, handle) |
| |
| #define | KSI_sendExtendRequest(ctx, request, handle) KSI_sendExtenderRequest(ctx, request, handle) |
| |
| #define | KSI_extendSignature(ctx, sig, extended) KSI_extendSignatureWithPolicy(ctx, sig, KSI_VERIFICATION_POLICY_INTERNAL, NULL, extended) |
| |
| #define | KSI_CTX_setAggregatorHmacAlgorithm(ctx, alg_id) KSI_CTX_setOption(ctx, KSI_OPT_AGGR_HMAC_ALGORITHM, (void*)(alg_id)) |
| |
| #define | KSI_CTX_setExtenderHmacAlgorithm(ctx, alg_id) KSI_CTX_setOption(ctx, KSI_OPT_EXT_HMAC_ALGORITHM, (void*)(alg_id)) |
| |
| #define | KSI_CTX_FLAG_AGGR_PDU_VER KSI_OPT_AGGR_PDU_VER |
| |
| #define | KSI_CTX_FLAG_EXT_PDU_VER KSI_OPT_EXT_PDU_VER |
| |
| #define | KSI_CtxFlag KSI_Option_en |
| |
| #define | KSI_CTX_setFlag(ctx, flag, param) KSI_CTX_setOption((ctx), (flag), (param)) |
| |
| #define | KSI_CERT_EMAIL "1.2.840.113549.1.9.1" |
| |
| #define | KSI_CERT_COMMON_NAME "2.5.4.3" |
| |
| #define | KSI_CERT_COUNTRY "2.5.4.6" |
| |
| #define | KSI_CERT_ORGANIZATION "2.5.4.10" |
| |
|
| const char * | KSI_getVersion (void) |
| |
| const char * | KSI_getErrorString (int statusCode) |
| |
| int | KSI_CTX_new (KSI_CTX **ctx) |
| |
| void | KSI_CTX_free (KSI_CTX *ctx) |
| |
| int | KSI_CTX_registerGlobals (KSI_CTX *ctx, int(*initFn)(void), void(*cleanupFn)(void)) |
| |
| int | KSI_ERR_statusDump (KSI_CTX *ctx, FILE *f) |
| |
| char * | KSI_ERR_toString (KSI_CTX *ctx, char *buf, size_t buf_len) |
| |
| int | KSI_ERR_getBaseErrorMessage (KSI_CTX *ctx, char *buf, size_t len, int *error, int *ext) |
| |
| void * | KSI_malloc (size_t size) |
| |
| void * | KSI_calloc (size_t num, size_t size) |
| |
| void | KSI_free (void *ptr) |
| |
| int | KSI_sendAggregatorRequest (KSI_CTX *ctx, KSI_AggregationReq *request, KSI_RequestHandle **handle) |
| |
| int | KSI_sendExtenderRequest (KSI_CTX *ctx, KSI_ExtendReq *request, KSI_RequestHandle **handle) |
| |
| int | KSI_sendPublicationRequest (KSI_CTX *ctx, const unsigned char *request, size_t request_length, KSI_RequestHandle **handle) |
| |
| int | KSI_receivePublicationsFile (KSI_CTX *ctx, KSI_PublicationsFile **pubFile) |
| |
| int | KSI_verifyPublicationsFile (KSI_CTX *ctx, const KSI_PublicationsFile *pubFile) |
| |
| int | KSI_receiveAggregatorConfig (KSI_CTX *ctx, KSI_Config **config) |
| |
| int | KSI_receiveExtenderConfig (KSI_CTX *ctx, KSI_Config **config) |
| |
| int | KSI_verifySignature (KSI_CTX *ctx, KSI_Signature *sig) |
| |
| int | KSI_verifyDataHash (KSI_CTX *ctx, KSI_Signature *sig, const KSI_DataHash *hsh) |
| |
| int | KSI_createSignature (KSI_CTX *ctx, KSI_DataHash *dataHash, KSI_Signature **sig) |
| |
| int | KSI_extendSignatureWithPolicy (KSI_CTX *ctx, const KSI_Signature *sig, const KSI_Policy *policy, KSI_VerificationContext *context, KSI_Signature **extended) |
| |
| int | KSI_CTX_setLogLevel (KSI_CTX *ctx, int level) |
| |
| int | KSI_CTX_setLoggerCallback (KSI_CTX *ctx, KSI_LoggerCallback cb, void *logCtx) |
| |
| int | KSI_CTX_setRequestHeaderCallback (KSI_CTX *ctx, KSI_RequestHeaderCallback cb) |
| |
| int | KSI_CTX_setPublicationUrl (KSI_CTX *ctx, const char *uri) |
| |
| int | KSI_CTX_setExtender (KSI_CTX *ctx, const char *uri, const char *loginId, const char *key) |
| |
| int | KSI_CTX_setAggregator (KSI_CTX *ctx, const char *uri, const char *loginId, const char *key) |
| |
| int | KSI_CTX_setOption (KSI_CTX *ctx, KSI_Option opt, void *param) |
| |
| int | KSI_CTX_setTransferTimeoutSeconds (KSI_CTX *ctx, int timeout) |
| |
| int | KSI_CTX_setConnectionTimeoutSeconds (KSI_CTX *ctx, int timeout) |
| |
| int | KSI_CTX_setPublicationsFile (KSI_CTX *ctx, KSI_PublicationsFile *var) |
| |
| int | KSI_CTX_setPKITruststore (KSI_CTX *ctx, KSI_PKITruststore *pki) |
| |
| int | KSI_CTX_setNetworkProvider (KSI_CTX *ctx, KSI_NetworkClient *net) |
| |
| int | KSI_CTX_setPublicationCertEmail (KSI_CTX *ctx, const char *email) |
| |
| int | KSI_CTX_setDefaultPubFileCertConstraints (KSI_CTX *ctx, const KSI_CertConstraint *arr) |
| |
| int | KSI_CTX_getPKITruststore (KSI_CTX *ctx, KSI_PKITruststore **pki) |
| |
| int | KSI_CTX_getPublicationsFile (KSI_CTX *ctx, KSI_PublicationsFile **var) |
| |
| int | KSI_CTX_getPublicationCertEmail (KSI_CTX *ctx, const char **address) |
| |
| int | KSI_CTX_getLastFailedSignature (KSI_CTX *ctx, KSI_Signature **lastFailedSignature) |
| |