| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 56e7e4f commit acf7802
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1532,9 +1532,6 @@ void SSLWrap<Base>::OnClientHello(void* arg, | |||
| 1532 | 1532 | hello_obj->Set(context, | |
| 1533 | 1533 | env->tls_ticket_string(), | |
| 1534 | 1534 | Boolean::New(env->isolate(), hello.has_ticket())).FromJust(); | |
| 1535 | - hello_obj->Set(context, | ||
| 1536 | - env->ocsp_request_string(), | ||
| 1537 | - Boolean::New(env->isolate(), hello.ocsp_request())).FromJust(); | ||
| 1538 | 1535 | ||
| 1539 | 1536 | Local<Value> argv[] = { hello_obj }; | |
| 1540 | 1537 | w->MakeCallback(env->onclienthello_string(), arraysize(argv), argv); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -48,7 +48,6 @@ inline void ClientHelloParser::Reset() { | |||
| 48 | 48 | tls_ticket_ = nullptr; | |
| 49 | 49 | servername_size_ = 0; | |
| 50 | 50 | servername_ = nullptr; | |
| 51 | - ocsp_request_ = 0; | ||
| 52 | 51 | } | |
| 53 | 52 | ||
| 54 | 53 | inline void ClientHelloParser::Start(ClientHelloParser::OnHelloCb onhello_cb, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -112,7 +112,6 @@ void ClientHelloParser::ParseHeader(const uint8_t* data, size_t avail) { | |||
| 112 | 112 | hello.session_id_ = session_id_; | |
| 113 | 113 | hello.session_size_ = session_size_; | |
| 114 | 114 | hello.has_ticket_ = tls_ticket_ != nullptr && tls_ticket_size_ != 0; | |
| 115 | - hello.ocsp_request_ = ocsp_request_; | ||
| 116 | 115 | hello.servername_ = servername_; | |
| 117 | 116 | hello.servername_size_ = static_cast<uint8_t>(servername_size_); | |
| 118 | 117 | onhello_cb_(cb_arg_, hello); | |
@@ -149,18 +148,6 @@ void ClientHelloParser::ParseExtension(const uint16_t type, | |||
| 149 | 148 | } | |
| 150 | 149 | } | |
| 151 | 150 | break; | |
| 152 | - case kStatusRequest: | ||
| 153 | - // We are ignoring any data, just indicating the presence of extension | ||
| 154 | - if (len < kMinStatusRequestSize) | ||
| 155 | - return; | ||
| 156 | - | ||
| 157 | - // Unknown type, ignore it | ||
| 158 | - if (data[0] != kStatusRequestOCSP) | ||
| 159 | - break; | ||
| 160 | - | ||
| 161 | - // Ignore extensions, they won't work with caching on backend anyway | ||
| 162 | - ocsp_request_ = 1; | ||
| 163 | - break; | ||
| 164 | 151 | case kTLSSessionTicket: | |
| 165 | 152 | tls_ticket_size_ = len; | |
| 166 | 153 | tls_ticket_ = data + len; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,15 +41,13 @@ class ClientHelloParser { | |||
| 41 | 41 | inline bool has_ticket() const { return has_ticket_; } | |
| 42 | 42 | inline uint8_t servername_size() const { return servername_size_; } | |
| 43 | 43 | inline const uint8_t* servername() const { return servername_; } | |
| 44 | - inline int ocsp_request() const { return ocsp_request_; } | ||
| 45 | 44 | ||
| 46 | 45 | private: | |
| 47 | 46 | uint8_t session_size_; | |
| 48 | 47 | const uint8_t* session_id_; | |
| 49 | 48 | bool has_ticket_; | |
| 50 | 49 | uint8_t servername_size_; | |
| 51 | 50 | const uint8_t* servername_; | |
| 52 | - int ocsp_request_; | ||
| 53 | 51 | ||
| 54 | 52 | friend class ClientHelloParser; | |
| 55 | 53 | }; | |
@@ -69,7 +67,6 @@ class ClientHelloParser { | |||
| 69 | 67 | static const size_t kMaxTLSFrameLen = 16 * 1024 + 5; | |
| 70 | 68 | static const size_t kMaxSSLExFrameLen = 32 * 1024; | |
| 71 | 69 | static const uint8_t kServernameHostname = 0; | |
| 72 | - static const uint8_t kStatusRequestOCSP = 1; | ||
| 73 | 70 | static const size_t kMinStatusRequestSize = 5; | |
| 74 | 71 | ||
| 75 | 72 | enum ParseState { | |
@@ -93,7 +90,6 @@ class ClientHelloParser { | |||
| 93 | 90 | ||
| 94 | 91 | enum ExtensionType { | |
| 95 | 92 | kServerName = 0, | |
| 96 | - kStatusRequest = 5, | ||
| 97 | 93 | kTLSSessionTicket = 35 | |
| 98 | 94 | }; | |
| 99 | 95 | ||
@@ -115,7 +111,6 @@ class ClientHelloParser { | |||
| 115 | 111 | const uint8_t* session_id_ = nullptr; | |
| 116 | 112 | uint16_t servername_size_ = 0; | |
| 117 | 113 | const uint8_t* servername_ = nullptr; | |
| 118 | - uint8_t ocsp_request_ = 0; | ||
| 119 | 114 | uint16_t tls_ticket_size_ = -1; | |
| 120 | 115 | const uint8_t* tls_ticket_ = nullptr; | |
| 121 | 116 | }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments