mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[winpr,crypto] rename OUT
visual studio compilers do have some symbol clashes, rename the function
This commit is contained in:
@@ -230,7 +230,7 @@ void winpr_MD4_Update(WINPR_MD4_CTX* ctx, const void* data, unsigned long size)
|
||||
memcpy(ctx->buffer, data, size);
|
||||
}
|
||||
|
||||
static inline void OUT(unsigned char* dst, winpr_MD4_u32plus src)
|
||||
static inline void mdOUT(unsigned char* dst, winpr_MD4_u32plus src)
|
||||
{
|
||||
(dst)[0] = (unsigned char)(src);
|
||||
(dst)[1] = (unsigned char)((src) >> 8);
|
||||
@@ -257,15 +257,15 @@ void winpr_MD4_Final(unsigned char* result, WINPR_MD4_CTX* ctx)
|
||||
memset(&ctx->buffer[used], 0, available - 8);
|
||||
|
||||
ctx->lo <<= 3;
|
||||
OUT(&ctx->buffer[56], ctx->lo);
|
||||
OUT(&ctx->buffer[60], ctx->hi);
|
||||
mdOUT(&ctx->buffer[56], ctx->lo);
|
||||
mdOUT(&ctx->buffer[60], ctx->hi);
|
||||
|
||||
body(ctx, ctx->buffer, 64);
|
||||
|
||||
OUT(&result[0], ctx->a);
|
||||
OUT(&result[4], ctx->b);
|
||||
OUT(&result[8], ctx->c);
|
||||
OUT(&result[12], ctx->d);
|
||||
mdOUT(&result[0], ctx->a);
|
||||
mdOUT(&result[4], ctx->b);
|
||||
mdOUT(&result[8], ctx->c);
|
||||
mdOUT(&result[12], ctx->d);
|
||||
|
||||
memset(ctx, 0, sizeof(*ctx));
|
||||
}
|
||||
|
||||
@@ -255,7 +255,7 @@ void winpr_MD5_Update(WINPR_MD5_CTX* ctx, const void* data, unsigned long size)
|
||||
memcpy(ctx->buffer, data, size);
|
||||
}
|
||||
|
||||
static inline void OUT(unsigned char* dst, winpr_MD5_u32plus src)
|
||||
static inline void mdOUT(unsigned char* dst, winpr_MD5_u32plus src)
|
||||
{
|
||||
(dst)[0] = (unsigned char)(src);
|
||||
(dst)[1] = (unsigned char)((src) >> 8);
|
||||
@@ -282,15 +282,15 @@ void winpr_MD5_Final(unsigned char* result, WINPR_MD5_CTX* ctx)
|
||||
memset(&ctx->buffer[used], 0, available - 8);
|
||||
|
||||
ctx->lo <<= 3;
|
||||
OUT(&ctx->buffer[56], ctx->lo);
|
||||
OUT(&ctx->buffer[60], ctx->hi);
|
||||
mdOUT(&ctx->buffer[56], ctx->lo);
|
||||
mdOUT(&ctx->buffer[60], ctx->hi);
|
||||
|
||||
body(ctx, ctx->buffer, 64);
|
||||
|
||||
OUT(&result[0], ctx->a);
|
||||
OUT(&result[4], ctx->b);
|
||||
OUT(&result[8], ctx->c);
|
||||
OUT(&result[12], ctx->d);
|
||||
mdOUT(&result[0], ctx->a);
|
||||
mdOUT(&result[4], ctx->b);
|
||||
mdOUT(&result[8], ctx->c);
|
||||
mdOUT(&result[12], ctx->d);
|
||||
|
||||
memset(ctx, 0, sizeof(*ctx));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user