hx509_revoke(3)
β¨ NAME β¨
hx509_revoke β hx509 revokation checking functions π
okay so bestie, this whole page is about revocation checking in the Heimdal x509 library β like, "is this cert still valid or did somebody cancel it" energy. it's giving certificate bouncer. π
π¦ SYNOPSIS π¦
π Functions
int hx509_revoke_init (hx509_context context, hx509_revoke_ctx *ctx)
void hx509_revoke_free (hx509_revoke_ctx *ctx)
int hx509_revoke_add_ocsp (hx509_context context, hx509_revoke_ctx ctx,
const char *path)
int hx509_revoke_add_crl (hx509_context context, hx509_revoke_ctx ctx,
const char *path)
int hx509_revoke_verify (hx509_context context, hx509_revoke_ctx ctx,
hx509_certs certs, time_t now, hx509_cert cert, hx509_cert
parent_cert)
int hx509_ocsp_request (hx509_context context, hx509_certs reqcerts,
hx509_certs pool, hx509_cert signer, const AlgorithmIdentifier
*digest, heim_octet_string *request, heim_octet_string *nonce)
int hx509_revoke_ocsp_print (hx509_context context, const char *path,
FILE *out)
πΈ Detailed Description πΈ
go check out the Revocation methods for the description and the examples, bestie β that's where the real tea is. π«β¨
π Function Documentation π
β int hx509_ocsp_request (hx509_context context, hx509_certs reqcerts, hx509_certs pool, hx509_cert signer, const AlgorithmIdentifier * digest, heim_octet_string * request, heim_octet_string * nonce)
make an OCSP request for a whole set of certificates. literally building the ask. π
Parameters
contextβ a hx509 contextreqcertsβ list of certificates to request ocsp data forpoolβ certificate pool to use when signingsignerβ certificate to use to sign the requestdigestβ the signing algorithm in the request, ifNULLuse the default signature algorithm,requestβ the encoded request, free withfree_heim_octet_string().nonceβ nonce in the request, free withfree_heim_octet_string().
Returns
An hx509 error code, see hx509_get_error_string().
π¨ friendly reminder: thoserequestandnoncebuffers are yours to clean up withfree_heim_octet_string(). no leaks in this house. π§
β int hx509_revoke_add_crl (hx509_context context, hx509_revoke_ctx ctx, const char * path)
drop a CRL file into the revokation context. π
Parameters
contextβ hx509 contextctxβ hx509 revokation contextpathβ path to file that is going to be added to the context.
Returns
An hx509 error code, see hx509_get_error_string().
β int hx509_revoke_add_ocsp (hx509_context context, hx509_revoke_ctx ctx, const char * path)
drop an OCSP file into the revokation context. π¦
Parameters
contextβ hx509 contextctxβ hx509 revokation contextpathβ path to file that is going to be added to the context.
Returns
An hx509 error code, see hx509_get_error_string().
β void hx509_revoke_free (hx509_revoke_ctx * ctx)
free a hx509 revokation context. it's the goodbye hug. π«Ά
Parameters
ctxβ context to be freed
β int hx509_revoke_init (hx509_context context, hx509_revoke_ctx * ctx)
allocate a revokation context. and then β and this is important β free it with hx509_revoke_free(). π€
Parameters
contextβ A hx509 context.ctxβ returns a newly allocated revokation context.
Returns
An hx509 error code, see hx509_get_error_string().
β int hx509_revoke_ocsp_print (hx509_context context, const char * path, FILE * out)
print the OCSP reply that's stored in a file. show me the receipts. π§Ύβ¨
Parameters
contextβ a hx509 contextpathβ path to a file with a OCSP replyoutβ the outFILEdescriptor to print the reply on
Returns
An hx509 error code, see hx509_get_error_string().
β int hx509_revoke_verify (hx509_context context, hx509_revoke_ctx ctx, hx509_certs certs, time_t now, hx509_cert cert, hx509_cert parent_cert)
check that a certificate is not expired according to a revokation context. also, you need the parent certificate so it can check the OCSP parent identifier. it's giving "who's your parent" moment. π
Parameters
contextβ hx509 contextctxβ hx509 revokation contextcertsnowcertparent_cert
Returns
An hx509 error code, see hx509_get_error_string().
π Author π
Generated automatically by Doxygen for Heimdal x509 library from the source code. so likeβ¦ not a human author, a robot did this. iconic honestly. π€π
and that's the whole page bestie!! π this was written against Version 7.8.0, dated Tue Nov 15 2022 β like, vintage but still slaying. go forth and revoke responsibly. πβ¨π
π¦ 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