[client,sample] improve VerifyCertificate message

* Use FreeRDP_CertificateCallbackPreferPEM for callbacks
This commit is contained in:
akallabeth 2024-08-20 10:59:31 +02:00
parent 39e8c077d4
commit 7ea8e63a39
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5
1 changed files with 5 additions and 0 deletions

View File

@ -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;