/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

  • Committer: Björn Påhlsson
  • Date: 2011-11-11 14:14:24 UTC
  • mto: (518.2.5 persistent-state-gpgme)
  • mto: This revision was merged to the branch mainline in revision 524.
  • Revision ID: belorn@fukt.bsnet.se-20111111141424-405blpt3kwrla6lw
new signal: NewRequest(IP_address)
            Sent when a client ask for its password

Show diffs side-by-side

added added

removed removed

Lines of Context:
1122
1122
        "D-Bus signal"
1123
1123
        return self.need_approval()
1124
1124
    
 
1125
    # NeRwequest - signal
 
1126
    @dbus.service.signal(_interface, signature="s")
 
1127
    def NewRequest(self, ip):
 
1128
        """D-Bus signal
 
1129
        Is sent after a client request a password.
 
1130
        """
 
1131
        pass
 
1132
 
1125
1133
    ## Methods
1126
1134
    
1127
1135
    # Approve - method
1425
1433
                    logger.warning("Bad certificate: %s", error)
1426
1434
                    return
1427
1435
                logger.debug("Fingerprint: %s", fpr)
 
1436
                if self.server.use_dbus:
 
1437
                    # Emit D-Bus signal
 
1438
                    client.NewRequest(str(self.client_address))
1428
1439
                
1429
1440
                try:
1430
1441
                    client = ProxyClient(child_pipe, fpr,