Fix windows compilation
This commit is contained in:
parent
feea87b42f
commit
6f99f252d9
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user