From dd02a9a341659ed06839a474d685b99af3a082e2 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 22 Jun 2017 23:48:03 +0200 Subject: vtls: use consistent signature for _random() implementations This will make the upcoming multissl backend much easier to implement. Signed-off-by: Johannes Schindelin --- lib/vtls/schannel.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/vtls/schannel.h') diff --git a/lib/vtls/schannel.h b/lib/vtls/schannel.h index 8627c63c9..bd12b952d 100644 --- a/lib/vtls/schannel.h +++ b/lib/vtls/schannel.h @@ -92,7 +92,8 @@ int Curl_schannel_init(void); void Curl_schannel_cleanup(void); size_t Curl_schannel_version(char *buffer, size_t size); -CURLcode Curl_schannel_random(unsigned char *entropy, size_t length); +CURLcode Curl_schannel_random(struct Curl_easy *data, unsigned char *entropy, + size_t length); /* Set the API backend definition to Schannel */ #define CURL_SSL_BACKEND CURLSSLBACKEND_SCHANNEL @@ -115,7 +116,7 @@ CURLcode Curl_schannel_random(unsigned char *entropy, size_t length); #define curlssl_version Curl_schannel_version #define curlssl_check_cxn(x) ((void)x, -1) #define curlssl_data_pending Curl_schannel_data_pending -#define curlssl_random(x,y,z) ((void)x, Curl_schannel_random(y,z)) +#define curlssl_random(x,y,z) Curl_schannel_random(x,y,z) #endif /* USE_SCHANNEL */ #endif /* HEADER_CURL_SCHANNEL_H */ -- cgit v1.2.3