summaryrefslogtreecommitdiffstats
path: root/doc/functions/gnutls_ocsp_resp_get_nonce
blob: e6aaaf18f99b75a447ffd52688f6994f727cf915 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@deftypefun {int} {gnutls_ocsp_resp_get_nonce} (gnutls_ocsp_resp_const_t @var{resp}, unsigned int * @var{critical}, gnutls_datum_t * @var{nonce})
@var{resp}: should contain a @code{gnutls_ocsp_resp_t}  type

@var{critical}: whether nonce extension is marked critical

@var{nonce}: will hold newly allocated buffer with nonce data

This function will return the Basic OCSP Response nonce extension
data.

The caller needs to deallocate memory by calling @code{gnutls_free()}  on
 @code{nonce} ->data.

@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
negative error code is returned.
@end deftypefun