Commit 57b35e60 authored by Sergey Lyubka's avatar Sergey Lyubka Committed by Marko Mikulicic

Add JS HTTP server to smartjs

    PUBLISHED_FROM=13210e55d9434917549dcbf9a39a5377181f8387
parent 1eaabdd8
...@@ -478,6 +478,7 @@ void cs_hmac_sha1(const unsigned char *key, size_t keylen, ...@@ -478,6 +478,7 @@ void cs_hmac_sha1(const unsigned char *key, size_t keylen,
/* Amalgamated: #include "md5.h" */ /* Amalgamated: #include "md5.h" */
#ifndef CS_ENABLE_NATIVE_MD5
static void byteReverse(unsigned char *buf, unsigned longs) { static void byteReverse(unsigned char *buf, unsigned longs) {
/* Forrest: MD5 expect LITTLE_ENDIAN, swap if BIG_ENDIAN */ /* Forrest: MD5 expect LITTLE_ENDIAN, swap if BIG_ENDIAN */
#if BYTE_ORDER == BIG_ENDIAN #if BYTE_ORDER == BIG_ENDIAN
...@@ -661,6 +662,7 @@ void MD5_Final(unsigned char digest[16], MD5_CTX *ctx) { ...@@ -661,6 +662,7 @@ void MD5_Final(unsigned char digest[16], MD5_CTX *ctx) {
memcpy(digest, ctx->buf, 16); memcpy(digest, ctx->buf, 16);
memset((char *) ctx, 0, sizeof(*ctx)); memset((char *) ctx, 0, sizeof(*ctx));
} }
#endif /* CS_ENABLE_NATIVE_MD5 */
/* /*
* Stringify binary data. Output buffer size must be 2 * size_of_input + 1 * Stringify binary data. Output buffer size must be 2 * size_of_input + 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment