diff options
Diffstat (limited to 'src/build_bcrypt.py')
-rw-r--r-- | src/build_bcrypt.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/build_bcrypt.py b/src/build_bcrypt.py index 3eec35c..f401706 100644 --- a/src/build_bcrypt.py +++ b/src/build_bcrypt.py @@ -20,13 +20,15 @@ BLOWFISH_DIR = os.path.join(os.path.dirname(__file__), "_csrc") ffi = FFI() -ffi.cdef(""" +ffi.cdef( + """ int bcrypt_hashpass(const char *, const char *, char *, size_t); int encode_base64(char *, const uint8_t *, size_t); int bcrypt_pbkdf(const char *, size_t, const uint8_t *, size_t, uint8_t *, size_t, unsigned int); int timingsafe_bcmp(const void *, const void *, size_t); -""") +""" +) ffi.set_source( "_bcrypt", |