hx509_print(3)
π hx509_print β hx509 printing functions π
okay bestie, welcome to hx509_print(3), straight out of the Heimdal x509 library β¨ this is the whole printing squad β everything you need to make certificates, OIDs and bitstrings go print print print π
πΈ SYNOPSIS πΈ
here's the whole friend group, no cap π
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)
π¦ Detailed Description π¦
it's givingβ¦ functions. the details live right below, babe π
π Function Documentation π
β¨ void hx509_bitstring_print (const heim_bit_string * b, hx509_vprint_func func, void * ctx) β¨
prints a bitstring using a hx509_vprint_func function π¨οΈ and if you wanna print to stdout, just use hx509_print_stdout() β she's the plug, iykyk.
Parameters
bβ the bit string to print.funcβ thehx509_vprint_functo print with.ctxβ the context variable handed to thehx509_vprint_funcfunction.
β¨ int hx509_cert_keyusage_print (hx509_context context, hx509_cert c, char ** s) β¨
prints the certificate usage for a certificate into a string π
Parameters
contextβ a hx509 context.cβ a certificate, print the keyusage for it.sβ the return string with the keyusage printed into it. free it withhx509_xfree().
Returns
an hx509 error code β go peep hx509_get_error_string() for the tea π
β¨ void hx509_oid_print (const heim_oid * oid, hx509_vprint_func func, void * ctx) β¨
prints an oid using a hx509_vprint_func function π and to print to stdout, use hx509_print_stdout().
Parameters
oidβ the oid to print.funcβ thehx509_vprint_functo print with.ctxβ the context variable handed to thehx509_vprint_funcfunction.
β¨ int hx509_oid_sprint (const heim_oid * oid, char ** str) β¨
prints an oid into a string π«
Parameters
oidβ the oid to print.strβ the allocated string. free it withhx509_xfree().
Returns
an hx509 error code β check hx509_get_error_string() π«Ά
β¨ void hx509_print_stdout (void * ctx, const char * fmt, va_list va) β¨
the lil helper function that prints on stdout, made for:
hx509_oid_print(),hx509_bitstring_print(),hx509_validate_ctx_set_print().
Parameters
ctxβ the context passed to the print function. ifctxisNULL, stdout is used. periodt.fmtβ the printing format.vaβ the argument list.
β¨ int hx509_validate_cert (hx509_context context, hx509_validate_ctx ctx, hx509_cert cert) β¨
validates / prints the status of the certificate π main character energy fr fr.
Parameters
contextβ a hx509 context.ctxβ a hx509 validation context.certβ the certificate to validate/print.
Returns
an hx509 error code β see hx509_get_error_string() β
β¨ void hx509_validate_ctx_add_flags (hx509_validate_ctx ctx, int flags) β¨
adds flags that control the behavior of the hx509_validate_cert() function π©
Parameters
ctxβ a hx509 validation context.flagsβ the flags to add to the validation context.
Returns
an hx509 error code β see hx509_get_error_string() π
β¨ void hx509_validate_ctx_free (hx509_validate_ctx ctx) β¨
frees a hx509 validate context π«§ bye bestie, you served.
Parameters
ctxβ the hx509 validate context to free.
β¨ int hx509_validate_ctx_init (hx509_context context, hx509_validate_ctx * ctx) β¨
allocates a hx509 validation/printing context π±
Parameters
contextβ a hx509 context.ctxβ a newly allocated hx509 validation context. free it withhx509_validate_ctx_free().
Returns
an hx509 error code β see hx509_get_error_string() πΈ
β¨ void hx509_validate_ctx_set_print (hx509_validate_ctx ctx, hx509_vprint_func func, void * c) β¨
sets the printing functions for the validation context π¨οΈβ¨
Parameters
ctxβ a hx509 validation context.funcβ the printing function to use.cβ the context variable passed to the printing function.
Returns
an hx509 error code β see hx509_get_error_string() π
π Author π
generated automatically by Doxygen for the Heimdal x509 library, pulled straight from the source code π€π
and that's the whole page, bestie π Version 7.8.0, dated Tue Nov 15 2022 β slay, go print some certs ππ¦β¨
π¦ where this page comes from
- alpine 3.22: heimdal-doc 7.8.0-r4 Β· BSD-3-Clause
- alpine 3.23: heimdal-doc 7.8.0-r5 Β· BSD-3-Clause
- alpine 3.24: heimdal-doc 7.8.0-r5 Β· BSD-3-Clause
- epel 10: heimdal-devel 7.8.0-26.el10_2 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- epel 9: heimdal-devel 7.8.0-5.el9 Β· BSD and MIT
- fedora 43: heimdal-devel 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 43: heimdal-devel 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-devel 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-devel 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-devel 7.8.0-28.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-devel 7.8.0-28.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms