File tree Expand file tree Collapse file tree 2 files changed +10
-15
lines changed Expand file tree Collapse file tree 2 files changed +10
-15
lines changed Original file line number Diff line number Diff line change 616
616
],
617
617
},
618
618
{
619
- 'action_name' : 'copy_openssl_cnf' ,
620
- 'inputs' : [ '<(opensslconfig)' , ],
621
- 'outputs' : [ '<(opensslconfig_internal)' , ],
622
- 'action' : [
623
- 'python' , 'tools/copyfile.py' ,
624
- './deps/openssl/openssl/apps/openssl.cnf' ,
625
- '<(obj_dir)/deps/openssl/openssl.cnf' ,
626
- ],
627
- },
628
- {
629
- 'action_name' : 'include_fips_cnf' ,
619
+ 'action_name' : 'copy_openssl_cnf_and_include_fips_cnf' ,
630
620
'inputs' : [ '<(opensslconfig)' , ],
631
621
'outputs' : [ '<(opensslconfig_internal)' , ],
632
622
'action' : [
633
623
'python' , 'tools/enable_fips_include.py' ,
624
+ '<(opensslconfig)' ,
634
625
'<(opensslconfig_internal)' ,
635
626
'<(fipsconfig)' ,
636
627
],
Original file line number Diff line number Diff line change 27
27
28
28
import sys
29
29
30
- fin = open (sys .argv [1 ], "rt" )
30
+ # Copy openssl.cnf into output directory
31
+ __import__ ('copyfile' )
32
+
33
+ # Open the copied openssl.cnf file
34
+ fin = open (sys .argv [2 ], "rt" )
31
35
data = fin .read ()
32
- data = data .replace ('# .include fipsmodule.cnf' , '.include %s' % sys .argv [2 ])
36
+ data = data .replace ('# .include fipsmodule.cnf' , '.include %s' % sys .argv [3 ])
33
37
data = data .replace ('# fips = fips_sect' , 'fips = fips_sect' )
38
+ data = data .replace ('# activate = 1' , 'activate = 1' )
34
39
fin .close ()
35
- fin = open (sys .argv [1 ], "wt" )
40
+ fin = open (sys .argv [2 ], "wt" )
36
41
fin .write (data )
37
42
fin .close ()
38
-
You can’t perform that action at this time.
0 commit comments