From: Nikos Mavrogiannopoulos Date: Wed, 7 Sep 2016 11:29:54 +0000 (+0200) Subject: doc: clarifications in gnutls_certificate_set_ocsp_status_request_function() X-Git-Tag: gnutls_3_5_5~121 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cc825ddd8da92006dfa0a028f1b08223caba2d0a;p=thirdparty%2Fgnutls.git doc: clarifications in gnutls_certificate_set_ocsp_status_request_function() --- diff --git a/lib/ext/status_request.c b/lib/ext/status_request.c index 637a4403d2..44f0ecfe0e 100644 --- a/lib/ext/status_request.c +++ b/lib/ext/status_request.c @@ -405,10 +405,9 @@ gnutls_ocsp_status_request_get(gnutls_session_t session, * The callback will be invoked if the client requests an OCSP certificate * status. The callback may return %GNUTLS_E_NO_CERTIFICATE_STATUS, if * there is no recent OCSP response. If the callback returns %GNUTLS_E_SUCCESS, - * the server will provide the client with the ocsp_response. - * - * The response must be a value allocated using gnutls_malloc(), and will be - * deinitialized when needed. + * it is expected to have the @ocsp_response field set with a valid (DER-encoded) + * OCSP response. The response must be a value allocated using gnutls_malloc(), + * and will be deinitialized by the caller. * * Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, * otherwise a negative error code is returned.