Software / code / prosody
Comparison
util-src/hashes.c @ 5774:6ef79af0c445 0.9.0
util.hashes: Silence compiler warning about pointer signedness
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 09 Aug 2013 16:03:17 +0200 |
| parent | 5768:c892709f035d |
| child | 6411:6c8f6364bc48 |
comparison
equal
deleted
inserted
replaced
| 5769:f6ea5b3739c9 | 5774:6ef79af0c445 |
|---|---|
| 77 unsigned char bytes[64]; | 77 unsigned char bytes[64]; |
| 78 uint32_t quadbytes[16]; | 78 uint32_t quadbytes[16]; |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 int i; | 81 int i; |
| 82 char hashedKey[64]; /* Maximum used digest length */ | 82 unsigned char hashedKey[64]; /* Maximum used digest length */ |
| 83 union xory k_ipad, k_opad; | 83 union xory k_ipad, k_opad; |
| 84 | 84 |
| 85 if (key_len > 64) { | 85 if (key_len > 64) { |
| 86 desc->Init(desc->ctx); | 86 desc->Init(desc->ctx); |
| 87 desc->Update(desc->ctx, key, key_len); | 87 desc->Update(desc->ctx, key, key_len); |