aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls/axtls.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-01-12 17:41:26 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-01-12 17:44:21 +0100
commit807698db025f489dd7894f1195e4983be632bee2 (patch)
tree8ee8d3a554fa3f88f09265ced10a39505c1c41e7 /lib/vtls/axtls.c
parenta18db792624a677221d895f4662a06b5016e4eee (diff)
rand: make it work without TLS backing
Regression introduced in commit f682156a4fc6c4 Reported-by: John Kohl Bug: https://curl.haxx.se/mail/lib-2017-01/0055.html
Diffstat (limited to 'lib/vtls/axtls.c')
-rw-r--r--lib/vtls/axtls.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/vtls/axtls.c b/lib/vtls/axtls.c
index ff4634e5b..b1b4d32a5 100644
--- a/lib/vtls/axtls.c
+++ b/lib/vtls/axtls.c
@@ -680,9 +680,9 @@ size_t Curl_axtls_version(char *buffer, size_t size)
return snprintf(buffer, size, "axTLS/%s", ssl_version());
}
-int Curl_axtls_random(struct Curl_easy *data,
- unsigned char *entropy,
- size_t length)
+CURLcode Curl_axtls_random(struct Curl_easy *data,
+ unsigned char *entropy,
+ size_t length)
{
static bool ssl_seeded = FALSE;
(void)data;
@@ -694,7 +694,7 @@ int Curl_axtls_random(struct Curl_easy *data,
RNG_initialize();
}
get_random((int)length, entropy);
- return 0;
+ return CURLE_OK;
}
#endif /* USE_AXTLS */