Skip to content

Commit

Permalink
polarssl: fix compilation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hasufell authored and bagder committed Mar 17, 2014
1 parent 67061e3 commit 4d61083
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/urldata.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 3 additions & 2 deletions lib/vtls/polarssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 4d61083

Please sign in to comment.