/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos-ctl

  • Committer: Teddy Hogeborn
  • Date: 2016-07-03 03:32:28 UTC
  • Revision ID: teddy@recompile.se-20160703033228-cafpnnfs53kdg52g
Change all http:// URLs to https:// wherever possible.

* INSTALL (Prerequisites/Libraries/Mandos Server): Change "http://" to
  "https://" wherever possible.
* Makefile (FORTIFY): - '' -
* mandos.xml (SEE ALSO): - '' -
* plugin-runner.c (main): - '' -
* plugins.d/mandos-client.c (start_mandos_communication): - '' -
* plugins.d/mandos-client.xml (SEE ALSO): - '' -

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
    "ApprovalDelay": "Approval Delay",
66
66
    "ApprovalDuration": "Approval Duration",
67
67
    "Checker": "Checker",
68
 
    "ExtendedTimeout": "Extended Timeout"
 
68
    "ExtendedTimeout": "Extended Timeout",
 
69
    "Expires": "Expires",
 
70
    "LastCheckerStatus": "Last Checker Status",
69
71
}
70
72
defaultkeywords = ("Name", "Enabled", "Timeout", "LastCheckedOK")
71
73
domain = "se.recompile"
400
402
                        "ApprovalPending", "ApprovedByDefault",
401
403
                        "LastApprovalRequest", "ApprovalDelay",
402
404
                        "ApprovalDuration", "Checker",
403
 
                        "ExtendedTimeout")
 
405
                        "ExtendedTimeout", "Expires",
 
406
                        "LastCheckerStatus")
404
407
        else:
405
408
            keywords = defaultkeywords
406
409
        
407
410
        if options.dump_json:
408
 
            json.dump({client["Name"]: {key: client[key]
 
411
            json.dump({client["Name"]: {key:
 
412
                                        bool(client[key])
 
413
                                        if isinstance(client[key],
 
414
                                                      dbus.Boolean)
 
415
                                        else client[key]
409
416
                                        for key in keywords }
410
417
                       for client in clients.values() },
411
418
                      fp = sys.stdout, indent = 4,