66#ifndef __PKCS11H_ENGINES_H
67#define __PKCS11H_ENGINES_H
75#if defined(__cplusplus)
89 void *(*malloc) (
size_t size);
132 IN
void *
const global_data
141 IN
void *
const global_data
153 IN
void *
const global_data,
154 IN
const unsigned char *
const blob,
155 IN
const size_t blob_size,
156 OUT time_t *
const expiration
169 IN
void *
const global_data,
170 IN
const unsigned char *
const blob,
171 IN
const size_t blob_size,
173 IN
const size_t dn_max
186 IN
void *
const global_data,
187 IN
const unsigned char *
const issuer_blob,
188 IN
const size_t issuer_blob_size,
189 IN
const unsigned char *
const cert_blob,
190 IN
const size_t cert_blob_size
201#define PKCS11H_ENGINE_CRYPTO_AUTO ((pkcs11h_engine_crypto_t *)0)
203#define PKCS11H_ENGINE_CRYPTO_OPENSSL ((pkcs11h_engine_crypto_t *)1)
205#define PKCS11H_ENGINE_CRYPTO_GNUTLS ((pkcs11h_engine_crypto_t *)2)
207#define PKCS11H_ENGINE_CRYPTO_CRYPTOAPI ((pkcs11h_engine_crypto_t *)3)
212#define PKCS11H_ENGINE_CRYPTO_WIN32 ((pkcs11h_engine_crypto_t *)3)
214#define PKCS11H_ENGINE_CRYPTO_NSS ((pkcs11h_engine_crypto_t *)4)
216#define PKCS11H_ENGINE_CRYPTO_POLARSSL ((pkcs11h_engine_crypto_t *)5)
218#define PKCS11H_ENGINE_CRYPTO_MBEDTLS ((pkcs11h_engine_crypto_t *)5)
220#define PKCS11H_ENGINE_CRYPTO_GPL ((pkcs11h_engine_crypto_t *)10)
CK_RV pkcs11h_engine_setCrypto(IN const pkcs11h_engine_crypto_t *const engine)
Set crypto engine to be used.
struct pkcs11h_sys_engine_s pkcs11h_engine_system_t
System engine.
CK_RV pkcs11h_engine_setSystem(IN const pkcs11h_engine_system_t *const engine)
Set system engine to be used.
struct pkcs11h_crypto_engine_s pkcs11h_engine_crypto_t
Crypto engine.
pkcs11-helper core definitions.
Crypto engine.
Definition pkcs11h-engines.h:123
int(* certificate_get_dn)(IN void *const global_data, IN const unsigned char *const blob, IN const size_t blob_size, OUT char *const dn, IN const size_t dn_max)
Get certificate distinguished name.
Definition pkcs11h-engines.h:168
int(* initialize)(IN void *const global_data)
Initialize engine.
Definition pkcs11h-engines.h:131
int(* certificate_get_expiration)(IN void *const global_data, IN const unsigned char *const blob, IN const size_t blob_size, OUT time_t *const expiration)
Get exportation date out of certificate.
Definition pkcs11h-engines.h:152
int(* uninitialize)(IN void *const global_data)
Uninitialize engine.
Definition pkcs11h-engines.h:140
int(* certificate_is_issuer)(IN void *const global_data, IN const unsigned char *const issuer_blob, IN const size_t issuer_blob_size, IN const unsigned char *const cert_blob, IN const size_t cert_blob_size)
Determine if one certificate is an issuer of another.
Definition pkcs11h-engines.h:185
System engine.
Definition pkcs11h-engines.h:82
int(* gettimeofday)(struct timeval *tv)
gettimeofday provider (unix).
Definition pkcs11h-engines.h:116
void(* usleep)(unsigned long usec)
usleep provider.
Definition pkcs11h-engines.h:107
time_t(* time)(void)
time provider.
Definition pkcs11h-engines.h:101
void(* free)(void *ptr)
free provider.
Definition pkcs11h-engines.h:95