[Freeswitch-svn] [commit] r3089 - in freeswitch/trunk/libs/libdingaling: . src

Freeswitch SVN mikej at freeswitch.org
Wed Oct 18 21:21:43 EDT 2006


Author: mikej
Date: Wed Oct 18 21:21:43 2006
New Revision: 3089

Modified:
   freeswitch/trunk/libs/libdingaling/libdingaling.vcproj
   freeswitch/trunk/libs/libdingaling/src/libdingaling.c

Log:
add new sha1 code on windows build.

Modified: freeswitch/trunk/libs/libdingaling/libdingaling.vcproj
==============================================================================
--- freeswitch/trunk/libs/libdingaling/libdingaling.vcproj	(original)
+++ freeswitch/trunk/libs/libdingaling/libdingaling.vcproj	Wed Oct 18 21:21:43 2006
@@ -308,6 +308,10 @@
 				RelativePath=".\src\libdingaling.c"
 				>
 			</File>
+			<File
+				RelativePath=".\src\sha1.c"
+				>
+			</File>
 		</Filter>
 		<Filter
 			Name="Header Files"

Modified: freeswitch/trunk/libs/libdingaling/src/libdingaling.c
==============================================================================
--- freeswitch/trunk/libs/libdingaling/src/libdingaling.c	(original)
+++ freeswitch/trunk/libs/libdingaling/src/libdingaling.c	Wed Oct 18 21:21:43 2006
@@ -62,6 +62,10 @@
 #include "libdingaling.h"
 #include "sha1.h"
 
+#ifdef _MSC_VER
+#pragma warning(disable:4127)
+#endif
+
 #define microsleep(x) apr_sleep(x * 1000)
 
 static int opt_timeout = 30;
@@ -953,7 +957,7 @@
 
 	SHA1Init(&sha);
 	
-	SHA1Update(&sha, (unsigned char *) in, strlen(in));
+	SHA1Update(&sha, (unsigned char *) in, (unsigned int)strlen(in));
 
 	SHA1Final(digest, &sha);
 



More information about the Freeswitch-svn mailing list