crypto: disable ssl compression at build time · nodejs/node@e8c9f01 · GitHub
Skip to content

Commit e8c9f01

Browse files
bnoordhuisevanlucas
authored andcommitted
crypto: disable ssl compression at build time
SSL compression was first disabled at runtime in March 2011 in commit e83c695 ("Disable compression with OpenSSL.") for performance reasons and was later shown to be vulnerable to information leakage (CRIME.) Let's stop compiling it in altogether. This commit removes a broken CHECK from src/node_crypto.cc; broken because sk_SSL_COMP_num() returns -1 for a NULL stack, not 0. As a result, node.js would abort when linked to an OPENSSL_NO_COMP build of openssl. PR-URL: #6582 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 2d67741 commit e8c9f01

2 files changed

Lines changed: 5 additions & 13 deletions

File tree

deps/openssl/openssl.gypi

Lines changed: 3 additions & 4 deletions

src/node_crypto.cc

Lines changed: 2 additions & 9 deletions

0 commit comments

Comments
 (0)