From e35205a0c4f8d80dc9e878049a0fb0eb18f61dbf Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 23 Jun 2017 01:04:56 +0200 Subject: vtls: move md5sum into the Curl_ssl struct The MD5 summing is also an SSL backend-specific function. So let's include it, offering the previous fall-back code as a separate function now: Curl_none_md5sum(). To allow for that, the signature had to be changed so that an error could be returned from the implementation (Curl_none_md5sum() can run out of memory). Signed-off-by: Johannes Schindelin --- lib/vtls/polarssl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/vtls/polarssl.c') diff --git a/lib/vtls/polarssl.c b/lib/vtls/polarssl.c index 8feaa95af..f2a7c93b8 100644 --- a/lib/vtls/polarssl.c +++ b/lib/vtls/polarssl.c @@ -892,7 +892,8 @@ const struct Curl_ssl Curl_ssl_polarssl = { Curl_none_set_engine, /* set_engine */ Curl_none_set_engine_default, /* set_engine_default */ Curl_none_engines_list, /* engines_list */ - Curl_none_false_start /* false_start */ + Curl_none_false_start, /* false_start */ + Curl_none_md5sum /* md5sum */ }; const struct Curl_ssl *Curl_ssl = &Curl_ssl_polarssl; -- cgit v1.2.3