Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
crypto: complete ClientHelloParser initializers
  • Loading branch information
theholla committed Oct 12, 2018
commit d2e44f58b1fc2b7a752697a51fd5823bcb2bc1a4
20 changes: 10 additions & 10 deletions src/node_crypto_clienthello.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ class ClientHelloParser {
inline int ocsp_request() const { return ocsp_request_; }

private:
uint8_t session_size_ = 0;
const uint8_t* session_id_ = nullptr;
uint8_t session_size_;
const uint8_t* session_id_;
bool has_ticket_;
uint8_t servername_size_ = 0;
const uint8_t* servername_ = nullptr;
int ocsp_request_ = 0;
uint8_t servername_size_;
const uint8_t* servername_;
int ocsp_request_;

friend class ClientHelloParser;
};
Expand Down Expand Up @@ -111,11 +111,11 @@ class ClientHelloParser {
size_t frame_len_ = 0;
size_t body_offset_ = 0;
size_t extension_offset_ = 0;
uint8_t session_size_;
const uint8_t* session_id_;
uint16_t servername_size_;
const uint8_t* servername_;
uint8_t ocsp_request_;
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;
};
Expand Down