Commit 17d87d5
committed
src: fix ValidateDSAParameters when fips is enabled
Currently, the following compilation errors are generated when
configuring --openssl-is-fips:
../src/node_crypto.cc: In function ‘bool
node::crypto::ValidateDSAParameters(EVP_PKEY*)’:
../src/node_crypto.cc:4886:55: error: ‘pkey’ was not declared in this
scope
if (FIPS_mode() && EVP_PKEY_DSA == EVP_PKEY_base_id(pkey.get())) {
^~~~
../src/node_crypto.cc:4886:55: note: suggested alternative: ‘key’
if (FIPS_mode() && EVP_PKEY_DSA == EVP_PKEY_base_id(pkey.get())) {
^~~~
key
../src/node_crypto.cc:4898:35: error: expected ‘;’ before ‘}’ token
(L == 3072 && N == 256)
^
;
}
This commit fixes the errors, and after this compilation is successful.
PR-URL: #29407
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 02c74e7 commit 17d87d5
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4883 | 4883 | | |
4884 | 4884 | | |
4885 | 4885 | | |
4886 | | - | |
4887 | | - | |
| 4886 | + | |
| 4887 | + | |
4888 | 4888 | | |
4889 | 4889 | | |
4890 | 4890 | | |
| |||
4895 | 4895 | | |
4896 | 4896 | | |
4897 | 4897 | | |
4898 | | - | |
| 4898 | + | |
4899 | 4899 | | |
4900 | 4900 | | |
4901 | 4901 | | |
| |||
0 commit comments