Blame doc/functions/gnutls_ocsp_req_add_cert_id

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@deftypefun {int} {gnutls_ocsp_req_add_cert_id} (gnutls_ocsp_req_t @var{req}, gnutls_digest_algorithm_t @var{digest}, const gnutls_datum_t * @var{issuer_name_hash}, const gnutls_datum_t * @var{issuer_key_hash}, const gnutls_datum_t * @var{serial_number})
Packit Service 4684c1
@var{req}: should contain a @code{gnutls_ocsp_req_t}  type
Packit Service 4684c1
Packit Service 4684c1
@var{digest}: hash algorithm, a @code{gnutls_digest_algorithm_t}  value
Packit Service 4684c1
Packit Service 4684c1
@var{issuer_name_hash}: hash of issuer's DN
Packit Service 4684c1
Packit Service 4684c1
@var{issuer_key_hash}: hash of issuer's public key
Packit Service 4684c1
Packit Service 4684c1
@var{serial_number}: serial number of certificate to check
Packit Service 4684c1
Packit Service 4684c1
This function will add another request to the OCSP request for a
Packit Service 4684c1
particular certificate having the issuer name hash of
Packit Service 4684c1
 @code{issuer_name_hash} and issuer key hash of  @code{issuer_key_hash} (both
Packit Service 4684c1
hashed using  @code{digest} ) and serial number  @code{serial_number} .
Packit Service 4684c1
Packit Service 4684c1
The information needed corresponds to the CertID structure:
Packit Service 4684c1
Packit Service 4684c1
<informalexample><programlisting>
Packit Service 4684c1
CertID	  ::=     SEQUENCE @{
Packit Service 4684c1
hashAlgorithm       AlgorithmIdentifier,
Packit Service 4684c1
issuerNameHash      OCTET STRING, -- Hash of Issuer's DN
Packit Service 4684c1
issuerKeyHash       OCTET STRING, -- Hash of Issuers public key
Packit Service 4684c1
serialNumber	CertificateSerialNumber @}
Packit Service 4684c1
</programlisting></informalexample>
Packit Service 4684c1
Packit Service 4684c1
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
Packit Service 4684c1
negative error code is returned.
Packit Service 4684c1
@end deftypefun