mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-08 08:41:48 +00:00
client: handle CONTROLLER_ENABLE_SMARTCARD (rhbz 641828)
This commit is contained in:
parent
bbd01f5f63
commit
26516fc5a2
@ -1675,6 +1675,11 @@ void Application::set_title(const std::string& title)
|
||||
}
|
||||
}
|
||||
|
||||
void Application::enable_smartcard(bool enable)
|
||||
{
|
||||
_smartcard_options->enable = enable;
|
||||
}
|
||||
|
||||
bool Application::is_key_set_pressed(const HotkeySet& key_set)
|
||||
{
|
||||
HotkeySet::const_iterator iter = key_set.begin();
|
||||
|
||||
@ -227,6 +227,7 @@ public:
|
||||
void external_show();
|
||||
void connect();
|
||||
void switch_host(const std::string& host, int port, int sport, const std::string& cert_subject);
|
||||
void enable_smartcard(bool enable);
|
||||
|
||||
const PeerConnectionOptMap& get_con_opt_map() {return _peer_con_opt;}
|
||||
const RedPeer::HostAuthOptions& get_host_auth_opt() { return _host_auth_opt;}
|
||||
|
||||
@ -334,9 +334,12 @@ bool ControllerConnection::handle_message(ControllerMsg *hdr)
|
||||
case CONTROLLER_DELETE_MENU:
|
||||
_handler->delete_menu();
|
||||
break;
|
||||
case CONTROLLER_ENABLE_SMARTCARD:
|
||||
_handler->enable_smartcard(value);
|
||||
break;
|
||||
case CONTROLLER_SEND_CAD:
|
||||
default:
|
||||
LOG_ERROR("Ignoring an unknown controller message %u", hdr->id);
|
||||
LOG_ERROR("Ignoring an unknown/SEND_CAD controller message %u", hdr->id);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@ -50,6 +50,7 @@ public:
|
||||
virtual Menu* get_app_menu() = 0;
|
||||
virtual void set_menu(Menu* menu) = 0;
|
||||
virtual void delete_menu() = 0;
|
||||
virtual void enable_smartcard(bool enable) = 0;
|
||||
};
|
||||
|
||||
class Controller : public NamedPipe::ListenerInterface {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user