summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2019-12-16 12:45:06 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2019-12-16 21:01:40 +0100
commitbd383624af417cbb5cac831ee359b970383bbe42 (patch)
tree4fc4a0cf3892b1c9a12c85498a2a85c96843a752 /lib
parent0ae82294ca86e42b33368a94f1b3c5b91694729f (diff)
downloadgnutls-bd383624af417cbb5cac831ee359b970383bbe42.tar.gz
gnutls_ocsp_status_request_is_checked: mark explicitly as unsigned the return type
Also some documentation updates. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/includes/gnutls/gnutls.h.in4
-rw-r--r--lib/ocsp-api.c7
2 files changed, 6 insertions, 5 deletions
diff --git a/lib/includes/gnutls/gnutls.h.in b/lib/includes/gnutls/gnutls.h.in
index de48a75101..5c380199fe 100644
--- a/lib/includes/gnutls/gnutls.h.in
+++ b/lib/includes/gnutls/gnutls.h.in
@@ -2181,8 +2181,8 @@ int gnutls_ocsp_status_request_get(gnutls_session_t session,
gnutls_datum_t * response);
#define GNUTLS_OCSP_SR_IS_AVAIL 1
-int gnutls_ocsp_status_request_is_checked(gnutls_session_t session,
- unsigned int flags);
+unsigned gnutls_ocsp_status_request_is_checked(gnutls_session_t session,
+ unsigned int flags);
int
gnutls_ocsp_status_request_get2(gnutls_session_t session,
diff --git a/lib/ocsp-api.c b/lib/ocsp-api.c
index 685378a696..28f7e05a26 100644
--- a/lib/ocsp-api.c
+++ b/lib/ocsp-api.c
@@ -597,7 +597,8 @@ gnutls_certificate_get_ocsp_expiration(gnutls_certificate_credentials_t sc,
*
* When flags are zero this function returns non-zero if a valid OCSP status
* response was included in the TLS handshake. That is, an OCSP status response
- * which is not too old or superseded. It returns zero otherwise.
+ * which is not too old, superseded or marks the certificate as revoked.
+ * It returns zero otherwise.
*
* When the flag %GNUTLS_OCSP_SR_IS_AVAIL is specified, the function
* returns non-zero if an OCSP status response was included in the handshake
@@ -612,12 +613,12 @@ gnutls_certificate_get_ocsp_expiration(gnutls_certificate_credentials_t sc,
* under TLS 1.3, which is the first version of TLS that allows cliend-side OCSP
* responses.
*
- * Returns: non zero if the response was valid, or a zero if it wasn't sent,
+ * Returns: Non-zero if the response was valid, or a zero if it wasn't sent,
* or sent and was invalid.
*
* Since: 3.1.4
**/
-int
+unsigned
gnutls_ocsp_status_request_is_checked(gnutls_session_t session,
unsigned int flags)
{