| Functions | |
| int | CST_set_default (CST *st, const cst_t_seqnum certID) | 
| X509 * | CST_default_cert (CST *st, const char *email) | 
| cst_t_seqnum | CST_default_cert_id (CST *st, const char *email) | 
| int | CST_is_default (CST *st, const cst_t_seqnum certID) | 
| int | CST_assign (CST *st, const cst_t_seqnum certID, const cst_t_seqnum keyID, unsigned char *password) | 
| EVP_PKEY * | CST_get_priv_key_by_UID (CST *st, X509_NAME *issuer, ASN1_INTEGER *serial, unsigned char *password) | 
| EVP_PKEY * | CST_get_priv_key (CST *st, X509 *cert, unsigned char *password) | 
| cst_t_seqnum | CST_get_assigned_key (CST *st, const cst_t_seqnum certID) | 
| EVP_PKEY * | CST_get_priv_key_default (CST *st, char *email, unsigned char *password) | 
| int CST_assign | ( | CST * | st, | |
| const cst_t_seqnum | certID, | |||
| const cst_t_seqnum | keyID, | |||
| unsigned char * | password | |||
| ) | 
Assign private key with certificate
| st | Storage structure | |
| certID | Certificate | |
| keyID | Private key | |
| password | Password, need for test correct assign | 
| X509* CST_default_cert | ( | CST * | st, | |
| const char * | ||||
| ) | 
Get default certificate by email
| st | Pointer to storage structure | |
| cst_t_seqnum CST_default_cert_id | ( | CST * | st, | |
| const char * | ||||
| ) | 
Get default certificate ID by email
| st | Pointer to storage structure | |
| cst_t_seqnum CST_get_assigned_key | ( | CST * | st, | |
| const cst_t_seqnum | certID | |||
| ) | 
Get private key by his ID
| st | Pointer to storage structure | |
| certID | certID | 
| EVP_PKEY* CST_get_priv_key | ( | CST * | st, | |
| X509 * | cert, | |||
| unsigned char * | password | |||
| ) | 
Get private key by certificate
| st | Pointer to storage structure | |
| cert | Pointer to cert | |
| password | Password | 
| EVP_PKEY* CST_get_priv_key_by_UID | ( | CST * | st, | |
| X509_NAME * | issuer, | |||
| ASN1_INTEGER * | serial, | |||
| unsigned char * | password | |||
| ) | 
Get private key by certificate UID
| st | Pointer to storage structure | |
| issuer | Distinguished name of issuer | |
| serial | Serial number | |
| password | Password | 
| EVP_PKEY* CST_get_priv_key_default | ( | CST * | st, | |
| char * | email, | |||
| unsigned char * | password | |||
| ) | 
Get private key for default certificate
| st | Pointer to storage structure | |
| password | Password | 
| int CST_is_default | ( | CST * | st, | |
| const cst_t_seqnum | certID | |||
| ) | 
Default or not certificate by UID
| st | Pointer to storage structure | |
| certID | Certificate id | 
| int CST_set_default | ( | CST * | st, | |
| const cst_t_seqnum | certID | |||
| ) | 
Set default certificate by unique ID (UID) (issuer + serial) for email of certificate.
| st | Pointer to storage structure | |
| certID | Certificate ID | 
 1.5.1
 1.5.1