/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/ncrypto/ncrypto.gyp
88 строк
2 KB
Filip Skokan
crypto: split OpenSSL 3, BoringSSL, and legacy backends
08 июл 2026, 23:07
Не верифицирован
08 июл 2026, 23:07
db7cc5b
Код
Авторство
О чём код?
{ 'variables': { 'ncrypto_bssl_libdecrepit_missing%': 1, 'ncrypto_sources': [ 'ncrypto.cc', 'ncrypto.h', ], 'ncrypto_engine_sources': [ 'engine.cc', 'ncrypto.h', ], 'ncrypto_strict_defines': [ 'OPENSSL_API_COMPAT=30000', 'OPENSSL_NO_DEPRECATED', ], 'ncrypto_legacy_openssl_defines': [ 'OPENSSL_API_COMPAT=0x10100000L', ], 'ncrypto_engine_defines': [ 'OPENSSL_API_COMPAT=30000', 'OPENSSL_SUPPRESS_DEPRECATED', 'NCRYPTO_ENGINE_COMPAT=1', ], }, 'targets': [ { 'target_name': 'ncrypto', 'type': 'static_library', 'include_dirs': ['.'], 'defines': [ 'NCRYPTO_BSSL_LIBDECREPIT_MISSING=<(ncrypto_bssl_libdecrepit_missing)', ], 'direct_dependent_settings': { 'include_dirs': ['.'], 'defines': [ 'NCRYPTO_BSSL_LIBDECREPIT_MISSING=<(ncrypto_bssl_libdecrepit_missing)', ], 'conditions': [ ['openssl_is_boringssl=="false" and openssl_version >= 0x3000000f', { 'defines!': [ '<@(ncrypto_legacy_openssl_defines)' ], 'defines': [ '<@(ncrypto_strict_defines)' ], }], ], }, 'sources': [ '<@(ncrypto_sources)' ], 'conditions': [ ['openssl_is_boringssl=="false" and openssl_version >= 0x3000000f', { 'defines!': [ '<@(ncrypto_legacy_openssl_defines)' ], 'defines': [ '<@(ncrypto_strict_defines)' ], 'dependencies': [ 'ncrypto_engine', ], }], ['openssl_is_boringssl=="false" and openssl_version < 0x3000000f', { 'sources': [ '<@(ncrypto_engine_sources)' ], }], ['node_shared_openssl=="false"', { 'dependencies': [ '../openssl/openssl.gyp:openssl' ] }], ] }, ], 'conditions': [ ['openssl_is_boringssl=="false" and openssl_version >= 0x3000000f', { 'targets': [ { 'target_name': 'ncrypto_engine', 'type': 'static_library', 'include_dirs': ['.'], 'defines': [ 'NCRYPTO_BSSL_LIBDECREPIT_MISSING=<(ncrypto_bssl_libdecrepit_missing)', '<@(ncrypto_engine_defines)', ], 'sources': [ '<@(ncrypto_engine_sources)' ], 'conditions': [ ['node_shared_openssl=="false"', { 'dependencies': [ '../openssl/openssl.gyp:openssl' ] }], ] }, ], }], ], }