| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_ocsp_req_set_extension} (gnutls_ocsp_req_t @var{req}, const char * @var{oid}, unsigned int @var{critical}, const gnutls_datum_t * @var{data}) |
| 6 |
@var{req}: should contain a @code{gnutls_ocsp_req_t} type |
| 7 |
|
| 8 |
@var{oid}: buffer with OID of extension as a string. |
| 9 |
|
| 10 |
@var{critical}: critical flag, normally false. |
| 11 |
|
| 12 |
@var{data}: the extension data |
| 13 |
|
| 14 |
This function will add an extension to the OCSP request. Calling |
| 15 |
this function multiple times for the same OID will overwrite values |
| 16 |
from earlier calls. |
| 17 |
|
| 18 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a |
| 19 |
negative error code is returned. |
| 20 |
@end deftypefun |