Where Online Learning is simpler!
The C and C++ Include Header Files
cat -n /usr/include/nodejs/src/crypto/crypto_common.h
1 #ifndef SRC_CRYPTO_CRYPTO_COMMON_H_ 2 #define SRC_CRYPTO_CRYPTO_COMMON_H_ 3 4 #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 5 6 #include <openssl/ssl.h> 7 #include <openssl/x509v3.h> 8 #include "ncrypto.h" 9 #include "node_crypto.h" 10 #include "v8.h" 11 12 #include <string> 13 14 namespace node { 15 namespace crypto { 16 17 ncrypto::SSLSessionPointer GetTLSSession(const unsigned char* buf, 18 size_t length); 19 20 long VerifyPeerCertificate( // NOLINT(runtime/int) 21 const ncrypto::SSLPointer& ssl, 22 long def = X509_V_ERR_UNSPECIFIED); // NOLINT(runtime/int) 23 24 bool UseSNIContext(const ncrypto::SSLPointer& ssl, 25 BaseObjectPtr<SecureContext> context); 26 27 bool SetGroups(SecureContext* sc, const char* groups); 28 29 v8::MaybeLocal<v8::Value> GetValidationErrorReason(Environment* env, int err); 30 31 v8::MaybeLocal<v8::Value> GetValidationErrorCode(Environment* env, int err); 32 33 v8::MaybeLocal<v8::Value> GetCert(Environment* env, 34 const ncrypto::SSLPointer& ssl); 35 36 v8::MaybeLocal<v8::Object> GetCipherInfo(Environment* env, 37 const ncrypto::SSLPointer& ssl); 38 39 v8::MaybeLocal<v8::Object> GetEphemeralKey(Environment* env, 40 const ncrypto::SSLPointer& ssl); 41 42 v8::MaybeLocal<v8::Value> GetPeerCert(Environment* env, 43 const ncrypto::SSLPointer& ssl, 44 bool abbreviated = false, 45 bool is_server = false); 46 47 v8::MaybeLocal<v8::Object> ECPointToBuffer( 48 Environment* env, 49 const EC_GROUP* group, 50 const EC_POINT* point, 51 point_conversion_form_t form, 52 const char** error); 53 54 v8::MaybeLocal<v8::Value> GetCurrentCipherName(Environment* env, 55 const ncrypto::SSLPointer& ssl); 56 v8::MaybeLocal<v8::Value> GetCurrentCipherVersion( 57 Environment* env, const ncrypto::SSLPointer& ssl); 58 59 } // namespace crypto 60 } // namespace node 61 62 #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 63 64 #endif // SRC_CRYPTO_CRYPTO_COMMON_H_