Commit 010d29d
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 d6ba106 commit 010d29d
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4880 | 4880 | | |
4881 | 4881 | | |
4882 | 4882 | | |
4883 | | - | |
4884 | | - | |
| 4883 | + | |
| 4884 | + | |
4885 | 4885 | | |
4886 | 4886 | | |
4887 | 4887 | | |
| |||
4892 | 4892 | | |
4893 | 4893 | | |
4894 | 4894 | | |
4895 | | - | |
| 4895 | + | |
4896 | 4896 | | |
4897 | 4897 | | |
4898 | 4898 | | |
| |||
0 commit comments