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 616616 ],
617617 },
618618 {
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' ,
630620 'inputs' : [ '<(opensslconfig)' , ],
631621 'outputs' : [ '<(opensslconfig_internal)' , ],
632622 'action' : [
633623 'python' , 'tools/enable_fips_include.py' ,
624+ '<(opensslconfig)' ,
634625 '<(opensslconfig_internal)' ,
635626 '<(fipsconfig)' ,
636627 ],
Original file line number Diff line number Diff line change 2727
2828import sys
2929
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" )
3135data = 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 ])
3337data = data .replace ('# fips = fips_sect' , 'fips = fips_sect' )
38+ data = data .replace ('# activate = 1' , 'activate = 1' )
3439fin .close ()
35- fin = open (sys .argv [1 ], "wt" )
40+ fin = open (sys .argv [2 ], "wt" )
3641fin .write (data )
3742fin .close ()
38-
You can’t perform that action at this time.
0 commit comments