diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2012-11-14 18:28:05 +0000 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2012-11-14 18:28:14 +0000 |
commit | 3b8e10508cc3df67de30c52db272e6fdbdef5815 (patch) | |
tree | ce3116b936ee527896657729e1c13b55920b52d7 /examples | |
parent | ded49b6801c402dde75492d9d4b0b948c4bad35d (diff) |
dump-certificates: don't use real passwords
Diffstat (limited to 'examples')
-rw-r--r-- | examples/dump-certificates.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/dump-certificates.c b/examples/dump-certificates.c index b039356..7c62c03 100644 --- a/examples/dump-certificates.c +++ b/examples/dump-certificates.c @@ -151,14 +151,17 @@ main (int argc, g_type_init (); wocky_init (); - if (argc != 3) + if (argc != 2) { - g_printerr ("Usage: %s <jid> <password>\n", argv[0]); + g_printerr ("Usage: %s <jid>\n", argv[0]); return -1; } jid = argv[1]; - password = argv[2]; + /* This example doesn't use your real password because it does not actually + * validate certificates: it just dumps them then declares them valid. + */ + password = "not a chance"; mainloop = g_main_loop_new (NULL, FALSE); handler = g_object_new (dump_tls_handler_get_type (), NULL); |