mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-30 22:13:03 +00:00
add new sha1 code on windows build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3089 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
f64ae18ac6
commit
faf7cd383b
@ -308,6 +308,10 @@
|
|||||||
RelativePath=".\src\libdingaling.c"
|
RelativePath=".\src\libdingaling.c"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\sha1.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter
|
<Filter
|
||||||
Name="Header Files"
|
Name="Header Files"
|
||||||
|
@ -62,6 +62,10 @@
|
|||||||
#include "libdingaling.h"
|
#include "libdingaling.h"
|
||||||
#include "sha1.h"
|
#include "sha1.h"
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma warning(disable:4127)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define microsleep(x) apr_sleep(x * 1000)
|
#define microsleep(x) apr_sleep(x * 1000)
|
||||||
|
|
||||||
static int opt_timeout = 30;
|
static int opt_timeout = 30;
|
||||||
@ -953,7 +957,7 @@ static void sha1_hash(char *out, char *in)
|
|||||||
|
|
||||||
SHA1Init(&sha);
|
SHA1Init(&sha);
|
||||||
|
|
||||||
SHA1Update(&sha, (unsigned char *) in, strlen(in));
|
SHA1Update(&sha, (unsigned char *) in, (unsigned int)strlen(in));
|
||||||
|
|
||||||
SHA1Final(digest, &sha);
|
SHA1Final(digest, &sha);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user