From e4a7b98aa15b559a86b60d18fb348d96db5bc474 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 15 Mar 2014 09:05:26 +0000 Subject: [PATCH] curl: fix polarssl 1.3 compatibility Signed-off-by: Felix Fietkau SVN-Revision: 39931 --- libs/curl/patches/300-polarssl_compat.patch | 36 +++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 libs/curl/patches/300-polarssl_compat.patch diff --git a/libs/curl/patches/300-polarssl_compat.patch b/libs/curl/patches/300-polarssl_compat.patch new file mode 100644 index 000000000..47b600fa7 --- /dev/null +++ b/libs/curl/patches/300-polarssl_compat.patch @@ -0,0 +1,36 @@ +--- a/lib/urldata.h ++++ b/lib/urldata.h +@@ -117,6 +117,9 @@ + #include + #include + #endif /* POLARSSL_VERSION_NUMBER<0x01010000 */ ++#if POLARSSL_VERSION_NUMBER>=0x01030000 ++#include ++#endif + #endif /* USE_POLARSSL */ + + #ifdef USE_CYASSL +--- a/lib/vtls/polarssl.c ++++ b/lib/vtls/polarssl.c +@@ -37,6 +37,10 @@ + #include + #include + ++#if POLARSSL_VERSION_NUMBER >= 0x01030000 ++#include ++#endif ++ + #if POLARSSL_VERSION_NUMBER >= 0x01000000 + #include + #endif /* POLARSSL_VERSION_NUMBER >= 0x01000000 */ +@@ -311,8 +315,8 @@ polarssl_connect_step1(struct connectdat + &connssl->crl, + conn->host.name); + +- ssl_set_own_cert(&connssl->ssl, +- &connssl->clicert, &connssl->rsa); ++ ssl_set_own_cert_rsa(&connssl->ssl, ++ &connssl->clicert, &connssl->rsa); + + if(!Curl_inet_pton(AF_INET, conn->host.name, &addr) && + #ifdef ENABLE_IPV6 -- 2.30.2