Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/lib/crypto/md5.c

    r414 r740  
    1919   abartlet@samba.org Jun 2001 */
    2020
    21 #include "includes.h"
     21#include "replace.h"
    2222
    2323#include "md5.h"
     
    2929 * Note: this code is harmless on little-endian machines.
    3030 */
    31 static void byteReverse(uint8_t *buf, uint_t longs)
     31static void byteReverse(uint8_t *buf, unsigned int longs)
    3232{
    3333    uint32_t t;
    3434    do {
    35         t = (uint32_t) ((uint_t) buf[3] << 8 | buf[2]) << 16 |
    36             ((uint_t) buf[1] << 8 | buf[0]);
     35        t = (uint32_t) ((unsigned int) buf[3] << 8 | buf[2]) << 16 |
     36            ((unsigned int) buf[1] << 8 | buf[0]);
    3737        *(uint32_t *) buf = t;
    3838        buf += 4;
     
    109109_PUBLIC_ void MD5Final(uint8_t digest[16], struct MD5Context *ctx)
    110110{
    111     uint_t count;
     111    unsigned int count;
    112112    uint8_t *p;
    113113
     
    145145    byteReverse((uint8_t *) ctx->buf, 4);
    146146    memmove(digest, ctx->buf, 16);
    147     memset(ctx, 0, sizeof(ctx));        /* In case it's sensitive */
     147    memset(ctx, 0, sizeof(*ctx));       /* In case it's sensitive */
    148148}
    149149
Note: See TracChangeset for help on using the changeset viewer.