Skip to content

Commit

Permalink
Add z/OS support
Browse files Browse the repository at this point in the history
  • Loading branch information
zsw007 authored and recrsn committed Jun 1, 2020
1 parent ac14738 commit dd32df1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# UNRELEASED

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

# 4.0.1 (2020-02-27)

Expand Down
9 changes: 7 additions & 2 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,13 @@
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
}
}]
]
}],
[ 'OS=="zos"', {
'cflags': [
'-qascii',
],
}],
],
},
{
"target_name": "action_after_build",
Expand Down
8 changes: 8 additions & 0 deletions src/node_blf.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@
# endif
typedef LONG_PTR SSIZE_T;
typedef SSIZE_T ssize_t;
/* z/OS compatibility */
#endif

#ifdef __MVS__
typedef unsigned char u_int8_t;
typedef unsigned short u_int16_t;
typedef unsigned int u_int32_t;
typedef unsigned long long u_int64_t;
#endif

#define BCRYPT_VERSION '2'
Expand Down

0 comments on commit dd32df1

Please sign in to comment.