diff options
| author | Werner Koch <[email protected]> | 1999-02-10 16:22:40 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 1999-02-10 16:22:40 +0000 |
| commit | 9a4f506a18ed04f5dbd69d74ec0c35ade79e357a (patch) | |
| tree | 07178f77cb23862b045b0edf8a2bc5ce188432cd /util/secmem.c | |
| parent | See ChangeLog: Sun Jan 24 18:16:26 CET 1999 Werner Koch (diff) | |
| download | gnupg-9a4f506a18ed04f5dbd69d74ec0c35ade79e357a.tar.gz gnupg-9a4f506a18ed04f5dbd69d74ec0c35ade79e357a.zip | |
See ChangeLog: Wed Feb 10 17:15:39 CET 1999 Werner Koch
Diffstat (limited to 'util/secmem.c')
| -rw-r--r-- | util/secmem.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/util/secmem.c b/util/secmem.c index e9bc05abd..0aa4e9f61 100644 --- a/util/secmem.c +++ b/util/secmem.c @@ -217,7 +217,7 @@ void secmem_init( size_t n ) { if( !n ) { - #ifndef __MINGW32__ + #ifndef HAVE_DOSISH_SYSTEM uid_t uid; disable_secmem=1; @@ -245,8 +245,12 @@ secmem_malloc( size_t size ) MEMBLOCK *mb, *mb2; int compressed=0; - if( !pool_okay ) - log_bug("secmem not initialized\n"); + if( !pool_okay ) { + log_info( + _("operation is not possible without initialized secure memory\n")); + log_info(_("(you may have used the wrong program for this task)\n")); + exit(2); + } if( show_warning && !suspend_warning ) { show_warning = 0; print_warn(); |
