hx509_revoke(3)

πŸ“¦
version 7.8.0 Β· 3 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, epel 10, epel 9, fedora 43, fedora 44

✨ 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 context
  • reqcerts β€” list of certificates to request ocsp data for
  • pool β€” certificate pool to use when signing
  • signer β€” certificate to use to sign the request
  • digest β€” the signing algorithm in the request, if NULL use the default signature algorithm,
  • request β€” the encoded request, free with free_heim_octet_string().
  • nonce β€” nonce in the request, free with free_heim_octet_string().

Returns

An hx509 error code, see hx509_get_error_string().

🚨 friendly reminder: those request and nonce buffers are yours to clean up with free_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 context
  • ctx β€” hx509 revokation context
  • path β€” 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 context
  • ctx β€” hx509 revokation context
  • path β€” 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 context
  • path β€” path to a file with a OCSP reply
  • out β€” the out FILE descriptor 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 context
  • ctx β€” hx509 revokation context
  • certs
  • now
  • cert
  • parent_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