/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 plugins.d/passprompt.c

  • Committer: Teddy Hogeborn
  • Date: 2008-08-03 03:33:56 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080803033356-6aemgj0g0hoz91ow
* plugins.d/mandosclient.c (pgp_packet_decrypt): Renamed variables.
                                                 On debug, show
                                                 decrypted plaintext
                                                 in hexadecimal.  Free
                                                 the GPGME data
                                                 buffers even on
                                                 errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
volatile bool quit_now = false;
50
50
bool debug = false;
51
51
 
52
 
void termination_handler(__attribute__((unused))int signum){
 
52
static void termination_handler(__attribute__((unused))int signum){
53
53
  quit_now = true;
54
54
}
55
55
 
102
102
  
103
103
  sigemptyset(&new_action.sa_mask);
104
104
  sigaddset(&new_action.sa_mask, SIGINT);
105
 
  sigaddset(&new_action.sa_mask, SIGQUIT);
106
105
  sigaddset(&new_action.sa_mask, SIGHUP);
107
106
  sigaddset(&new_action.sa_mask, SIGTERM);
108
107
  sigaction(SIGINT, NULL, &old_action);
109
108
  if (old_action.sa_handler != SIG_IGN)
110
109
    sigaction(SIGINT, &new_action, NULL);
111
 
  sigaction(SIGQUIT, NULL, &old_action);
112
 
  if (old_action.sa_handler != SIG_IGN)
113
 
    sigaction(SIGQUIT, &new_action, NULL);
114
110
  sigaction(SIGHUP, NULL, &old_action);
115
111
  if (old_action.sa_handler != SIG_IGN)
116
112
    sigaction(SIGHUP, &new_action, NULL);