| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_ocsp_req_get_nonce} (gnutls_ocsp_req_const_t @var{req}, unsigned int * @var{critical}, gnutls_datum_t * @var{nonce}) |
| 6 |
@var{req}: should contain a @code{gnutls_ocsp_req_t} type |
| 7 |
|
| 8 |
@var{critical}: whether nonce extension is marked critical, or NULL |
| 9 |
|
| 10 |
@var{nonce}: will hold newly allocated buffer with nonce data |
| 11 |
|
| 12 |
This function will return the OCSP request nonce extension data. |
| 13 |
|
| 14 |
The caller needs to deallocate memory by calling @code{gnutls_free()} on |
| 15 |
@code{nonce} ->data. |
| 16 |
|
| 17 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a |
| 18 |
negative error code is returned. |
| 19 |
@end deftypefun |