diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2009-02-13 03:00:00 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2009-02-13 03:00:00 (GMT) |
commit | ea38826ab28e1621f109953f068992c69d386dee (patch) | |
tree | 5816309e758042633f930c9e0781d456ba97dac5 /Modules/md5.h | |
parent | b516c126ef7b69e4b6560fe98ed4529f21fdb7eb (diff) | |
download | cpython-ea38826ab28e1621f109953f068992c69d386dee.zip cpython-ea38826ab28e1621f109953f068992c69d386dee.tar.gz cpython-ea38826ab28e1621f109953f068992c69d386dee.tar.bz2 |
- Issue #3745: Fix hashlib to always reject unicode and non buffer-api
supporting objects as input no matter how it was compiled (built in
implementations or external openssl library).
(backported from a py3k branch)
Diffstat (limited to 'Modules/md5.h')
-rw-r--r-- | Modules/md5.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/md5.h b/Modules/md5.h index 5eb6d6c..0ab0e68 100644 --- a/Modules/md5.h +++ b/Modules/md5.h @@ -79,7 +79,7 @@ extern "C" void md5_init(md5_state_t *pms); /* Append a string to the message. */ -void md5_append(md5_state_t *pms, const md5_byte_t *data, int nbytes); +void md5_append(md5_state_t *pms, const md5_byte_t *data, unsigned int nbytes); /* Finish the message and return the digest. */ void md5_finish(md5_state_t *pms, md5_byte_t digest[16]); |