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

test: skip fips tests using OpenSSL config file #13786

Closed
wants to merge 1 commit into from

Commits on Jun 25, 2017

  1. test: skip fips tests using OpenSSL config file

    The motivation for this commit is that we are building Node with
    --shared-openssl and in our case the system OpenSSL version
    supports FIPS.
    
    The tests in test-crypto-fips that toggle fips mode on/off using the
    config file option might succeed and return 1 instead of an error
    being thrown from OpenSSL (which is what happens for a default build
    but the error is not processed/displayed in any way at the moment):
    openssl config failed: error:060B10A7:digital envelope
    routines:ALG_MODULE_INIT:fips mode not supported
    
    Note that this only concerns the test that use the configuration file
    option which is different from when calling the fips setter as
    the handling of the configuration file is handled by OpenSSL, so it
    is not possible for us to try to call the fips setter as that would
    throw an error ("Error: Cannot set FIPS mode in a non-FIPS build.").
    
    The suggestion is to skips these tests when --shared-openssl is used.
    danbev committed Jun 25, 2017
    Configuration menu
    Copy the full SHA
    6315659 View commit details
    Browse the repository at this point in the history