gnutls_ocsp_resp_check_crt(3)

πŸ’– gnutls_ocsp_resp_check_crt(3) πŸ’–

okay bestie, so this one lives in the gnutls manual, and it's lowkey one of the most "wait, is this cert even the vibe" functions in the whole OCSP situation. let's get into it πŸ¦‹


✨ NAME ✨

gnutls_ocsp_resp_check_crt β€” API function πŸ’…


🌸 SYNOPSIS 🌸

#include <gnutls/ocsp.h>

int gnutls_ocsp_resp_check_crt(gnutls_ocsp_resp_const_t resp, unsigned
int indx, gnutls_x509_crt_t crt);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_ocsp_resp_const_t resp β€” should contain a gnutls_ocsp_resp_t type, fr fr. that's your OCSP response bestie, the whole reason we're here.
  • unsigned int indx β€” Specifies response number to get. Use (0) to get the first one. yes queen, we're zero-indexed, as is tradition πŸ™ˆ
  • gnutls_x509_crt_t crt β€” The certificate to check. the one you're side-eyeing. πŸ‘€

πŸ”₯ DESCRIPTION πŸ”₯

This function will check whether the OCSP response is about the provided certificate.

that's it. that's the whole plot. it's giving "are these two actually matching or is this a situationship" energy. the response says something about some cert, and you're asking "is it this one?" πŸ’€


⭐ RETURNS ⭐

On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error code is returned.

so 0 = we ate, negative = we did not eat 😭


πŸ¦‹ SINCE πŸ¦‹

3.1.3 β€” an elder icon, honestly. been serving since 3.1.3, no cap πŸ‘‘


πŸ’œ REPORTING BUGS πŸ’œ

Report bugs to <bugs@gnutls.org>. Home page: https://www.gnutls.org

if you find a bug, don't be shy, tell the gnutls girlies. they want to know. 🫢


Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.

(translation: go off, share it, remix it, just keep the receipt 🧾✨)


πŸ’– SEE ALSO πŸ’–

The full documentation for gnutls is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form visit

https://www.gnutls.org/manual/

like, check your local docs first bestie, and if they ghosted you, the website has your back 🌸


and that's the page!! brought to you by gnutls 3.8.13, gnutls_ocsp_resp_check_crt(3), mwah πŸ’…πŸŽ€ stay certified, stay checked πŸ¦‹

πŸ“¦ where this page comes from