Skip to content

Commit

Permalink
Merge pull request #2 from jameswomack/node_12
Browse files Browse the repository at this point in the history
Rebuild, add test & build scripts
  • Loading branch information
juliangruber committed Jul 13, 2015
2 parents b420b6f + 95a2f84 commit 621da7d
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 4 deletions.
39 changes: 35 additions & 4 deletions constants.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"O_NOFOLLOW": 256,
"O_SYNC": 128,
"O_SYMLINK": 2097152,
"O_NONBLOCK": 4,
"S_IRWXU": 448,
"S_IRUSR": 256,
"S_IWUSR": 128,
Expand Down Expand Up @@ -147,11 +148,11 @@
"SSL_OP_COOKIE_EXCHANGE": 8192,
"SSL_OP_CRYPTOPRO_TLSEXT_BUG": 2147483648,
"SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS": 2048,
"SSL_OP_EPHEMERAL_RSA": 2097152,
"SSL_OP_EPHEMERAL_RSA": 0,
"SSL_OP_LEGACY_SERVER_CONNECT": 4,
"SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER": 32,
"SSL_OP_MICROSOFT_SESS_ID_BUG": 1,
"SSL_OP_MSIE_SSLV2_RSA_PADDING": 64,
"SSL_OP_MSIE_SSLV2_RSA_PADDING": 0,
"SSL_OP_NETSCAPE_CA_DN_BUG": 536870912,
"SSL_OP_NETSCAPE_CHALLENGE_BUG": 2,
"SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG": 1073741824,
Expand All @@ -170,9 +171,39 @@
"SSL_OP_SINGLE_DH_USE": 1048576,
"SSL_OP_SINGLE_ECDH_USE": 524288,
"SSL_OP_SSLEAY_080_CLIENT_DH_BUG": 128,
"SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG": 16,
"SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG": 0,
"SSL_OP_TLS_BLOCK_PADDING_BUG": 512,
"SSL_OP_TLS_D5_BUG": 256,
"SSL_OP_TLS_ROLLBACK_BUG": 8388608,
"NPN_ENABLED": 1
"ENGINE_METHOD_DSA": 2,
"ENGINE_METHOD_DH": 4,
"ENGINE_METHOD_RAND": 8,
"ENGINE_METHOD_ECDH": 16,
"ENGINE_METHOD_ECDSA": 32,
"ENGINE_METHOD_CIPHERS": 64,
"ENGINE_METHOD_DIGESTS": 128,
"ENGINE_METHOD_STORE": 256,
"ENGINE_METHOD_PKEY_METHS": 512,
"ENGINE_METHOD_PKEY_ASN1_METHS": 1024,
"ENGINE_METHOD_ALL": 65535,
"ENGINE_METHOD_NONE": 0,
"DH_CHECK_P_NOT_SAFE_PRIME": 2,
"DH_CHECK_P_NOT_PRIME": 1,
"DH_UNABLE_TO_CHECK_GENERATOR": 4,
"DH_NOT_SUITABLE_GENERATOR": 8,
"NPN_ENABLED": 1,
"RSA_PKCS1_PADDING": 1,
"RSA_SSLV23_PADDING": 2,
"RSA_NO_PADDING": 3,
"RSA_PKCS1_OAEP_PADDING": 4,
"RSA_X931_PADDING": 5,
"RSA_PKCS1_PSS_PADDING": 6,
"POINT_CONVERSION_COMPRESSED": 2,
"POINT_CONVERSION_UNCOMPRESSED": 4,
"POINT_CONVERSION_HYBRID": 6,
"F_OK": 0,
"R_OK": 4,
"W_OK": 2,
"X_OK": 1,
"UV_UDP_REUSEADDR": 4
}
18 changes: 18 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
'use strict';

var Assert = require('assert')
var Constants = require('./')

try {
var nodeConstants = require('constants')

Assert.deepEqual(nodeConstants, Constants, 'The constants file was not equal')
}

catch (e) {
console.error(e)
console.error('\nTests failed!')
process.exit(1)
}

console.info('Tests passed!')

0 comments on commit 621da7d

Please sign in to comment.