diff options
author | Alon Levy <alevy@redhat.com> | 2011-03-04 09:36:49 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-03-08 21:18:55 +0200 |
commit | 1af83642c14864b5cbbf6d2d7d92b9929789302d (patch) | |
tree | d245d02da18cedbd1c6544ec8c8e261682db35c4 /client | |
parent | 1a648fb3974ed638927a14d566e072915bfea50c (diff) | |
download | spice-1af83642c14864b5cbbf6d2d7d92b9929789302d.tar.gz spice-1af83642c14864b5cbbf6d2d7d92b9929789302d.tar.xz spice-1af83642c14864b5cbbf6d2d7d92b9929789302d.zip |
client/smartcard: handle the --smartcard-db option
Diffstat (limited to 'client')
-rw-r--r-- | client/application.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/application.cpp b/client/application.cpp index 3333b0ce..4cb5c2db 100644 --- a/client/application.cpp +++ b/client/application.cpp @@ -2271,7 +2271,7 @@ bool Application::process_cmd_line(int argc, char** argv, bool &full_screen) parser.add(SPICE_OPT_SMARTCARD_CERT, "smartcard-cert", "Use virtual reader+card with given cert(s)", "smartcard-cert", true); parser.set_multi(SPICE_OPT_SMARTCARD_CERT, ','); - parser.add(SPICE_OPT_SMARTCARD_DB, "smartcard-db", "Use given db for smartcard certs"); + parser.add(SPICE_OPT_SMARTCARD_DB, "smartcard-db", "Use given db for smartcard certs", "smartcard-db", true); #endif for (int i = SPICE_CHANNEL_MAIN; i < SPICE_END_CHANNEL; i++) { @@ -2395,6 +2395,9 @@ bool Application::process_cmd_line(int argc, char** argv, bool &full_screen) _smartcard_options->certs.end(), std::string(val)); } while ((val=parser.next_argument())); break; + case SPICE_OPT_SMARTCARD_DB: + _smartcard_options->dbname = val; + break; #endif case CmdLineParser::OPTION_HELP: parser.show_help(); |