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

Commit

Permalink
deps: return back FIPS build mode
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Jun 1, 2015
1 parent bef6254 commit bfece8c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions deps/openssl/openssl.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
'openssl_no_asm%': 0,
'llvm_version%': 0,
'gas_version%': 0,
'fips_dir%': 'false',
'conditions': [
['fips_dir == "false"', {
'fips_lib%': 'false',
}, {
'fips_lib%': '<(fips_dir)/lib/fipscanister.o',
}],
],
},
'targets': [
{
Expand All @@ -21,6 +29,23 @@
['exclude', 'store/.*$']
],
'conditions': [
# FIPS
# node-gyp - I am looking at you!
['fips_dir != "false" and fips_dir != "../../false"', {
'defines': [
'OPENSSL_FIPS',
],
'sources': [
'<(fips_lib)',
],
'include_dirs': [
'<(fips_dir)/include',
],

# Trick fipsld
'product_name': 'crypto',
}],

['openssl_no_asm!=0', {
# Disable asm
'defines': [
Expand Down

0 comments on commit bfece8c

Please sign in to comment.