mirror of https://github.com/FreeRDP/FreeRDP
[client,sample] improve VerifyCertificate message
* Use FreeRDP_CertificateCallbackPreferPEM for callbacks
This commit is contained in:
parent
39e8c077d4
commit
7ea8e63a39
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue