Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 755da03

Browse filesBrowse files
jasnellMylesBorins
authored andcommitted
src: add node_crypto_common and refactor
Two things in one on this commit: (a) For the QUIC implementation, we need to separate out various bits from node_crypto.cc to allow them to be reused. That's where this commit starts. (b) Quite a bit of the node_crypto.cc code was just messy in terms of it's organization and lack of error handling and use of Local vs. MaybeLocal. This cleans that up a bit and hopefully makes certain parts a bit more manageable also. Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #32016 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
1 parent 1539928 commit 755da03
Copy full SHA for 755da03

File tree

Expand file treeCollapse file tree

8 files changed

+1313
-611
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

8 files changed

+1313
-611
lines changed
Open diff view settings
Collapse file

‎node.gyp‎

Copy file name to clipboardExpand all lines: node.gyp
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,9 +822,11 @@
822822
[ 'node_use_openssl=="true"', {
823823
'sources': [
824824
'src/node_crypto.cc',
825+
'src/node_crypto_common.cc',
825826
'src/node_crypto_bio.cc',
826827
'src/node_crypto_clienthello.cc',
827828
'src/node_crypto.h',
829+
'src/node_crypto_common.h',
828830
'src/node_crypto_bio.h',
829831
'src/node_crypto_clienthello.h',
830832
'src/node_crypto_clienthello-inl.h',
Collapse file

‎src/env.h‎

Copy file name to clipboardExpand all lines: src/env.h
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ constexpr size_t kFsStatsBufferLength =
206206
V(dest_string, "dest") \
207207
V(destroyed_string, "destroyed") \
208208
V(detached_string, "detached") \
209+
V(dh_string, "DH") \
209210
V(dns_a_string, "A") \
210211
V(dns_aaaa_string, "AAAA") \
211212
V(dns_cname_string, "CNAME") \
@@ -219,6 +220,7 @@ constexpr size_t kFsStatsBufferLength =
219220
V(done_string, "done") \
220221
V(dot_string, ".") \
221222
V(duration_string, "duration") \
223+
V(ecdh_string, "ECDH") \
222224
V(emit_warning_string, "emitWarning") \
223225
V(empty_object_string, "{}") \
224226
V(encoding_string, "encoding") \

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.