[Spice-devel] [PATCH] client/smartcard: handle the --smartcard-db option
Alon Levy
alevy at redhat.com
Sun Mar 6 01:54:54 PST 2011
On Fri, Mar 04, 2011 at 08:51:17PM +0100, Hans de Goede wrote:
> Ack.
>
pushing to 0.8 branch as well (for 0.8.1).
> On 03/04/2011 08:37 AM, Alon Levy wrote:
> >---
> > client/application.cpp | 5 ++++-
> > 1 files changed, 4 insertions(+), 1 deletions(-)
> >
> >diff --git a/client/application.cpp b/client/application.cpp
> >index 3333b0c..4cb5c2d 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();
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
More information about the Spice-devel
mailing list