aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2000-09-18 10:11:44 +0000
committerWerner Koch <[email protected]>2000-09-18 10:11:44 +0000
commitfe88f35c404c746b40d884e9d108449c3f99465e (patch)
tree2ae6536b8b320eede929592f12e47d8fce29fea1
parentSee ChangeLog: Fri Sep 15 18:40:36 CEST 2000 Werner Koch (diff)
downloadgnupg-fe88f35c404c746b40d884e9d108449c3f99465e.tar.gz
gnupg-fe88f35c404c746b40d884e9d108449c3f99465e.zip
See ChangeLog: Mon Sep 18 12:13:52 CEST 2000 Werner Koch
-rw-r--r--cipher/rndw32.c9
-rw-r--r--g10/ChangeLog4
-rw-r--r--g10/hkp.c12
-rw-r--r--util/miscutil.c20
-rw-r--r--util/ttyio.c2
5 files changed, 34 insertions, 13 deletions
diff --git a/cipher/rndw32.c b/cipher/rndw32.c
index 755d399fc..059cd6bc2 100644
--- a/cipher/rndw32.c
+++ b/cipher/rndw32.c
@@ -299,16 +299,21 @@ gather_random_fast( void (*add)(const void*, size_t, int), int requester )
* Definitions which are missing from the current GNU Windows32Api
*/
+#ifndef TH32CS_SNAPHEAPLIST
#define TH32CS_SNAPHEAPLIST 1
#define TH32CS_SNAPPROCESS 2
#define TH32CS_SNAPTHREAD 4
#define TH32CS_SNAPMODULE 8
#define TH32CS_SNAPALL (1|2|4|8)
#define TH32CS_INHERIT 0x80000000
+#endif /*TH32CS_SNAPHEAPLIST*/
+#ifndef IOCTL_DISK_PERFORMANCE
#define IOCTL_DISK_PERFORMANCE 0x00070020
-#define VER_PLATFORM_WIN32_WINDOWS 1
-
+#endif
+#ifndef IOCTL_DISK_PERFORMANCE
+#define VER_PLATFORM_WIN32_WINDOWSw 1
+#endif
typedef struct {
DWORD dwSize;
diff --git a/g10/ChangeLog b/g10/ChangeLog
index 89fcf0341..5a903c625 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,7 @@
+Mon Sep 18 12:13:52 CEST 2000 Werner Koch <[email protected]>
+
+ * hkp.c (not_implemented): Print a notice for W32
+
Fri Sep 15 18:40:36 CEST 2000 Werner Koch <[email protected]>
* keygen.c (keygen_add_std_prefs): Changed order of preferences to
diff --git a/g10/hkp.c b/g10/hkp.c
index 3b1b2cea3..9df6da83b 100644
--- a/g10/hkp.c
+++ b/g10/hkp.c
@@ -38,6 +38,15 @@
static int urlencode_filter( void *opaque, int control,
IOBUF a, byte *buf, size_t *ret_len);
+#ifdef HAVE_DOSISH_SYSTEM
+static void
+not_implemented(void)
+{
+ log_error("keyserver access ist not yet available for MS-Windows\n");
+}
+#endif
+
+
/****************
* Try to import the key with KEYID from a keyserver but ask the user
* before doing so.
@@ -50,6 +59,7 @@ int
hkp_ask_import( u32 *keyid )
{
#ifdef HAVE_DOSISH_SYSTEM
+ not_implemented();
return -1;
#else
struct http_context hd;
@@ -92,6 +102,7 @@ int
hkp_import( STRLIST users )
{
#ifdef HAVE_DOSISH_SYSTEM
+ not_implemented();
return -1;
#else
if( !opt.keyserver_name ) {
@@ -122,6 +133,7 @@ int
hkp_export( STRLIST users )
{
#ifdef HAVE_DOSISH_SYSTEM
+ not_implemented();
return -1;
#else
int rc;
diff --git a/util/miscutil.c b/util/miscutil.c
index ed2915ef1..d1af604e6 100644
--- a/util/miscutil.c
+++ b/util/miscutil.c
@@ -274,10 +274,10 @@ make_printable_string( const byte *p, size_t n, int delim )
int
answer_is_yes( const char *s )
{
- char *long_yes = _("yes");
- char *short_yes = _("yY");
- char *long_no = _("no");
- char *short_no = _("nN");
+ const char *long_yes = _("yes");
+ const char *short_yes = _("yY");
+ const char *long_no = _("no");
+ const char *short_no = _("nN");
if( !stricmp(s, long_yes ) )
return 1;
@@ -303,12 +303,12 @@ answer_is_yes( const char *s )
int
answer_is_yes_no_quit( const char *s )
{
- char *long_yes = _("yes");
- char *long_no = _("no");
- char *long_quit = _("quit");
- char *short_yes = _("yY");
- char *short_no = _("nN");
- char *short_quit = _("qQ");
+ const char *long_yes = _("yes");
+ const char *long_no = _("no");
+ const char *long_quit = _("quit");
+ const char *short_yes = _("yY");
+ const char *short_no = _("nN");
+ const char *short_quit = _("qQ");
if( !stricmp(s, long_no ) )
return 0;
diff --git a/util/ttyio.c b/util/ttyio.c
index 781077043..bef688221 100644
--- a/util/ttyio.c
+++ b/util/ttyio.c
@@ -193,7 +193,7 @@ tty_printf( const char *fmt, ... )
if( !WriteConsoleA( con.out, buf, n, &nwritten, NULL ) )
log_fatal("WriteConsole failed: rc=%d", (int)GetLastError() );
if( n != nwritten )
- log_fatal("WriteConsole failed: %d != %ld\n", n, nwritten );
+ log_fatal("WriteConsole failed: %d != %d\n", n, nwritten );
last_prompt_len += n;
}
#else