Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: fix ValidateDSAParameters when fips is enabled #29407

Closed
wants to merge 1 commit into from

Commits on Sep 2, 2019

  1. 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.
    danbev committed Sep 2, 2019
    Configuration menu
    Copy the full SHA
    afc761f View commit details
    Browse the repository at this point in the history