Fix windows compilation

This commit is contained in:
Benoit LeBlanc 2014-04-04 10:08:44 -04:00
parent feea87b42f
commit 6f99f252d9
2 changed files with 3 additions and 4 deletions

View File

@ -379,11 +379,12 @@ BOOL transport_tsg_connect(rdpTransport* transport, const char* hostname, UINT16
int tls_status;
freerdp* instance;
rdpContext* context;
rdpTsg* tsg;
instance = (freerdp*) transport->settings->instance;
context = instance->context;
rdpTsg* tsg = tsg_new(transport);
tsg = tsg_new(transport);
tsg->transport = transport;
transport->tsg = tsg;

View File

@ -219,13 +219,11 @@ int tls_connect(rdpTls* tls)
{
fprintf(stderr, "tls_connect: certificate not trusted, aborting.\n");
tls_disconnect(tls);
tls_free_certificate(cert);
return verify_status;
}
tls_free_certificate(cert);
return (verify_status == 0) ? 0 : 1;
return verify_status;
}
BOOL tls_accept(rdpTls* tls, const char* cert_file, const char* privatekey_file)