static BOOL nla_client_init_cred_handle(rdpNla* nla)
{
	SECURITY_STATUS secStatus;
	SEC_WINPR_KERBEROS_SETTINGS* kerbSettings;

	WINPR_ASSERT(nla);
	kerbSettings = nla->kerberosSettings;
	WINPR_ASSERT(kerbSettings);
	WINPR_ASSERT(nla->table->SetCredentialsAttributes);

	if (kerbSettings->kdcUrl)
	{
#ifdef UNICODE
		SecPkgCredentials_KdcUrlW secAttr = { NULL };
		ConvertToUnicode(CP_UTF8, 0, kerbSettings->kdcUrl, -1, &secAttr.KdcUrl, 0);

		if (!secAttr.KdcUrl)
			return FALSE;

		secStatus = nla->table->SetCredentialsAttributesW(
		    &nla->credentials, SECPKG_CRED_ATTR_KDC_URL, (void*)&secAttr, sizeof(secAttr));

		free(secAttr.KdcUrl);
#else
		SecPkgCredentials_KdcUrlA secAttr = { NULL };
		secAttr.KdcUrl = kerbSettings->kdcUrl;
		secStatus = nla->table->SetCredentialsAttributesA(
		    &nla->credentials, SECPKG_CRED_ATTR_KDC_URL, (void*)&secAttr, sizeof(secAttr));
#endif
		if (secStatus != SEC_E_OK)
		{
			WLog_WARN(TAG, "Explicit Kerberos KDC URL (%s) injection is not supported",
			          kerbSettings->kdcUrl);
		}
	}

	return TRUE;
}
static BOOL nla_client_init_cred_handle(rdpNla* nla)
{
	SECURITY_STATUS secStatus;
	SEC_WINPR_KERBEROS_SETTINGS* kerbSettings;

	WINPR_ASSERT(nla);
	kerbSettings = nla->kerberosSettings;
	WINPR_ASSERT(kerbSettings);
	WINPR_ASSERT(nla->table->SetCredentialsAttributes);

	if (kerbSettings->kdcUrl)
	{
#ifdef UNICODE
		SecPkgCredentials_KdcUrlW secAttr = { NULL };
		ConvertToUnicode(CP_UTF8, 0, kerbSettings->kdcUrl, -1, &secAttr.KdcUrl, 0);

		if (!secAttr.KdcUrl)
			return FALSE;

		secStatus = nla->table->SetCredentialsAttributesW(
		    &nla->credentials, SECPKG_CRED_ATTR_KDC_URL, (void*)&secAttr, sizeof(secAttr));

		free(secAttr.KdcUrl);
#else
		SecPkgCredentials_KdcUrlA secAttr = { NULL };
		secAttr.KdcUrl = kerbSettings->kdcUrl;
		secStatus = nla->table->SetCredentialsAttributesA(
		    &nla->credentials, SECPKG_CRED_ATTR_KDC_URL, (void*)&secAttr, sizeof(secAttr));
#endif
		if (secStatus != SEC_E_OK)
		{
			WLog_WARN(TAG, "Explicit Kerberos KDC URL (%s) injection is not supported",
			          kerbSettings->kdcUrl);
		}
	}

	return TRUE;
}