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

deps,build: add OpenSSL building of legacy module #40466

Closed
wants to merge 2 commits into from

Commits on Oct 16, 2021

  1. deps,build: add OpenSSL building of legacy module

    This commit adds a configuration time flag to enable OpenSSL legacy
    module to be built.
    
    For example, the following will build the legacy module:
    
    $ ./configure --openssl-legacy-module
    
    To enable the default provider one has currently has to update the
    OpenSSL configuration file, openssl.cnf:
    
    [openssl_init]
    providers = provider_sect
    
    [provider_sect]
    default = default_sect
    legacy = legacy_sect
    
    [default_sect]
    activate = 1
    
    [legacy_sect]
    activate = 1
    
    This module can then be used by specifying the environment variable
    OPENSSL_MODULES like this:
    
    $ env OPENSSL_MODULES= \
    $PWD/out/Release/obj.target/deps/openssl/lib/openssl-modules \
    OPENSSL_CONF=out/Release/obj.target/deps/openssl/openssl.cnf \
    ./node -p 'crypto.createHash("md4")'
    Hash {
      _options: undefined,
      [Symbol(kHandle)]: Hash {},
      [Symbol(kState)]: { [Symbol(kFinalized)]: false }
    
    Refs: nodejs#40455
    danbev committed Oct 16, 2021
    Configuration menu
    Copy the full SHA
    f5374d3 View commit details
    Browse the repository at this point in the history
  2. deps: regenerate OpenSSL arch files

    This commit regenerates the OpenSSL architecture files after the update
    in Commmit 04326f3 ("deps: add missing
    legacyprov.c source").
    danbev committed Oct 16, 2021
    Configuration menu
    Copy the full SHA
    7f694f7 View commit details
    Browse the repository at this point in the history