Where Online Learning is simpler!
The C and C++ Include Header Files
cat -n /usr/include/nodejs/src/node_constants.h
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 #define EXTENSIONLESS_FORMAT_JAVASCRIPT (0) 31 #define EXTENSIONLESS_FORMAT_WASM (1) 32 33 #if HAVE_OPENSSL 34 35 #ifndef RSA_PSS_SALTLEN_DIGEST 36 #define RSA_PSS_SALTLEN_DIGEST -1 37 #endif 38 39 #ifndef RSA_PSS_SALTLEN_MAX_SIGN 40 #define RSA_PSS_SALTLEN_MAX_SIGN -2 41 #endif 42 43 #ifndef RSA_PSS_SALTLEN_AUTO 44 #define RSA_PSS_SALTLEN_AUTO -2 45 #endif 46 47 #if defined(NODE_OPENSSL_DEFAULT_CIPHER_LIST) 48 #define DEFAULT_CIPHER_LIST_CORE NODE_OPENSSL_DEFAULT_CIPHER_LIST 49 #else 50 // TLSv1.3 suites start with TLS_, and are the OpenSSL defaults, see: 51 // https://www.openssl.org/docs/man1.1.1/man3/SSL_CTX_set_ciphersuites.html 52 #define DEFAULT_CIPHER_LIST_CORE \ 53 "TLS_AES_256_GCM_SHA384:" \ 54 "TLS_CHACHA20_POLY1305_SHA256:" \ 55 "TLS_AES_128_GCM_SHA256:" \ 56 "ECDHE-RSA-AES128-GCM-SHA256:" \ 57 "ECDHE-ECDSA-AES128-GCM-SHA256:" \ 58 "ECDHE-RSA-AES256-GCM-SHA384:" \ 59 "ECDHE-ECDSA-AES256-GCM-SHA384:" \ 60 "DHE-RSA-AES128-GCM-SHA256:" \ 61 "ECDHE-RSA-AES128-SHA256:" \ 62 "DHE-RSA-AES128-SHA256:" \ 63 "ECDHE-RSA-AES256-SHA384:" \ 64 "DHE-RSA-AES256-SHA384:" \ 65 "ECDHE-RSA-AES256-SHA256:" \ 66 "DHE-RSA-AES256-SHA256:" \ 67 "HIGH:" \ 68 "!aNULL:" \ 69 "!eNULL:" \ 70 "!EXPORT:" \ 71 "!DES:" \ 72 "!RC4:" \ 73 "!MD5:" \ 74 "!PSK:" \ 75 "!SRP:" \ 76 "!CAMELLIA" 77 #endif // NODE_OPENSSL_DEFAULT_CIPHER_LIST 78 #endif // HAVE_OPENSSL 79 80 #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 81 82 #endif // SRC_NODE_CONSTANTS_H_