pinentry/secmem (secmem.c util.c util.h)

[email protected] Mon, 22 Dec 2003 11:48:32 +0100
Newsgroups gmane.comp.encryption.gpg.aegypten.cvs
Message-ID <[email protected]>
    Date: Monday, December 22, 2003 @ 11:48:32
  Author: werner
    Path: /cvs/aegypten/pinentry/secmem

Modified: secmem.c util.c util.h

* pinentry/pinentry.c: New variable THIS_PGMNAME.
(pinentry_init): Add arg PGMNAME and store it.  Use it at all
marked placed instead of the constant "pinentry".
(usage): Use it here too.
* curses/pinentry-curses.c (main): Call pinentry_init wity our name. 
* qt/main.cpp (main): Ditto.
* gtk/pinentry-gtk.c (main): Ditto. 

* configure.ac: Check for mmap.

* secmem/util.h (wipememory2,wipememory,wipe): New.
* secmem/util.c (wipe): Removed.
* secmem/util.c (lower_privs, raise_privs): Commented out.

* pinentry/pinentry.c (pinentry_loop): Add paranoia check for
dropped privs.

* secmem/secmem.c (lock_pool): Cleanup syntax of cpp directives.

* gtk/pinentry-gtk.c (main): Print package name in the version line.
* curses/pinentry-curses.c (main): Ditto.
* qt/main.cpp (main): Ditto. Fixed typo.

* gtk/pinentry-gtk.c: Include memory.h.


----------+
 secmem.c |   64 +++++++++++++++++++++++++++++++------------------------------
 util.c   |   15 +++++---------
 util.h   |   17 +++++++++++++---
 3 files changed, 53 insertions(+), 43 deletions(-)