"hx509_cert hx509_cert_init_data (hx509_context context, const void *ptr, size_t len, heim_error_t *error)"
"void hx509_cert_free (hx509_cert cert)"
"hx509_cert hx509_cert_ref (hx509_cert cert)"
"void hx509_verify_ctx_f_allow_default_trustanchors (hx509_verify_ctx ctx, int boolean)"
"int hx509_cert_find_subjectAltName_otherName (hx509_context context, hx509_cert cert, const heim_oid *oid, hx509_octet_string_list *list)"
"int hx509_cert_cmp (hx509_cert p, hx509_cert q)"
"int hx509_cert_get_issuer (hx509_cert p, hx509_name *name)"
"int hx509_cert_get_subject (hx509_cert p, hx509_name *name)"
"int hx509_cert_get_base_subject (hx509_context context, hx509_cert c, hx509_name *name)"
"int hx509_cert_get_serialnumber (hx509_cert p, heim_integer *i)"
"time_t hx509_cert_get_notBefore (hx509_cert p)"
"time_t hx509_cert_get_notAfter (hx509_cert p)"
"int hx509_cert_get_SPKI (hx509_context context, hx509_cert p, SubjectPublicKeyInfo *spki)"
"int hx509_cert_get_SPKI_AlgorithmIdentifier (hx509_context context, hx509_cert p, AlgorithmIdentifier *alg)"
"int hx509_cert_get_issuer_unique_id (hx509_context context, hx509_cert p, heim_bit_string *issuer)"
"int hx509_cert_get_subject_unique_id (hx509_context context, hx509_cert p, heim_bit_string *subject)"
"int hx509_verify_hostname (hx509_context context, const hx509_cert cert, int flags, hx509_hostname_type type, const char *hostname, const struct sockaddr *sa, int sa_size)"
"hx509_cert_attribute hx509_cert_get_attribute (hx509_cert cert, const heim_oid *oid)"
"int hx509_cert_set_friendly_name (hx509_cert cert, const char *name)"
"const char * hx509_cert_get_friendly_name (hx509_cert cert)"
"int hx509_query_alloc (hx509_context context, hx509_query **q)"
"void hx509_query_match_option (hx509_query *q, hx509_query_option option)"
"int hx509_query_match_issuer_serial (hx509_query *q, const Name *issuer, const heim_integer *serialNumber)"
"int hx509_query_match_friendly_name (hx509_query *q, const char *name)"
"int hx509_query_match_eku (hx509_query *q, const heim_oid *eku)"
"int hx509_query_match_cmp_func (hx509_query *q, int(*func)(hx509_context, hx509_cert, void *), void *ctx)"
"void hx509_query_free (hx509_context context, hx509_query *q)"
"void hx509_query_statistic_file (hx509_context context, const char *fn)"
"void hx509_query_unparse_stats (hx509_context context, int printtype, FILE *out)"
"int hx509_cert_check_eku (hx509_context context, hx509_cert cert, const heim_oid *eku, int allow_any_eku)"
"int hx509_cert_binary (hx509_context context, hx509_cert c, heim_octet_string *os)"
"int hx509_print_cert (hx509_context context, hx509_cert cert, FILE *out)"
See the The basic certificate for description and examples.
Parameters
context A hx509 context.
c the certificate to encode.
os the encode certificate, set to NULL, 0 on case of error. Free the os->data with hx509_xfree().
Returns
An hx509 error code, see hx509_get_error_string().
Parameters
context A hx509 context.
cert A hx509 context.
eku the EKU to check for
allow_any_eku if the any EKU is set, allow that to be a substitute.
Returns
An hx509 error code, see hx509_get_error_string().
Parameters
p a hx509 certificate object.
q a hx509 certificate object.
Returns
0 the objects are the same, returns > 0 is p is 'larger' then q, < 0 if p is 'smaller' then q.
The returned list of octet string should be freed with hx509_free_octet_string_list().
Parameters
context A hx509 context.
cert a hx509 certificate object.
oid an oid to for SubjectAltName.
list list of matching SubjectAltName.
Returns
An hx509 error code, see hx509_get_error_string().
Parameters
cert the cert to free.
Parameters
cert hx509 certificate object to search
oid an oid to search for.
Returns
an hx509_cert_attribute, only valid as long as the certificate is referenced.
Parameters
context a hx509 context.
c a hx509 certificate object.
name a pointer to a hx509 name, should be freed by hx509_name_free(). See also hx509_cert_get_subject().
Returns
An hx509 error code, see hx509_get_error_string().
Parameters
cert cert to get the friendly name from.
Returns
an friendly name or NULL if there is. The friendly name is only valid as long as the certificate is referenced.
Parameters
p a hx509 certificate object.
name a pointer to a hx509 name, should be freed by hx509_name_free().
Returns
An hx509 error code, see hx509_get_error_string().
Parameters
context a hx509_context
p a hx509 certificate
issuer the issuer id returned, free with der_free_bit_string()
Returns
An hx509 error code, see hx509_get_error_string(). The error code HX509_EXTENSION_NOT_FOUND is returned if the certificate doesn't have a issuerUniqueID
Parameters
p a hx509 certificate object.
Returns
return not after time.
Parameters
p a hx509 certificate object.
Returns
return not before time
Parameters
p a hx509 certificate object.
i serial number, should be freed ith der_free_heim_integer().
Returns
An hx509 error code, see hx509_get_error_string().
Parameters
context a hx509 context.
p a hx509 certificate object.
spki SubjectPublicKeyInfo, should be freed with free_SubjectPublicKeyInfo().
Returns
An hx509 error code, see hx509_get_error_string().
Parameters
context a hx509 context.
p a hx509 certificate object.
alg AlgorithmIdentifier, should be freed with free_AlgorithmIdentifier(). The algorithmidentifier is typicly rsaEncryption, or id-ecPublicKey, or some other public key mechanism.
Returns
An hx509 error code, see hx509_get_error_string().
Parameters
p a hx509 certificate object.
name a pointer to a hx509 name, should be freed by hx509_name_free(). See also hx509_cert_get_base_subject().
Returns
An hx509 error code, see hx509_get_error_string().
Parameters
context a hx509_context
p a hx509 certificate
subject the subject id returned, free with der_free_bit_string()
Returns
An hx509 error code, see hx509_get_error_string(). The error code HX509_EXTENSION_NOT_FOUND is returned if the certificate doesn't have a subjectUniqueID
Parameters
context A hx509 context.
c
error
Returns
Returns an hx509 certificate
If the memory region doesn't contain just the certificate and nothing more the function will fail with HX509_EXTRA_DATA_AFTER_STRUCTURE.
Parameters
context A hx509 context.
ptr pointer to memory region containing encoded certificate.
len length of memory region.
error possibly returns an error
Returns
An hx509 certificate
Parameters
cert a pointer to an hx509 certificate object.
Returns
the same object as is passed in.
Parameters
cert The certificate to set the friendly name on
name Friendly name.
Returns
An hx509 error code, see hx509_get_error_string().
Parameters
context A hx509 context, can be NULL
cert certificate to print
out the stdio output stream, if NULL, stdout is used
Returns
An hx509 error code
Parameters
context A hx509 context.
q return pointer to a hx509_query.
Returns
An hx509 error code, see hx509_get_error_string().
Parameters
context A hx509 context.
q a pointer to the query controller.
Parameters
q a hx509 query controller.
func function to use for matching, if the argument is NULL, the match function is removed.
ctx context passed to the function.
Returns
An hx509 error code, see hx509_get_error_string().
Parameters
q a hx509 query controller.
eku an EKU to match on.
Returns
An hx509 error code, see hx509_get_error_string().
Parameters
q a hx509 query controller.
name a friendly name to match on
Returns
An hx509 error code, see hx509_get_error_string().
Parameters
q a hx509 query controller
issuer issuer to search for
serialNumber the serialNumber of the issuer.
Returns
An hx509 error code, see hx509_get_error_string().
Parameters
q query controller.
option options to control the query controller.
Returns
An hx509 error code, see hx509_get_error_string().
Parameters
context A hx509 context.
fn statistics file name
Parameters
context A hx509 context.
printtype tyep to print
out the FILE to write the data on.
Parameters
ctx a verification context
boolean if non zero, useing the operating systems builtin trust anchors.
Returns
An hx509 error code, see hx509_get_error_string().
Parameters
context A hx509 context.
cert the certificate to match with
flags Flags to modify the behavior:
type type of hostname:
hostname the hostname to check
sa address of the host
sa_size length of address
Returns
An hx509 error code, see hx509_get_error_string().
Generated automatically by Doxygen for Heimdal x509 library from the source code.