]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
polarssl: fix compilation
authorhasufell <hasufell@hasufell.de>
Mon, 17 Mar 2014 18:03:29 +0000 (19:03 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 17 Mar 2014 19:08:45 +0000 (20:08 +0100)
Rename x509_cert to x509_crt and add "compat-1.2.h"
include.
This would still need some more thorough conversion
in order to drop "compat-1.2.h" include.

lib/urldata.h
lib/vtls/polarssl.c

index 9d6a9730a8431b1376e795e92cfa70972791cb9e..8e9dff47f87daa5523c029d490ccc34cc2d682ef 100644 (file)
@@ -306,8 +306,8 @@ struct ssl_connect_data {
   ssl_context ssl;
   ssl_session ssn;
   int server_fd;
-  x509_cert cacert;
-  x509_cert clicert;
+  x509_crt cacert;
+  x509_crt clicert;
   x509_crl crl;
   rsa_context rsa;
   ssl_connect_state connecting_state;
index 3623bc37f2c93cded7aaeb2832365e978e238858..127a80c13094af0768ef3673979098bfa0842248 100644 (file)
@@ -31,6 +31,7 @@
 
 #ifdef USE_POLARSSL
 
+#include <polarssl/compat-1.2.h>
 #include <polarssl/net.h>
 #include <polarssl/ssl.h>
 #include <polarssl/certs.h>
@@ -192,7 +193,7 @@ polarssl_connect_step1(struct connectdata *conn,
 #endif /* POLARSSL_VERSION_NUMBER<0x01010000 */
 
   /* Load the trusted CA */
-  memset(&connssl->cacert, 0, sizeof(x509_cert));
+  memset(&connssl->cacert, 0, sizeof(x509_crt));
 
   if(data->set.str[STRING_SSL_CAFILE]) {
     ret = x509parse_crtfile(&connssl->cacert,
@@ -211,7 +212,7 @@ polarssl_connect_step1(struct connectdata *conn,
   }
 
   /* Load the client certificate */
-  memset(&connssl->clicert, 0, sizeof(x509_cert));
+  memset(&connssl->clicert, 0, sizeof(x509_crt));
 
   if(data->set.str[STRING_CERT]) {
     ret = x509parse_crtfile(&connssl->clicert,