Skip to content
This repository was archived by the owner on Dec 20, 2018. It is now read-only.

Commit bfece8c

Browse files
committed
deps: return back FIPS build mode
1 parent bef6254 commit bfece8c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

deps/openssl/openssl.gyp

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99
'openssl_no_asm%': 0,
1010
'llvm_version%': 0,
1111
'gas_version%': 0,
12+
'fips_dir%': 'false',
13+
'conditions': [
14+
['fips_dir == "false"', {
15+
'fips_lib%': 'false',
16+
}, {
17+
'fips_lib%': '<(fips_dir)/lib/fipscanister.o',
18+
}],
19+
],
1220
},
1321
'targets': [
1422
{
@@ -21,6 +29,23 @@
2129
['exclude', 'store/.*$']
2230
],
2331
'conditions': [
32+
# FIPS
33+
# node-gyp - I am looking at you!
34+
['fips_dir != "false" and fips_dir != "../../false"', {
35+
'defines': [
36+
'OPENSSL_FIPS',
37+
],
38+
'sources': [
39+
'<(fips_lib)',
40+
],
41+
'include_dirs': [
42+
'<(fips_dir)/include',
43+
],
44+
45+
# Trick fipsld
46+
'product_name': 'crypto',
47+
}],
48+
2449
['openssl_no_asm!=0', {
2550
# Disable asm
2651
'defines': [

0 commit comments

Comments
 (0)