Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | From 048203c97009c907ff3891f6ffa8f375fcf1045c Mon Sep 17 00:00:00 2001 |
| 2 | From: Martin Jansa <Martin.Jansa@gmail.com> |
| 3 | Date: Tue, 26 Oct 2021 08:34:39 -0700 |
| 4 | Subject: [PATCH] crypto: fix build without scrypt |
| 5 | |
| 6 | * add missing semicolon to fix: |
| 7 | In file included from ../src/node_crypto.h:47, |
| 8 | from ../src/node.cc:46: |
| 9 | ../src/crypto/crypto_scrypt.h:80:2: |
| 10 | error: expected ';' after struct definition |
| 11 | 80 | } |
| 12 | | ^ |
| 13 | | ; |
| 14 | |
| 15 | and fix typo in the comment |
| 16 | |
| 17 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> |
| 18 | Upstream-Status: Submitted [https://github.com/nodejs/node/pull/40613] |
| 19 | |
| 20 | --- |
| 21 | src/crypto/crypto_scrypt.h | 4 ++-- |
| 22 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 23 | |
| 24 | diff --git a/src/crypto/crypto_scrypt.h b/src/crypto/crypto_scrypt.h |
| 25 | index 4ca888e31d..3d185637f4 100644 |
| 26 | --- a/src/crypto/crypto_scrypt.h |
| 27 | +++ b/src/crypto/crypto_scrypt.h |
| 28 | @@ -77,8 +77,8 @@ struct ScryptJob { |
| 29 | static void Initialize( |
| 30 | Environment* env, |
| 31 | v8::Local<v8::Object> target) {} |
| 32 | -} |
| 33 | -#endif // !OPENSSL_NO_SCRIPT |
| 34 | +}; |
| 35 | +#endif // !OPENSSL_NO_SCRYPT |
| 36 | |
| 37 | } // namespace crypto |
| 38 | } // namespace node |