1gnutls_ocsp_req_get_cert_id(3)      gnutls      gnutls_ocsp_req_get_cert_id(3)
2
3
4

NAME

6       gnutls_ocsp_req_get_cert_id - API function
7

SYNOPSIS

9       #include <gnutls/ocsp.h>
10
11       int  gnutls_ocsp_req_get_cert_id(gnutls_ocsp_req_t  req, unsigned indx,
12       gnutls_digest_algorithm_t * digest, gnutls_datum_t *  issuer_name_hash,
13       gnutls_datum_t * issuer_key_hash, gnutls_datum_t * serial_number);
14

ARGUMENTS

16       gnutls_ocsp_req_t req
17                   should contain a gnutls_ocsp_req_t type
18
19       unsigned indx
20                   Specifies  which  extension  OID to get. Use (0) to get the
21                   first one.
22
23       gnutls_digest_algorithm_t * digest
24                   output variable with gnutls_digest_algorithm_t  hash  algo‐
25                   rithm
26
27       gnutls_datum_t * issuer_name_hash
28                   output buffer with hash of issuer's DN
29
30       gnutls_datum_t * issuer_key_hash
31                   output buffer with hash of issuer's public key
32
33       gnutls_datum_t * serial_number
34                   output buffer with serial number of certificate to check
35

DESCRIPTION

37       This function will return the certificate information of the
38        indx 'ed request in the OCSP request.  The information returned corre‐
39       sponds to the CertID structure:
40
41       <informalexample><programlisting>  CertID        ::=       SEQUENCE   {
42       hashAlgorithm         AlgorithmIdentifier,   issuerNameHash       OCTET
43       STRING, -- Hash of Issuer's DN  issuerKeyHash        OCTET  STRING,  --
44       Hash  of  Issuers  public  key serialNumber   CertificateSerialNumber }
45       </programlisting></informalexample>
46
47       Each of the pointers to output variables may be NULL to  indicate  that
48       the caller is not interested in that value.
49

RETURNS

51       On  success,  GNUTLS_E_SUCCESS  (0)  is  returned, otherwise a negative
52       error code is returned.  If you have reached the last CertID  available
53       GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned.
54

REPORTING BUGS

56       Report bugs to <bugs@gnutls.org>.
57       Home page: https://www.gnutls.org
58
59
61       Copyright © 2001-2019 Free Software Foundation, Inc., and others.
62       Copying  and  distribution  of this file, with or without modification,
63       are permitted in any medium  without  royalty  provided  the  copyright
64       notice and this notice are preserved.
65

SEE ALSO

67       The  full  documentation  for gnutls is maintained as a Texinfo manual.
68       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
69       visit
70
71       https://www.gnutls.org/manual/
72
73gnutls                               3.6.8      gnutls_ocsp_req_get_cert_id(3)
Impressum