src,crypto: refactor `crypto_tls.*` · nodejs/node@cebf403 · GitHub
Skip to content

Commit cebf403

Browse files
RaisinTendanielleadams
authored andcommitted
src,crypto: refactor crypto_tls.*
By the design of `GetSSLError()`, the V8 API was unnecessarily being accessed in places where it eventually didn't get used. So this refactor inlines the function appropriately in places where it was being used. Also, this replaces uses of `AllocatedBuffers` with `BackingStore`s. Signed-off-by: Darshan Sen <darshan.sen@postman.com> PR-URL: #40675 Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 9cc2bb7 commit cebf403

2 files changed

Lines changed: 104 additions & 130 deletions

File tree

src/crypto/crypto_tls.cc

Lines changed: 102 additions & 127 deletions

src/crypto/crypto_tls.h

Lines changed: 2 additions & 3 deletions

0 commit comments

Comments
 (0)