You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
765 B
38 lines
765 B
|
|
#ifndef _ENGINE_SCT_H_ |
|
#define _ENGINE_SCT_H_ |
|
|
|
#include <openssl/crypto.h> |
|
#include <openssl/objects.h> |
|
|
|
#if defined(_MSC_VER) |
|
// Zero-sized array |
|
#pragma warning(disable: 4200) |
|
#endif |
|
|
|
/* |
|
* Parameter structure to be passed to the engine call "LOAD_CERT_CTRL" |
|
*/ |
|
|
|
struct load_cert_params |
|
{ |
|
const char* s_token_cert_id; // in |
|
X509* cert; // out |
|
}; |
|
|
|
struct enum_cert_s |
|
{ |
|
const char* id; // ID which can be passed as key ID for crypto operations |
|
const char* name; // Alternatively one can use the name, provided it's unique for the token. |
|
X509* cert; // Decoded certificate |
|
}; |
|
|
|
struct enum_certs_s |
|
{ |
|
unsigned int num_certs; // Number of certificates present |
|
enum_cert_s certificate[]; // Array of identifiers and certificates |
|
}; |
|
|
|
|
|
#endif |
|
|
|
|