tree: ac3f07adc22d2a1941797ef0d50db043652190c0 [path history] [tgz]
  1. config/
  2. openssl/
  3. openssl-cl_asm.gypi
  4. openssl-cl_asm_avx2.gypi
  5. openssl-cl_no_asm.gypi
  6. openssl-cli.gypi
  7. openssl.gyp
  8. openssl.gypi
  9. openssl_asm.gypi
  10. openssl_asm_avx2.gypi
  11. openssl_common.gypi
  12. openssl_no_asm.gypi
  13. README.md
deps/openssl/README.md

This has a new binding scheme in building OpenSSL-1.1.0 library with Node.js. OpenSSL-1.1.0 uses a new build system with Perl for various supported platforms. See openssl/Configurations/README and openssl/Configurations/README.design in the OpenSSL source for details.

In order to build OpenSSL library without Perl in the build of Node.js for various supported platforms, platform dependent files (e.g. asm and header files ) are pre-generated and stored into the config/archs directory.

  • config/Makefile and config/generate_gypi.pl

    Makefile has supported platform list and generates and copies platform dependent files (e.g. asm files) into arch directory with generate_gypi.pl. Platform dependent gypi files also created obtaining build information from configdata.pm that is generated with Configure in the OpenSSL build system.

    For Windows, Configure generates makefile that is only available to nmake command. config/Makefile_VC-WIN32 and config/Makefile_VC-WIN64A are made by hand for the use of GNU make. If makefile rules or targets are changed in the version up of OpenSSL, they should be also updated.

  • gyp and gypi files (openssl*.{gyp,gypi})

    openssl.gyp has two targets of openssl and openssl-cli referred from node.gyp. They include asm and no_asm gypi files with arch dependent gypi according to its build options and platforms. The gyp data which is common with asm and no_asm are stored in openssl_common.gypi.

  • header files (config/*.{h,h.tmpl})

    bn_conf.h, dso_conf.h and opensslconf.h are platform dependent in the OpenSSL sources. They are replaced with config/*.h.tmpl files to include the file in the ../../../config/ and referred to each arch file that depends on asm and no-asm option.

Supported architectures for use of ASM

Here is a list of supported architectures for use of ASM in OpenSSL.

--dest-os--dest-cpuOpenSSL target archCI
aixppcaix-gcco
aixppc64aix64-gcco
linuxia32linux-elfo
linuxx32linux-x32-
linuxx64linux-x86_64o
linuxarmlinux-armv4o
linuxarm64linux-aarch64o
linuxppclinux-ppco
linuxppc64linux-ppc64o
linuxppc64(*1)linux-ppc64leo
linuxs390linux32-s390xo
linuxs390xlinux64-s390xo
macia32darwin-i386-cc-
macx64darwin64-x86-cco
winia32VC-WIN32-
winx64VC-WIN64Ao
solarisia32solaris-x86-gcco
solarisx64solaris64-x86_64-gcco
freebsdia32BSD-x86-
freebsdx64BSD-x86_64o
openbsdia32BSD-x86-
openbsdx64BSD-x86_64-
othersotherslinux-elf-

(*1: This needs to be configured with the variable of node_byteorder: little)

These are listed in config/Makefile. Please refer config/opensslconf_asm.h for details.

Upgrading OpenSSL

Please refer config/README.md.