mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[client,sample] improve VerifyCertificate message
* Use FreeRDP_CertificateCallbackPreferPEM for callbacks
This commit is contained in:
@@ -147,6 +147,11 @@ static BOOL tf_pre_connect(freerdp* instance)
|
||||
settings = instance->context->settings;
|
||||
WINPR_ASSERT(settings);
|
||||
|
||||
/* If the callbacks provide the PEM all certificate options can be extracted, otherwise
|
||||
* only the certificate fingerprint is available. */
|
||||
if (!freerdp_settings_set_bool(settings, FreeRDP_CertificateCallbackPreferPEM, TRUE))
|
||||
return FALSE;
|
||||
|
||||
/* Optional OS identifier sent to server */
|
||||
if (!freerdp_settings_set_uint32(settings, FreeRDP_OsMajorType, OSMAJORTYPE_UNIX))
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user