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_const_t  req, unsigned
12       indx,  gnutls_digest_algorithm_t  *  digest,   gnutls_datum_t   *   is‐
13       suer_name_hash,  gnutls_datum_t * issuer_key_hash, gnutls_datum_t * se‐
14       rial_number);
15

ARGUMENTS

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

DESCRIPTION

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

RETURNS

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

REPORTING BUGS

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

SEE ALSO

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