Paolo Abeni wrote:
I get the following message if I enable the console window.
can't load private key from C:\Shared\work\server.key
There is still an issue into the HAVE_LIBGNUTLS macro definition. I'm
fixing it and cleaning a bit the windows side configuration. I hope to
post soon the fix.
The attached patch should fix the issue. I missed to modify the
config.win32 file and I misstyped a few macros name.
In order to get the gnutls library working, the attached include file
(winprosixtype.h) must be copied into the gnutls include dir (something
like c:\ethereal-win32-libs\gnutls-win32-msvc\gnults in the default
config). The runtime library for the gnutls build must also be set to
"Multithreaded DLL"
Please report any progress or issue,
Paolo
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Solo 10 Euro per chiamare in tutto il mondo!! Scopri il vantaggio di Email Phone Card, clicca subito
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2685&d=7-2
Index: gtk/Makefile.nmake
===================================================================
--- gtk/Makefile.nmake (revision 17198)
+++ gtk/Makefile.nmake (working copy)
@@ -7,7 +7,7 @@
############### no need to modify below this line #########
-CFLAGS=-DHAVE_CONFIG_H /I.. /I../wiretap $(GTK_CFLAGS) \
+CFLAGS=-DHAVE_CONFIG_H /I.. /I../wiretap $(GTK_CFLAGS) $(GNUTLS_CFLAGS) \
/I$(PCAP_DIR)\WPCAP\LIBPCAP /I$(PCAP_DIR)\WPCAP\LIBPCAP\bpf \
/I$(PCAP_DIR)\WPCAP\LIBPCAP\lbl \
/I$(PCAP_DIR)\include /I$(NET_SNMP_DIR)\include \
Index: epan/dissectors/packet-ssl-utils.h
===================================================================
--- epan/dissectors/packet-ssl-utils.h (revision 17198)
+++ epan/dissectors/packet-ssl-utils.h (working copy)
@@ -27,9 +27,8 @@
#include <epan/gnuc_format_check.h>
#ifdef HAVE_LIBGNUTLS
-
#ifdef _WIN32
-#include <gcrypt_conf.h>
+#include <winposixtype.h>
#endif
#include <stdio.h>
Index: epan/dissectors/packet-ssl.c
===================================================================
--- epan/dissectors/packet-ssl.c (revision 17198)
+++ epan/dissectors/packet-ssl.c (working copy)
@@ -403,13 +403,19 @@
ssl_debug_printf("ssl_init found host entry %s\n", addr);
port = strchr(addr, ':');
if (!port)
+ {
+ ssl_debug_printf("ssl_init entry malformed can't find port in %s\n", addr);
break;
+ }
*port = 0;
port++;
filename = strchr(port,':');
if (!filename)
+ {
+ ssl_debug_printf("ssl_init entry malformed can't find filename in %s\n", port);
break;
+ }
*filename=0;
filename++;
Index: config.nmake
===================================================================
--- config.nmake (revision 17198)
+++ config.nmake (working copy)
@@ -419,9 +419,9 @@
!IFDEF GNUTLS_DIR
GNUTLS_PATH=$(GNUTLS_DIR)
GNUTLS_CFLAGS=/I$(GNUTLS_DIR)
-GNUTLS_LIBS=$(GNUTLS_DIR)\gnutls.lib
+GNUTLS_LIBS=$(GNUTLS_DIR)\gnutls.lib user32.lib
# Nmake uses carets to escape special characters
-GNUTLS_CONFIG=^#define HAVE_GNUTLS 1
+GNUTLS_CONFIG=^#define HAVE_LIBGNUTLS 1
!else
GNUTLS_CFLAGS=
GNUTLS_LIBS=
Index: config.h.win32
===================================================================
--- config.h.win32 (revision 17198)
+++ config.h.win32 (working copy)
@@ -193,6 +193,9 @@
/* Define to use the Nettle library */
@HAVE_NETTLE@
+/* Define to use the gnutls library*/
+@HAVE_GNUTLS@
+
#ifndef WIN32
#define WIN32 1
#endif
#ifndef WIN_POSIX_TYPES_H
#define WIN_POSIX_TYPES_H
#define ssize_t int
#define pid_t int
#define SIZEOF_UNSIGNED_LONG 4
#define SIZEOF_UNSIGNED_INT 4
#define SIZEOF_UNSIGNED_SHORT 2
#define SIZEOF_UNSIGNED_CHAR 1
#endif