summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-01-31 07:38:50 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-01-31 07:39:10 +0100
commitbe67c7d260113f39f4c4a3adbd2769246b8a72d8 (patch)
treef9ac479084a3c41551fe516fe34f7e929554c342
parentb4b2482af1502eb9663f399b35a39c9af6ce0bb5 (diff)
downloadgnutls-be67c7d260113f39f4c4a3adbd2769246b8a72d8.tar.gz
gnutls_heartbeat_allowed: corrected return type
This reflects better the fact that this function returns a boolean. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--lib/ext/heartbeat.c2
-rw-r--r--lib/includes/gnutls/gnutls.h.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/ext/heartbeat.c b/lib/ext/heartbeat.c
index a1b6893fae..ac113b8e25 100644
--- a/lib/ext/heartbeat.c
+++ b/lib/ext/heartbeat.c
@@ -71,7 +71,7 @@ void gnutls_heartbeat_enable(gnutls_session_t session, unsigned int type)
*
* Since: 3.1.2
**/
-int gnutls_heartbeat_allowed(gnutls_session_t session, unsigned int type)
+unsigned gnutls_heartbeat_allowed(gnutls_session_t session, unsigned int type)
{
extension_priv_data_t epriv;
diff --git a/lib/includes/gnutls/gnutls.h.in b/lib/includes/gnutls/gnutls.h.in
index c0c8d80972..f6c3e90c33 100644
--- a/lib/includes/gnutls/gnutls.h.in
+++ b/lib/includes/gnutls/gnutls.h.in
@@ -1214,7 +1214,7 @@ void gnutls_heartbeat_set_timeouts(gnutls_session_t session,
void gnutls_heartbeat_enable(gnutls_session_t session, unsigned int type);
#define GNUTLS_HB_LOCAL_ALLOWED_TO_SEND (1<<2)
-int gnutls_heartbeat_allowed(gnutls_session_t session, unsigned int type);
+unsigned gnutls_heartbeat_allowed(gnutls_session_t session, unsigned int type);
/* Safe renegotiation */
unsigned gnutls_safe_renegotiation_status(gnutls_session_t session);