| 687 | } |
| 688 | |
| 689 | void CBackendVnc::getUserPasswd(bool secure, std::string *user, std::string *password) |
| 690 | { |
| 691 | if(password) |
| 692 | { |
| 693 | auto &user = m_pPara->m_Net.m_User; |
| 694 | *password = user.GetPassword().toStdString(); |
| 695 | if(user.GetPassword().isEmpty()) |
| 696 | { |
| 697 | int nRet = QDialog::Rejected; |
| 698 | auto *net = &m_pPara->m_Net; |
| 699 | emit sigBlockShowWidget("CDlgUserPassword", nRet, net); |
| 700 | if(QDialog::Accepted == nRet) |
| 701 | { |
| 702 | *password = user.GetPassword().toStdString(); |
| 703 | } |
| 704 | } |
| 705 | if(!password->empty()) |
| 706 | m_SecurityLevel |= CSecurityLevel::Level::Authentication; |
| 707 | } |
| 708 | } |
| 709 | |
| 710 | int CBackendVnc::getX509File(std::string *ca, std::string *crl) |
| 711 | { |
nothing calls this directly
no test coverage detected