summaryrefslogtreecommitdiff
path: root/bcrypt/pybc_blf.h
diff options
context:
space:
mode:
authordjm <devnull@localhost>2006-08-08 02:34:02 +0000
committerdjm <devnull@localhost>2006-08-08 02:34:02 +0000
commitffeb7a6ef295f1ed4b0d9988855acd602410fde9 (patch)
tree6532f6e5f5542f6779498f47ab51e0ece03e25a3 /bcrypt/pybc_blf.h
parent08f7132af5c94eaababc9811afb2a90c9c9e2bf8 (diff)
downloadpy-bcrypt-ffeb7a6ef295f1ed4b0d9988855acd602410fde9.tar.gz
- (djm) Add support for Win32
Diffstat (limited to 'bcrypt/pybc_blf.h')
-rw-r--r--bcrypt/pybc_blf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/bcrypt/pybc_blf.h b/bcrypt/pybc_blf.h
index 269e25c..92e8ea2 100644
--- a/bcrypt/pybc_blf.h
+++ b/bcrypt/pybc_blf.h
@@ -34,6 +34,12 @@
#ifndef _PYBC_BLF_H_
#define _PYBC_BLF_H_
+#if defined(_MSC_VER)
+typedef unsigned __int8 u_int8_t;
+typedef unsigned __int16 u_int16_t;
+typedef unsigned __int32 u_int32_t;
+#endif
+
/* Schneier specifies a maximum key length of 56 bytes.
* This ensures that every key bit affects every cipher
* bit. However, the subkeys can hold up to 72 bytes.