22 #ifndef SRC_NODE_CRYPTO_CLIENTHELLO_INL_H_ 23 #define SRC_NODE_CRYPTO_CLIENTHELLO_INL_H_ 25 #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 33 inline void ClientHelloParser::Reset() {
36 extension_offset_ = 0;
38 session_id_ =
nullptr;
39 tls_ticket_size_ = -1;
40 tls_ticket_ =
nullptr;
42 servername_ =
nullptr;
46 ClientHelloParser::OnEndCb onend_cb,
52 CHECK_NE(onhello_cb,
nullptr);
55 onhello_cb_ = onhello_cb;
60 inline void ClientHelloParser::End() {
64 if (onend_cb_ !=
nullptr) {
70 inline bool ClientHelloParser::IsEnded()
const {
71 return state_ == kEnded;
74 inline bool ClientHelloParser::IsPaused()
const {
75 return state_ == kPaused;
81 #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 83 #endif // SRC_NODE_CRYPTO_CLIENTHELLO_INL_H_
int Start(Isolate *isolate, IsolateData *isolate_data, int argc, const char *const *argv, int exec_argc, const char *const *exec_argv)