Node.js  v8.x
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine
node_constants.h
Go to the documentation of this file.
1 // Copyright Joyent, Inc. and other Node contributors.
2 //
3 // Permission is hereby granted, free of charge, to any person obtaining a
4 // copy of this software and associated documentation files (the
5 // "Software"), to deal in the Software without restriction, including
6 // without limitation the rights to use, copy, modify, merge, publish,
7 // distribute, sublicense, and/or sell copies of the Software, and to permit
8 // persons to whom the Software is furnished to do so, subject to the
9 // following conditions:
10 //
11 // The above copyright notice and this permission notice shall be included
12 // in all copies or substantial portions of the Software.
13 //
14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
17 // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
18 // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
19 // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
20 // USE OR OTHER DEALINGS IN THE SOFTWARE.
21 
22 #ifndef SRC_NODE_CONSTANTS_H_
23 #define SRC_NODE_CONSTANTS_H_
24 
25 #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
26 
27 #include "node.h"
28 #include "v8.h"
29 
30 #if HAVE_OPENSSL
31 
32 #ifndef RSA_PSS_SALTLEN_DIGEST
33 #define RSA_PSS_SALTLEN_DIGEST -1
34 #endif
35 
36 #ifndef RSA_PSS_SALTLEN_MAX_SIGN
37 #define RSA_PSS_SALTLEN_MAX_SIGN -2
38 #endif
39 
40 #ifndef RSA_PSS_SALTLEN_AUTO
41 #define RSA_PSS_SALTLEN_AUTO -2
42 #endif
43 
44 #define DEFAULT_CIPHER_LIST_CORE "ECDHE-RSA-AES128-GCM-SHA256:" \
45  "ECDHE-ECDSA-AES128-GCM-SHA256:" \
46  "ECDHE-RSA-AES256-GCM-SHA384:" \
47  "ECDHE-ECDSA-AES256-GCM-SHA384:" \
48  "DHE-RSA-AES128-GCM-SHA256:" \
49  "ECDHE-RSA-AES128-SHA256:" \
50  "DHE-RSA-AES128-SHA256:" \
51  "ECDHE-RSA-AES256-SHA384:" \
52  "DHE-RSA-AES256-SHA384:" \
53  "ECDHE-RSA-AES256-SHA256:" \
54  "DHE-RSA-AES256-SHA256:" \
55  "HIGH:" \
56  "!aNULL:" \
57  "!eNULL:" \
58  "!EXPORT:" \
59  "!DES:" \
60  "!RC4:" \
61  "!MD5:" \
62  "!PSK:" \
63  "!SRP:" \
64  "!CAMELLIA"
65 #endif
66 
67 namespace node {
68 
69 #if HAVE_OPENSSL
70 extern const char* default_cipher_list;
71 #endif
72 
73 void DefineConstants(v8::Isolate* isolate, v8::Local<v8::Object> target);
74 } // namespace node
75 
76 #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
77 
78 #endif // SRC_NODE_CONSTANTS_H_
void DefineConstants(v8::Isolate *isolate, Local< Object > target)