Functions | |
void | CST_import_PKCS12 (CST *st, FILE *file, cst_pkcs12_confirm_cb confirm_cb, cst_pkcs12_error_cb error_cb, unsigned char *password, void *user_data, GError **error) |
int | CST_import_cert (CST *st, FILE *file, unsigned char *password) |
int | CST_import_cert_DER (CST *st, FILE *file) |
int | CST_import_cert_f (CST *st, FILE *file, unsigned char *password, const cst_t_cert_folder folder) |
int | CST_import_cert_f_DER (CST *st, FILE *file, const cst_t_cert_folder folder) |
cst_t_seqnum | CST_import_cert_adv (CST *st, FILE *file, const cst_t_cert_folder folder, GError **error) |
cst_t_seqnum | CST_import_cert_adv_DER (CST *st, FILE *file, const cst_t_cert_folder folder, GError **error) |
int | CST_export_all (CST *st, FILE *file, const cst_t_cert_folder folder) |
int | CST_export_all_DER (CST *st, FILE *file, const cst_t_cert_folder folder) |
int | CST_export_cert (CST *st, X509 *cert, FILE *file) |
int | CST_export_cert_DER (CST *st, X509 *cert, FILE *file) |
int | CST_export_cert_by_id (CST *st, const cst_t_seqnum certID, FILE *file) |
int | CST_export_cert_by_id_DER (CST *st, const cst_t_seqnum certID, FILE *file) |
int | CST_import_priv_key (CST *st, X509_NAME *account, FILE *file, unsigned char *inpass, unsigned char *outpass) |
int | CST_import_priv_key_DER (CST *st, X509_NAME *account, FILE *file, unsigned char *outpass) |
cst_t_seqnum | CST_import_priv_key_adv (CST *st, X509_NAME *account, FILE *file, unsigned char *inpass, unsigned char *outpass, GError **error) |
cst_t_seqnum | CST_import_priv_key_adv_DER (CST *st, X509_NAME *account, FILE *file, unsigned char *outpass, GError **error) |
int | CST_export_priv_key (CST *st, EVP_PKEY *key, FILE *file, unsigned char *password) |
int | CST_export_priv_key_DER (CST *st, EVP_PKEY *key, FILE *file, unsigned char *password) |
int | CST_import_pub_key (CST *st, X509_NAME *account, FILE *file) |
int | CST_import_pub_key_DER (CST *st, X509_NAME *account, FILE *file) |
cst_t_seqnum | CST_import_pub_key_adv (CST *st, X509_NAME *account, FILE *file, GError **error) |
cst_t_seqnum | CST_import_pub_key_adv_DER (CST *st, X509_NAME *account, FILE *file, GError **error) |
int | CST_export_all_pub_key (CST *st, X509_NAME *account, FILE *file) |
int | CST_export_all_pub_key_DER (CST *st, X509_NAME *account, FILE *file) |
int | CST_export_pub_key (CST *st, EVP_PKEY *key, FILE *file) |
int | CST_export_pub_key_DER (CST *st, EVP_PKEY *key, FILE *file) |
|
Export all certificates to the file (PEM format).
|
|
Export all certificates to the file (DER format).
|
|
Export all public keys with given account to file (PEM format)
|
|
Export all public keys with given account to file (DER format)
|
|
Export selected certificate to the file (PEM format)
|
|
Export selected certificate (by certID) to the file (PEM format)
|
|
Export selected certificate (by certID) to the file (DER format)
|
|
Export selected certificate to the file (DER format)
|
|
Export private key with given account to file (PEM format)
|
|
Export private key with given account to file (DER format)
|
|
Export public key with given account to file (PEM format)
|
|
Export public key with given account to file (DER format)
|
|
Import certificate from the file (PEM format).
CST_ERROR_NOT_FOUND - certificate not found in file or format incorrect CST_ERROR_DBSTRUCTURE_CORRUPT - db-file structure corrupt CST_ERROR_IO - I/O error CST_ERROR_NOSPC - no space left on device |
|
Import certificate from the file and set folder (PEM format). If folder incorrect cert placed in default folder (CST_FOLDER_UNKNOWN) and error returned.
|
|
Import all certificates from the file and set folder (DER format). If folder incorrect cert placed in default folder (CST_FOLDER_UNKNOWN) and error returned.
|
|
Import certificate from the file (DER format).
|
|
Import certificate from the file and set folder (PEM format). If folder incorrect cert placed in default folder (CST_FOLDER_UNKNOWN) and error returned.
|
|
Import certificate from the file and set folder (DER format). If folder incorrect cert placed in default folder (CST_FOLDER_UNKNOWN) and error returned.
|
|
Import certificate and private key from the file (PKCS12 format).
Callback function confirm_cb must return TRUE to import and FALSE to skip. Callback function confirm_cb use following parameters: is_pair - TRUE if need confirm import of private key and corresponding certificate; xcert - certificate to import; folder - use to set folder, by default equal to CST_FOLDER_CA (is_pair == FALSE) or CST_FOLDER_PERSONAL (is_pair == TRUE), purpose - use to set purpose of certificate, by default equal to CST_PURPOSE_NONE; out_password - use to set private key password, need only if is_pair equal to TRUE; cancel - set TRUE to stop import, by default FALSE; data - user data. Example 3. Using CST_import_PKCS12(). Callback function error_cb must return FALSE if need stop import and TRUE to skip and continue import. Callback function error_cb use following parameters: xcert - certificate on which error; error - error code; data - user data; |
|
Import private key from PEM encoded file If private key with same eaccount exist in storage then key appended.
|
|
Import private key from PEM encoded file If private key with same eaccount exist in storage then key appended.
|
|
Import private key from DER encoded file If private key with same eaccount exist in storage then key appended.
|
|
Import private key from DER encoded file If private key with same eaccount exist in storage then key appended.
|
|
Import public key from file If public key with same account exist in storage then key appended.
|
|
Import public key from file If public key with same account exist in storage then key appended.
|
|
Import public key from file If public key with same account exist in storage then key appended.
|
|
Import public key from file If public key with same account exist in storage then key appended.
|