Index: trunk/src/sh_unix.c
===================================================================
--- trunk/src/sh_unix.c	(revision 292)
+++ trunk/src/sh_unix.c	(revision 293)
@@ -1559,4 +1559,18 @@
 /* Get the local hostname (FQDN)
  */
+static char * sh_tolower (char * s)
+{
+  char * ret = s;
+  if (s)
+    {
+      for (; *s; ++s)
+	{ 
+	  *s = tolower((unsigned char) *s);
+	}
+    }
+  return ret;
+}
+
+
 #include <sys/socket.h> 
 
@@ -1648,4 +1662,5 @@
     {
       sl_strlcpy (sh.host.name, sh_unix_h_name(he1), SH_PATHBUF);
+      sh_tolower (sh.host.name);
     }
   SH_MUTEX_UNLOCK(mutex_resolv);
@@ -1657,4 +1672,5 @@
 	   hostname);
       sl_strlcpy (sh.host.name, hostname,    SH_PATHBUF);
+      sh_tolower (sh.host.name);
     }
   
@@ -1727,4 +1743,5 @@
     {
       sl_strlcpy (sh.host.name, sh_unix_h_name(he1), SH_PATHBUF);
+      sh_tolower (sh.host.name);
     }
   SH_MUTEX_UNLOCK(mutex_resolv);
Index: trunk/src/sh_utils.c
===================================================================
--- trunk/src/sh_utils.c	(revision 292)
+++ trunk/src/sh_utils.c	(revision 293)
@@ -796,4 +796,5 @@
   SL_RETURN( 0, _("sh_util_sigtype"));
 }
+
 
 char * sh_util_siggen (char * hexkey,  
