Functions | |
int | CST_delete_cert (CST *st, const cst_t_seqnum certID) |
int | CST_append_X509 (CST *st, X509 *cert) |
GSList * | CST_append_sk_X509 (CST *st, CST_STACK_OF_X509 *list) |
CST_STACK_OF_X509 * | CST_get_chain (CST *st, X509 *cert) |
GSList * | CST_get_chain_id_by_id (CST *st, const cst_t_seqnum certID) |
GSList * | CST_get_chain_id (CST *st, X509 *x) |
X509_NAME * | CST_get_issued_by_dn (X509 *cert) |
X509_NAME * | CST_get_subject_dn (X509 *cert) |
time_t | CST_get_valid_from (X509 *cert) |
time_t | CST_get_valid_to (X509 *cert) |
int | CST_is_expired (X509 *cert) |
ASN1_INTEGER * | CST_get_serial_number (X509 *cert) |
char * | CST_get_serial_number_t (X509 *cert) |
char * | CST_get_fingerprint (X509 *cert) |
char * | CST_get_fingerprint_MD5 (X509 *cert) |
char * | CST_get_fingerprint_SHA1 (X509 *cert) |
char * | CST_get_email (X509 *cert) |
char * | CST_get_domain_name (X509 *cert) |
char * | CST_get_public_key_alg (X509 *cert) |
int | CST_check_purpose_x (X509 *x, const cst_t_cert_purpose purposes) |
Check purpose of X509. | |
int | CST_check_purpose (CST *st, const cst_t_seqnum certID, const cst_t_cert_purpose purpose) |
Check purpose of certificate in storage by his ID. | |
int | CST_is_root (X509 *cert) |
int | CST_is_root_id (CST *st, const cst_t_seqnum certID) |
int | CST_is_CA (X509 *cert) |
int | CST_is_revoked (CST *st, X509 *cert) |
int | CST_is_network (CST *st, X509 *cert) |
char * | CST_get_network_URL (CST *st, X509 *cert) |
int | CST_set_folder (CST *st, const cst_t_seqnum certID, const cst_t_cert_folder f) |
cst_t_cert_folder | CST_get_folder (CST *st, const cst_t_seqnum certID) |
int | CST_set_purpose (CST *st, const cst_t_seqnum certID, const cst_t_cert_purpose p, const int value) |
int | CST_is_purpose (CST *st, const cst_t_seqnum certID, const cst_t_cert_purpose p) |
int | CST_is_valid (CST *st, X509 *cert) |
int | CST_is_valid_f (CST *st, FILE *file, GError **error) |
int | CST_is_valid_f_DER (CST *st, FILE *file, GError **error) |
int | CST_is_valid_for (CST *st, X509 *cert, const cst_t_cert_purpose purpose) |
int | CST_get_state (CST *st, X509 *cert) |
Get state of certificate. | |
X509 * | CST_get_cert (CST *st, const cst_t_seqnum certID) |
GSList* CST_append_sk_X509 | ( | CST * | st, | |
CST_STACK_OF_X509 * | list | |||
) |
Append STACK_OF(X509) to storage
st | Pointer to storage structure | |
list | Stack of X509 certificates |
STACK_OF(X509) * list = ... GSList * result = CST_append_sk_X509(st, list); GSList * i; for (i = result; i != NULL; i = i->next); { printf("Error code: %i\n", GPOINTER_TO_INT(i->data)); } g_slist_free(list);
int CST_append_X509 | ( | CST * | st, | |
X509 * | cert | |||
) |
Append X509 certificate to storage
st | Pointer to storage structure | |
cert | Pointer to X509 structure |
int CST_check_purpose | ( | CST * | st, | |
const cst_t_seqnum | certID, | |||
const cst_t_cert_purpose | purpose | |||
) |
Check purpose of certificate in storage by his ID.
st | Pointer to certificate storage | |
certID | Certificate ID | |
purpose | Purpose |
int CST_check_purpose_x | ( | X509 * | x, | |
const cst_t_cert_purpose | purposes | |||
) |
Check purpose of X509.
x | X509 certificate | |
purposes | Purpose |
int CST_delete_cert | ( | CST * | st, | |
const cst_t_seqnum | certID | |||
) |
Delete certificate
st | Pointer to storage structure | |
certID | Certificate ID |
X509* CST_get_cert | ( | CST * | st, | |
const cst_t_seqnum | certID | |||
) |
Get X509 by certID
CST_STACK_OF_X509* CST_get_chain | ( | CST * | st, | |
X509 * | cert | |||
) |
Get cert chain for given certificate
st | Pointer to storage structure | |
cert | Certificate for which need chan |
GSList* CST_get_chain_id | ( | CST * | st, | |
X509 * | x | |||
) |
Get cert chain for given certificate ID
st | Pointer to storage structure | |
x | X509 Certificate |
GSList* CST_get_chain_id_by_id | ( | CST * | st, | |
const cst_t_seqnum | certID | |||
) |
Get cert chain for given certificate ID
st | Pointer to storage structure | |
certID | Certificate ID |
char* CST_get_domain_name | ( | X509 * | cert | ) |
Get domain name if exist or NULL
char* CST_get_email | ( | X509 * | cert | ) |
Get email if exist or NULL
char* CST_get_fingerprint | ( | X509 * | cert | ) |
Get fingerprint
char* CST_get_fingerprint_MD5 | ( | X509 * | cert | ) |
Get fingerprint MD5
char* CST_get_fingerprint_SHA1 | ( | X509 * | cert | ) |
Get fingerprint SHA1
cst_t_cert_folder CST_get_folder | ( | CST * | st, | |
const cst_t_seqnum | certID | |||
) |
Get certificate folder
X509_NAME* CST_get_issued_by_dn | ( | X509 * | cert | ) |
Get issuer distinguished name (issued by)
char* CST_get_public_key_alg | ( | X509 * | cert | ) |
Get public key algorithm
ASN1_INTEGER* CST_get_serial_number | ( | X509 * | cert | ) |
Get serial number
char* CST_get_serial_number_t | ( | X509 * | cert | ) |
Get serial number in string
int CST_get_state | ( | CST * | st, | |
X509 * | cert | |||
) |
Get state of certificate.
see: CST_STATE_REVOKED, CST_STATE_EXPIRED, ...
X509_NAME* CST_get_subject_dn | ( | X509 * | cert | ) |
Get subject distinguished name (issued to)
time_t CST_get_valid_from | ( | X509 * | cert | ) |
Get valid to
time_t CST_get_valid_to | ( | X509 * | cert | ) |
Get valid from
int CST_is_CA | ( | X509 * | cert | ) |
Check that certificate can be CA
cert | X509 certificate |
int CST_is_expired | ( | X509 * | cert | ) |
If certificate expired or not valid yet return TRUE
int CST_is_purpose | ( | CST * | st, | |
const cst_t_seqnum | certID, | |||
const cst_t_cert_purpose | p | |||
) |
Check purpose (trust)
int CST_is_revoked | ( | CST * | st, | |
X509 * | cert | |||
) |
Get revoked state
int CST_is_root | ( | X509 * | cert | ) |
Check that certificate is root
cert | X509 certificate |
int CST_is_root_id | ( | CST * | st, | |
const cst_t_seqnum | certID | |||
) |
Check that certificate (certID) is root
st | Pointer to storage structure | |
certID | Certificate ID |
int CST_is_valid | ( | CST * | st, | |
X509 * | cert | |||
) |
Check certificate validity
int CST_is_valid_f | ( | CST * | st, | |
FILE * | file, | |||
GError ** | error | |||
) |
Check certificate validity. Read certificate from file (PEM format).
int CST_is_valid_f_DER | ( | CST * | st, | |
FILE * | file, | |||
GError ** | error | |||
) |
Check certificate validity. Read certificate from file (DER format).
int CST_is_valid_for | ( | CST * | st, | |
X509 * | cert, | |||
const cst_t_cert_purpose | purpose | |||
) |
Check certificate validity
int CST_set_folder | ( | CST * | st, | |
const cst_t_seqnum | certID, | |||
const cst_t_cert_folder | f | |||
) |
Set certificate folder
int CST_set_purpose | ( | CST * | st, | |
const cst_t_seqnum | certID, | |||
const cst_t_cert_purpose | p, | |||
const int | value | |||
) |
Set purose (trust settings)