1gnutls_ocsp_req_add_cert_id(3)      gnutls      gnutls_ocsp_req_add_cert_id(3)
2
3
4

NAME

6       gnutls_ocsp_req_add_cert_id - API function
7

SYNOPSIS

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

ARGUMENTS

17       gnutls_ocsp_req_t req
18                   should contain a gnutls_ocsp_req_t type
19
20       gnutls_digest_algorithm_t digest
21                   hash algorithm, a gnutls_digest_algorithm_t value
22
23       const gnutls_datum_t * issuer_name_hash
24                   hash of issuer's DN
25
26       const gnutls_datum_t * issuer_key_hash
27                   hash of issuer's public key
28
29       const gnutls_datum_t * serial_number
30                   serial number of certificate to check
31

DESCRIPTION

33       This function will add another request to the OCSP request for  a  par‐
34       ticular certificate having the issuer name hash of
35        issuer_name_hash  and issuer key hash of  issuer_key_hash (both hashed
36       using  digest ) and serial number  serial_number .
37
38       The information needed corresponds to the CertID structure:
39
40       <informalexample><programlisting>  CertID        ::=       SEQUENCE   {
41       hashAlgorithm         AlgorithmIdentifier,   issuerNameHash       OCTET
42       STRING, -- Hash of Issuer's DN  issuerKeyHash        OCTET  STRING,  --
43       Hash  of  Issuers  public  key serialNumber   CertificateSerialNumber }
44       </programlisting></informalexample>
45

RETURNS

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

REPORTING BUGS

51       Report bugs to <bugs@gnutls.org>.
52       Home page: http://www.gnutls.org
53
54
56       Copyright © 2001-2018 Free Software Foundation, Inc., and others.
57       Copying  and  distribution  of this file, with or without modification,
58       are permitted in any medium  without  royalty  provided  the  copyright
59       notice and this notice are preserved.
60

SEE ALSO

62       The  full  documentation  for gnutls is maintained as a Texinfo manual.
63       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
64       visit
65
66       http://www.gnutls.org/manual/
67
68gnutls                               3.6.5      gnutls_ocsp_req_add_cert_id(3)
Impressum