diff options
author | Jose <jose@zeroc.com> | 2016-05-26 18:36:47 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2016-05-26 18:36:47 +0200 |
commit | 5a342be6df4370f047268db349c08a2521f484c8 (patch) | |
tree | 93997d7b368709a26b10a5355b101eb41e19865e /scripts | |
parent | Java build fixes to better support Debian packaging: (diff) | |
download | ice-5a342be6df4370f047268db349c08a2521f484c8.tar.bz2 ice-5a342be6df4370f047268db349c08a2521f484c8.tar.xz ice-5a342be6df4370f047268db349c08a2521f484c8.zip |
FreeBSD patches
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/icehashpassword.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/icehashpassword.py b/scripts/icehashpassword.py index 7f85102f06d..9b2827ab461 100644 --- a/scripts/icehashpassword.py +++ b/scripts/icehashpassword.py @@ -10,8 +10,9 @@ import sys, getopt, passlib.hash, getpass -usePBKDF2 = sys.platform == "win32" or sys.platform == "darwin" -useCryptExt = sys.platform.startswith("linux") +usePBKDF2 = any(sys.platform == p for p in ["win32", "darwin"]) +useCryptExt = any(sys.platform.startswith(p) for p in ["linux", "freebsd"]) + if not usePBKDF2 and not useCryptExt: print("platform not supported") |