| 77 | #endif |
| 78 | |
| 79 | int CServiceFreeRDP::SetParameters() |
| 80 | { |
| 81 | CParameterServiceFreeRDP* p = |
| 82 | dynamic_cast<CParameterServiceFreeRDP*>(GetParameters()); |
| 83 | |
| 84 | m_pSettings = m_pServer->settings; |
| 85 | m_pSettings->NlaSecurity = p->getNlaSecurity(); |
| 86 | m_pSettings->TlsSecurity = p->getTlsSecurity(); |
| 87 | m_pSettings->RdpSecurity = p->getRdpSecurity(); |
| 88 | m_pSettings->UseRdpSecurityLayer = m_pSettings->RdpSecurity; |
| 89 | m_pSettings->ExtSecurity = p->getNlaExtSecurity(); |
| 90 | if(!p->getSamFile().isEmpty()) |
| 91 | freerdp_settings_set_string(m_pSettings, FreeRDP_NtlmSamFile, |
| 92 | p->getSamFile().toStdString().c_str()); |
| 93 | |
| 94 | m_pServer->authentication = p->getAuthentication(); |
| 95 | |
| 96 | m_pServer->port = p->getPort(); |
| 97 | m_pServer->mayView = p->getMayView(); |
| 98 | m_pServer->mayInteract = p->getMayInteract(); |
| 99 | |
| 100 | return 0; |
| 101 | } |
nothing calls this directly
no test coverage detected