diff options
author | Diana Holland <diana.holland@moovel.com> | 2018-10-12 11:36:17 -0700 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2018-11-29 11:38:31 -0500 |
commit | 0e0c7b8bf24ffb1e1603f1b3b842653a03270daa (patch) | |
tree | 58e51eca7f9a6b3b9c7aef4d031462ac6a0e74c7 /src/node_crypto_clienthello.h | |
parent | 9182ad38f53ae5a13fcb8ed5364b1705bf8d1cfc (diff) | |
download | node-new-0e0c7b8bf24ffb1e1603f1b3b842653a03270daa.tar.gz |
crypto: move field initialization to class
PR-URL: https://github.com/nodejs/node/pull/23610
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Diffstat (limited to 'src/node_crypto_clienthello.h')
-rw-r--r-- | src/node_crypto_clienthello.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/node_crypto_clienthello.h b/src/node_crypto_clienthello.h index fd8756254f..687e9589b6 100644 --- a/src/node_crypto_clienthello.h +++ b/src/node_crypto_clienthello.h @@ -108,16 +108,16 @@ class ClientHelloParser { OnHelloCb onhello_cb_; OnEndCb onend_cb_; void* cb_arg_; - size_t frame_len_; - size_t body_offset_; - size_t extension_offset_; - uint8_t session_size_; - const uint8_t* session_id_; - uint16_t servername_size_; - const uint8_t* servername_; - uint8_t ocsp_request_; - uint16_t tls_ticket_size_; - const uint8_t* tls_ticket_; + size_t frame_len_ = 0; + size_t body_offset_ = 0; + size_t extension_offset_ = 0; + uint8_t session_size_ = 0; + const uint8_t* session_id_ = nullptr; + uint16_t servername_size_ = 0; + const uint8_t* servername_ = nullptr; + uint8_t ocsp_request_ = 0; + uint16_t tls_ticket_size_ = -1; + const uint8_t* tls_ticket_ = nullptr; }; } // namespace crypto |