gnutls_ocsp_resp_export2(3)

gnutls_ocsp_resp_export23

Api function

Usage

#include <gnutls/ocsp.h>

int gnutls_ocsp_resp_export2(gnutls_ocsp_resp_const_t resp, gnutls_datum_t * data, gnutls_x509_crt_fmt_t fmt);

Arguments

gnutls_ocsp_resp_const_t resp

Holds the OCSP response

gnutls_datum_t * data

newly allocate buffer holding DER or PEM encoded OCSP response

gnutls_x509_crt_fmt_t fmt

DER or PEM

Overview

This function will export the OCSP response to DER or PEM format.

Returns

In case of failure a negative error code will be returned, and 0 on success.

Since

3.6.3

Releases

5 releases since Debian 10 (Buster); the text changed 4 times.

  1. 10
  2. 11
  3. 12
  4. 13
  5. Arch

Reporting bugs

Report bugs to <[email protected]>.
Home page: https://www.gnutls.org

From gnutls 3.8.13-3 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.