diff options
author | Werner Koch <[email protected]> | 2001-01-04 14:11:55 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2001-01-04 14:11:55 +0000 |
commit | bb8276a4ee2b47b20393d2eff9b3e7d62364ef34 (patch) | |
tree | 46b9c903f40daca4df53f8c99936108d4ee337d5 | |
parent | Add KEY_CREATED status (diff) | |
download | gnupg-bb8276a4ee2b47b20393d2eff9b3e7d62364ef34.tar.gz gnupg-bb8276a4ee2b47b20393d2eff9b3e7d62364ef34.zip |
Small W32 fixes
-rw-r--r-- | cipher/dynload.c | 3 | ||||
-rw-r--r-- | doc/DETAILS | 7 | ||||
-rw-r--r-- | g10/ChangeLog | 5 | ||||
-rw-r--r-- | g10/g10.c | 12 |
4 files changed, 26 insertions, 1 deletions
diff --git a/cipher/dynload.c b/cipher/dynload.c index adf576780..879d2ec6d 100644 --- a/cipher/dynload.c +++ b/cipher/dynload.c @@ -31,6 +31,9 @@ #include <dl.h> #include <errno.h> #endif +#ifdef __MINGW32__ + #include <windows.h> +#endif #include "util.h" #include "cipher.h" #include "dynload.h" diff --git a/doc/DETAILS b/doc/DETAILS index 11a540af6..dc9743c6d 100644 --- a/doc/DETAILS +++ b/doc/DETAILS @@ -226,6 +226,13 @@ more arguments in future versions. 'S' = standard (only the first character should be checked) class: 2 hex digits with the signature class + + KEY_CREATED <type> + A key has been created + type: 'B' = primary and subkey + 'P' = primary + 'S' = subkey + SESSION_KEY <algo>:<hexdigits> The session key used to decrypt the message. This message will diff --git a/g10/ChangeLog b/g10/ChangeLog index 691e3f59a..84dd695eb 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,3 +1,8 @@ +2001-01-04 Werner Koch <[email protected]> + + * g10.c (main): Set homedir only in the pre-parsing phase and + replaces backslashes in the W32 version. + 2001-01-03 Werner Koch <[email protected]> * status.c, status.h : New status KEY_CREATED @@ -684,6 +684,16 @@ main( int argc, char **argv ) #endif } + #ifdef HAVE_DOSISH_SYSTEM + if ( strchr (opt.homedir,'\\') ) { + char *d, *buf = m_alloc (strlen (opt.homedir)+1); + const char *s = opt.homedir; + for (d=buf,s=opt.homedir; *s; s++) + *d++ = *s == '\\'? '/': *s; + *d = 0; + opt.homedir = buf; + } + #endif #ifdef USE_SHM_COPROCESSING if( opt.shm_coprocess ) { @@ -838,7 +848,7 @@ main( int argc, char **argv ) opt.def_recipient_self = 0; break; case oNoOptions: break; /* no-options */ - case oHomedir: opt.homedir = pargs.r.ret_str; break; + case oHomedir: break; case oNoBatch: opt.batch = 0; break; case oWithKeyData: opt.with_key_data=1; /* fall thru */ case oWithColons: opt.with_colons=':'; break; |