tls: avoid taking ownership of OpenSSL objects · nodejs/node@4b47f89 · GitHub
Skip to content

Commit 4b47f89

Browse files
tniessentargos
authored andcommitted
tls: avoid taking ownership of OpenSSL objects
It is often unnecessary to obtain (shared) ownership of OpenSSL objects in this code, and it generally is more costly to do so as opposed to just obtaining a pointer to the respective OpenSSL object. Therefore, this patch replaces various OpenSSL function calls that take ownership with ones that do not. PR-URL: #53436 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 2012667 commit 4b47f89

1 file changed

Lines changed: 28 additions & 30 deletions

File tree

src/crypto/crypto_common.cc

Lines changed: 28 additions & 30 deletions

0 commit comments

Comments
 (0)