* 2: If server authentication fails, show a warning and allow me to connect or refuse the connection (Warn me).
* 3: No authentication requirement is specified.
*/
- freerdp_set_param_bool(settings, FreeRDP_IgnoreCertificate,
- (file->AuthenticationLevel == 0) ? TRUE : FALSE);
+ settings->AuthenticationLevel = file->AuthenticationLevel;
}
if (~file->ConnectionType)
if (tls->settings->IgnoreCertificate)
return 1; /* success! */
+ if (!tls->isGatewayTransport && tls->settings->AuthenticationLevel == 0)
+ return 1; /* success! */
+
/* if user explicitly specified a certificate name, use it instead of the hostname */
if (!tls->isGatewayTransport && tls->settings->CertificateName)
hostname = tls->settings->CertificateName;