From 849179ba2739ab9a0ad079384b125d9c1745db5f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 26 Jun 2012 14:52:46 +0200 Subject: SSL cleanup: use crypto functions through the sslgen layer curl_ntlm_msgs.c would previously use an #ifdef maze and direct SSL-library calls instead of using the SSL layer we have for this purpose. --- lib/sslgen.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib/sslgen.c') diff --git a/lib/sslgen.c b/lib/sslgen.c index 8cf91f001..286c5ab23 100644 --- a/lib/sslgen.c +++ b/lib/sslgen.c @@ -521,4 +521,19 @@ void Curl_ssl_free_certinfo(struct SessionHandle *data) ci->num_of_certs = 0; } } + +void Curl_ssl_random(struct SessionHandle *data, + unsigned char *entropy, + size_t length) +{ + curlssl_random(data, entropy, length); +} + +void Curl_ssl_md5sum(unsigned char *tmp, /* input */ + size_t tmplen, + unsigned char *md5sum, /* output */ + size_t md5len) +{ + curlssl_md5sum(tmp, tmplen, md5sum, md5len); +} #endif /* USE_SSL */ -- cgit v1.2.3