diff options
author | Noel Power <noel.power@suse.com> | 2018-07-31 17:02:54 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-09-27 01:54:27 +0200 |
commit | d28b4fa3611a8b2aaac4c37ec79907a724d6f0f7 (patch) | |
tree | f94ee8697479db58ddc420121edf79c83a9c39c5 /buildtools/wafsamba | |
parent | 2d94839f9f5b34f951d9b15532cecbdf3334a7b1 (diff) | |
download | samba-d28b4fa3611a8b2aaac4c37ec79907a724d6f0f7.tar.gz |
PY3: md5 related functions need to be passed bytes
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r-- | buildtools/wafsamba/samba_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py index fd61b8425d8..b4da3c5246f 100644 --- a/buildtools/wafsamba/samba_utils.py +++ b/buildtools/wafsamba/samba_utils.py @@ -358,13 +358,13 @@ try: # Even if hashlib.md5 exists, it may be unusable. # Try to use MD5 function. In FIPS mode this will cause an exception # and we'll get to the replacement code - foo = md5('abcd') + foo = md5(b'abcd') except: try: import md5 # repeat the same check here, mere success of import is not enough. # Try to use MD5 function. In FIPS mode this will cause an exception - foo = md5.md5('abcd') + foo = md5.md5(b'abcd') except: Context.SIG_NIL = hash('abcd') class replace_md5(object): |