diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-12-26 11:53:34 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-12-26 13:11:40 +0000 |
commit | fe43a662a25ab3903176575f1a7e0f8a04a9adc5 (patch) | |
tree | 1a4b4402532dec28a068c6281a6b8ad21a5a474a /lib/vtls/vtls.h | |
parent | 1ac4db23f74352223607c0e897d49e92ef8b86c1 (diff) | |
download | curl-fe43a662a25ab3903176575f1a7e0f8a04a9adc5.tar.gz |
vtls: Use CURLcode for Curl_ssl_init_certinfo() return type
The return type for this function was 0 on success and 1 on error. This
was then examined by the calling functions and, in most cases, used to
return CURLE_OUT_OF_MEMORY.
Instead use CURLcode for the return type and return the out of memory
error directly, propagating it up the call stack.
Diffstat (limited to 'lib/vtls/vtls.h')
-rw-r--r-- | lib/vtls/vtls.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/vtls.h b/lib/vtls/vtls.h index 8091868c8..19ef1cd6e 100644 --- a/lib/vtls/vtls.h +++ b/lib/vtls/vtls.h @@ -82,7 +82,7 @@ int Curl_ssl_check_cxn(struct connectdata *conn); /* Certificate information list handling. */ void Curl_ssl_free_certinfo(struct SessionHandle *data); -int Curl_ssl_init_certinfo(struct SessionHandle * data, int num); +CURLcode Curl_ssl_init_certinfo(struct SessionHandle * data, int num); CURLcode Curl_ssl_push_certinfo_len(struct SessionHandle * data, int certnum, const char * label, const char * value, size_t valuelen); |