66 #ifndef __PKCS11H_ENGINES_H 67 #define __PKCS11H_ENGINES_H 75 #if defined(__cplusplus) 89 void *(*malloc) (
size_t size);
116 int (*gettimeofday) (
struct timeval *tv);
132 IN
void *
const global_data
140 int (*uninitialize) (
141 IN
void *
const global_data
152 int (*certificate_get_expiration) (
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
168 int (*certificate_get_dn) (
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
185 int (*certificate_is_issuer) (
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) int(* gettimeofday)(struct timeval *tv)
gettimeofday provider (unix).
Definition: pkcs11h-engines.h:116
CK_RV pkcs11h_engine_setSystem(IN const pkcs11h_engine_system_t *const engine)
Set system engine to be used.
void(* free)(void *ptr)
free provider.
Definition: pkcs11h-engines.h:95
struct pkcs11h_sys_engine_s pkcs11h_engine_system_t
System engine.
time_t(* time)(void)
time provider.
Definition: pkcs11h-engines.h:101
System engine.
Definition: pkcs11h-engines.h:82
CK_RV pkcs11h_engine_setCrypto(IN const pkcs11h_engine_crypto_t *const engine)
Set crypto engine to be used.
void(* usleep)(unsigned long usec)
usleep provider.
Definition: pkcs11h-engines.h:107
struct pkcs11h_crypto_engine_s pkcs11h_engine_crypto_t
Crypto engine.
Crypto engine.
Definition: pkcs11h-engines.h:123
pkcs11-helper core definitions.