Functions | |
| void | hx509_print_stdout (void *ctx, const char *fmt, va_list va) |
| int | hx509_oid_sprint (const heim_oid *oid, char **str) |
| void | hx509_oid_print (const heim_oid *oid, hx509_vprint_func func, void *ctx) |
| void | hx509_bitstring_print (const heim_bit_string *b, hx509_vprint_func func, void *ctx) |
| int | hx509_cert_keyusage_print (hx509_context context, hx509_cert c, char **s) |
| int | hx509_validate_ctx_init (hx509_context context, hx509_validate_ctx *ctx) |
| void | hx509_validate_ctx_set_print (hx509_validate_ctx ctx, hx509_vprint_func func, void *c) |
| void | hx509_validate_ctx_add_flags (hx509_validate_ctx ctx, int flags) |
| void | hx509_validate_ctx_free (hx509_validate_ctx ctx) |
| int | hx509_validate_cert (hx509_context context, hx509_validate_ctx ctx, hx509_cert cert) |
| void hx509_bitstring_print | ( | const heim_bit_string * | b, | |
| hx509_vprint_func | func, | |||
| void * | ctx | |||
| ) |
Print a bitstring using a hx509_vprint_func function. To print to stdout use hx509_print_stdout().
| b | bit string to print. | |
| func | hx509_vprint_func to print with. | |
| ctx | context variable to hx509_vprint_func function. |
| int hx509_cert_keyusage_print | ( | hx509_context | context, | |
| hx509_cert | c, | |||
| char ** | s | |||
| ) |
Print certificate usage for a certificate to a string.
| context | A hx509 context. | |
| c | a certificate print the keyusage for. | |
| s | the return string with the keysage printed in to, free with hx509_xfree(). |
| void hx509_oid_print | ( | const heim_oid * | oid, | |
| hx509_vprint_func | func, | |||
| void * | ctx | |||
| ) |
Print a oid using a hx509_vprint_func function. To print to stdout use hx509_print_stdout().
| oid | oid to print | |
| func | hx509_vprint_func to print with. | |
| ctx | context variable to hx509_vprint_func function. |
| int hx509_oid_sprint | ( | const heim_oid * | oid, | |
| char ** | str | |||
| ) |
Print a oid to a string.
| oid | oid to print | |
| str | allocated string, free with hx509_xfree(). |
| void hx509_print_stdout | ( | void * | ctx, | |
| const char * | fmt, | |||
| va_list | va | |||
| ) |
Helper function to print on stdout for:
| ctx | the context to the print function. If the ctx is NULL, stdout is used. | |
| fmt | the printing format. | |
| va | the argumet list. |
| int hx509_validate_cert | ( | hx509_context | context, | |
| hx509_validate_ctx | ctx, | |||
| hx509_cert | cert | |||
| ) |
Validate/Print the status of the certificate.
| context | A hx509 context. | |
| ctx | A hx509 validation context. | |
| cert | the cerificate to validate/print. |
| void hx509_validate_ctx_add_flags | ( | hx509_validate_ctx | ctx, | |
| int | flags | |||
| ) |
Add flags to control the behaivor of the hx509_validate_cert() function.
| ctx | A hx509 validation context. | |
| flags | flags to add to the validation context. |
| void hx509_validate_ctx_free | ( | hx509_validate_ctx | ctx | ) |
Free an hx509 validate context.
| ctx | the hx509 validate context to free. |
| int hx509_validate_ctx_init | ( | hx509_context | context, | |
| hx509_validate_ctx * | ctx | |||
| ) |
Allocate a hx509 validation/printing context.
| context | A hx509 context. | |
| ctx | a new allocated hx509 validation context, free with hx509_validate_ctx_free(). |
| void hx509_validate_ctx_set_print | ( | hx509_validate_ctx | ctx, | |
| hx509_vprint_func | func, | |||
| void * | c | |||
| ) |
Set the printing functions for the validation context.
| ctx | a hx509 valication context. | |
| func | the printing function to usea. | |
| c | the context variable to the printing function. |
1.5.6