summaryrefslogtreecommitdiffstats
path: root/doc/functions/gnutls_ocsp_req_add_cert
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 07:33:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 07:33:12 +0000
commit36082a2fe36ecd800d784ae44c14f1f18c66a7e9 (patch)
tree6c68e0c0097987aff85a01dabddd34b862309a7c /doc/functions/gnutls_ocsp_req_add_cert
parentInitial commit. (diff)
downloadgnutls28-36082a2fe36ecd800d784ae44c14f1f18c66a7e9.tar.xz
gnutls28-36082a2fe36ecd800d784ae44c14f1f18c66a7e9.zip
Adding upstream version 3.7.9.upstream/3.7.9upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'doc/functions/gnutls_ocsp_req_add_cert')
-rw-r--r--doc/functions/gnutls_ocsp_req_add_cert21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/functions/gnutls_ocsp_req_add_cert b/doc/functions/gnutls_ocsp_req_add_cert
new file mode 100644
index 0000000..73fff72
--- /dev/null
+++ b/doc/functions/gnutls_ocsp_req_add_cert
@@ -0,0 +1,21 @@
+
+
+
+@deftypefun {int} {gnutls_ocsp_req_add_cert} (gnutls_ocsp_req_t @var{req}, gnutls_digest_algorithm_t @var{digest}, gnutls_x509_crt_t @var{issuer}, gnutls_x509_crt_t @var{cert})
+@var{req}: should contain a @code{gnutls_ocsp_req_t} type
+
+@var{digest}: hash algorithm, a @code{gnutls_digest_algorithm_t} value
+
+@var{issuer}: issuer of @code{subject} certificate
+
+@var{cert}: certificate to request status for
+
+This function will add another request to the OCSP request for a
+particular certificate. The issuer name hash, issuer key hash, and
+serial number fields is populated as follows. The issuer name and
+the serial number is taken from @code{cert} . The issuer key is taken
+from @code{issuer} . The hashed values will be hashed using the @code{digest} algorithm, normally @code{GNUTLS_DIG_SHA1} .
+
+@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
+negative error code is returned.
+@end deftypefun