"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/ne_md5.c" between
neon-0.31.1.tar.gz and neon-0.31.2.tar.gz

About: neon is an HTTP and WebDAV client library, with a C interface.

ne_md5.c  (neon-0.31.1):ne_md5.c  (neon-0.31.2)
skipping to change at line 426 skipping to change at line 426
/* Put result from CTX in first 16 bytes following RESBUF. The result /* Put result from CTX in first 16 bytes following RESBUF. The result
must be in little endian byte order. must be in little endian byte order.
IMPORTANT: On some systems it is required that RESBUF is correctly IMPORTANT: On some systems it is required that RESBUF is correctly
aligned for a 32 bits value. */ aligned for a 32 bits value. */
void * void *
md5_read_ctx (const struct md5_ctx *ctx, void *resbuf) md5_read_ctx (const struct md5_ctx *ctx, void *resbuf)
{ {
#ifdef HAVE_OPENSSL #ifdef HAVE_OPENSSL
#define SWAP_CTX(x) (ctx->ctx.x) #define SWAP_CTX(x) SWAP(ctx->ctx.x)
#else #else
#define SWAP_CTX(x) (ctx->x) #define SWAP_CTX(x) SWAP(ctx->x)
#endif #endif
((md5_uint32 *) resbuf)[0] = SWAP_CTX (A); ((md5_uint32 *) resbuf)[0] = SWAP_CTX (A);
((md5_uint32 *) resbuf)[1] = SWAP_CTX (B); ((md5_uint32 *) resbuf)[1] = SWAP_CTX (B);
((md5_uint32 *) resbuf)[2] = SWAP_CTX (C); ((md5_uint32 *) resbuf)[2] = SWAP_CTX (C);
((md5_uint32 *) resbuf)[3] = SWAP_CTX (D); ((md5_uint32 *) resbuf)[3] = SWAP_CTX (D);
return resbuf; return resbuf;
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)