/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/password-prompt.c

  • Committer: Teddy Hogeborn
  • Date: 2008-10-18 10:58:29 UTC
  • Revision ID: teddy@fukt.bsnet.se-20081018105829-qaav4114v6pengqr
* Makefile (all): Also depend on "mandos.lsm".
  (mandos.lsm): New; update version and date fields.

* mandos.lsm: New; for submission to ibiblio.org, and possibly others.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
/*
3
3
 * Passprompt - Read a password from the terminal and print it
4
4
 *
5
 
 * Copyright © 2007-2008 Teddy Hogeborn & Björn Påhlsson
 
5
 * Copyright © 2008 Teddy Hogeborn & Björn Påhlsson
6
6
 * 
7
7
 * This program is free software: you can redistribute it and/or
8
8
 * modify it under the terms of the GNU General Public License as
52
52
 
53
53
volatile bool quit_now = false;
54
54
bool debug = false;
55
 
const char *argp_program_version = "password-prompt 1.0";
 
55
const char *argp_program_version = "password-prompt " VERSION;
56
56
const char *argp_program_bug_address = "<mandos@fukt.bsnet.se>";
57
57
 
58
58
static void termination_handler(__attribute__((unused))int signum){
249
249
      fprintf(stderr, "getline() returned 0, retrying.\n");
250
250
    }
251
251
  }
 
252
 
 
253
  free(buffer);
252
254
  
253
255
  if (debug){
254
256
    fprintf(stderr, "Restoring terminal attributes\n");