diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-12-25 17:15:15 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-12-25 17:15:15 +0000 |
commit | 6cb7b0c0acdfc49e289fedfb3d1c29103f47a2e6 (patch) | |
tree | 00d02974de45b6b2920d4f4929c99b854ece1ba9 /lib/vtls/vtls.h | |
parent | 38aaf6c380210c5261f8c2ce2823380845c539fb (diff) | |
download | curl-6cb7b0c0acdfc49e289fedfb3d1c29103f47a2e6.tar.gz |
vtls: Use bool for Curl_ssl_getsessionid() return type
The return type of this function is a boolean value, and even uses a
bool internally, so use bool in the function declaration as well as
the variables that store the return value, to avoid any confusion.
Diffstat (limited to 'lib/vtls/vtls.h')
-rw-r--r-- | lib/vtls/vtls.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/vtls/vtls.h b/lib/vtls/vtls.h index d24a858f6..8091868c8 100644 --- a/lib/vtls/vtls.h +++ b/lib/vtls/vtls.h @@ -23,14 +23,14 @@ ***************************************************************************/ #include "curl_setup.h" -#include "openssl.h" /* OpenSSL versions */ -#include "gtls.h" /* GnuTLS versions */ -#include "nssg.h" /* NSS versions */ -#include "gskit.h" /* Global Secure ToolKit versions */ -#include "polarssl.h" /* PolarSSL versions */ -#include "axtls.h" /* axTLS versions */ -#include "cyassl.h" /* CyaSSL versions */ -#include "curl_schannel.h" /* Schannel SSPI version */ +#include "openssl.h" /* OpenSSL versions */ +#include "gtls.h" /* GnuTLS versions */ +#include "nssg.h" /* NSS versions */ +#include "gskit.h" /* Global Secure ToolKit versions */ +#include "polarssl.h" /* PolarSSL versions */ +#include "axtls.h" /* axTLS versions */ +#include "cyassl.h" /* CyaSSL versions */ +#include "curl_schannel.h" /* Schannel SSPI version */ #include "curl_darwinssl.h" /* SecureTransport (Darwin) version */ #ifndef MAX_PINNED_PUBKEY_SIZE @@ -92,9 +92,9 @@ CURLcode Curl_ssl_push_certinfo(struct SessionHandle * data, int certnum, /* Functions to be used by SSL library adaptation functions */ /* extract a session ID */ -int Curl_ssl_getsessionid(struct connectdata *conn, - void **ssl_sessionid, - size_t *idsize) /* set 0 if unknown */; +bool Curl_ssl_getsessionid(struct connectdata *conn, + void **ssl_sessionid, + size_t *idsize) /* set 0 if unknown */; /* add a new session ID */ CURLcode Curl_ssl_addsessionid(struct connectdata *conn, void *ssl_sessionid, |