Skip to content

Commit dd32df1

Browse files
zsw007recrsn
authored andcommittedJun 1, 2020
Add z/OS support
1 parent ac14738 commit dd32df1

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed
 

‎CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# UNRELEASED
22

3-
* Fix the bcrypt "wrap-around" bug. It affects passwords with lengths >= 255.
3+
* Fix the bcrypt "wrap-around" bug. It affects passwords with lengths >= 255.
44
It is uncommon but it's a bug nevertheless. Previous attempts to fix the bug
55
was unsuccessful.
6+
* Experimental support for z/OS
67

78
# 4.0.1 (2020-02-27)
89

‎binding.gyp

+7-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,13 @@
3434
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
3535
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
3636
}
37-
}]
38-
]
37+
}],
38+
[ 'OS=="zos"', {
39+
'cflags': [
40+
'-qascii',
41+
],
42+
}],
43+
],
3944
},
4045
{
4146
"target_name": "action_after_build",

‎src/node_blf.h

+8
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@
6060
# endif
6161
typedef LONG_PTR SSIZE_T;
6262
typedef SSIZE_T ssize_t;
63+
/* z/OS compatibility */
64+
#endif
65+
66+
#ifdef __MVS__
67+
typedef unsigned char u_int8_t;
68+
typedef unsigned short u_int16_t;
69+
typedef unsigned int u_int32_t;
70+
typedef unsigned long long u_int64_t;
6371
#endif
6472

6573
#define BCRYPT_VERSION '2'

0 commit comments

Comments
 (0)
Please sign in to comment.