I need the following patch to compile curl git HEAD against mbedtls. Otherwise I get the following compiler error message:
CC vtls/libcurl_la-mbedtls.lo vtls/mbedtls.c: In function 'mbedtls_version_from_curl': vtls/mbedtls.c:162:10: error: 'ssl_version' undeclared (first use in this function) switch(ssl_version) { ^ vtls/mbedtls.c:162:10: note: each undeclared identifier is reported only once for each function it appears in Makefile:2088: recipe for target 'vtls/libcurl_la-mbedtls.lo' failed It seems the error was introduced in 6448f98c1857de521fb2dd3f9d4e5659845b5474 --- lib/vtls/mbedtls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vtls/mbedtls.c b/lib/vtls/mbedtls.c index dbcb169..b131713 100644 --- a/lib/vtls/mbedtls.c +++ b/lib/vtls/mbedtls.c @@ -159,7 +159,7 @@ static Curl_send mbed_send; static CURLcode mbedtls_version_from_curl(int *mbedver, long version) { - switch(ssl_version) { + switch(version) { case CURL_SSLVERSION_TLSv1_0: *mbedver = MBEDTLS_SSL_MINOR_VERSION_1; return CURLE_OK; -- 2.1.4 ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html