Skip to content

Commit

Permalink
Add JS HTTP server to smartjs
Browse files Browse the repository at this point in the history
    PUBLISHED_FROM=13210e55d9434917549dcbf9a39a5377181f8387
  • Loading branch information
cpq authored and Marko Mikulicic committed Oct 21, 2015
1 parent 1eaabdd commit 57b35e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mongoose.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ void cs_hmac_sha1(const unsigned char *key, size_t keylen,

/* Amalgamated: #include "md5.h" */

#ifndef CS_ENABLE_NATIVE_MD5
static void byteReverse(unsigned char *buf, unsigned longs) {
/* Forrest: MD5 expect LITTLE_ENDIAN, swap if BIG_ENDIAN */
#if BYTE_ORDER == BIG_ENDIAN
Expand Down Expand Up @@ -661,6 +662,7 @@ void MD5_Final(unsigned char digest[16], MD5_CTX *ctx) {
memcpy(digest, ctx->buf, 16);
memset((char *) ctx, 0, sizeof(*ctx));
}
#endif /* CS_ENABLE_NATIVE_MD5 */

/*
* Stringify binary data. Output buffer size must be 2 * size_of_input + 1
Expand Down

0 comments on commit 57b35e6

Please sign in to comment.