File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 3838""" 
3939
4040# Copy and edit 
41- with  open (OPENSSL_CONFIG , 'rb' ) as  fd :
42-     DATA  =  fd .read ()
41+ try :
42+     with  open (OPENSSL_CONFIG , 'rb' ) as  fd :
43+         DATA  =  fd .read ()
44+ except  FileNotFoundError :
45+     DATA  =  b"" 
4346
4447DATA  =  HEADER  +  DATA  +  FOOTER 
4548
Original file line number Diff line number Diff line change 3030  else 
3131    UT_FLAGS+="  -K vcan_socket" 
3232  fi 
33- elif  [[ " $OSTYPE " =  " darwin" *  ]] ||  [ " $TRAVIS_OS_NAME " =  " osx" 
33+ elif  [[ " $OSTYPE " =  " darwin" *  ]] ||  [ " $TRAVIS_OS_NAME " =  " osx"   ||  [[  " $OSTYPE "   =   " FreeBSD "  ]]  ||  [[  " $OSTYPE "   =   * " bsd " *  ]] 
3434then 
3535  OSTOX=" bsd" 
3636  #  Travis CI in macOS 10.13+ can't load kexts. Need this for tuntaposx.
3737  UT_FLAGS+="  -K tun -K tap" 
38+   if  [[ " $OSTYPE " =  " openbsd" *  ]]
39+   then 
40+     #  Note: LibreSSL 3.6.* does not support X25519 according to
41+     #  the cryptogaphy module source code
42+     UT_FLAGS+="  -K libressl" 
43+   fi 
44+   if  [[ " $OSTYPE " =  " netbsd" 
45+   then 
46+     UT_FLAGS+="  -K not_netbsd" 
47+   fi 
3848fi 
3949
4050#  pypy
8292fi 
8393
8494#  Configure OpenSSL
85- export  OPENSSL_CONF=$( python  ` dirname $BASH_SOURCE ` ) 
95+ export  OPENSSL_CONF=$( $PYTHON  ` dirname $BASH_SOURCE ` ) 
8696
8797#  Dump vars (the others were already dumped in install.sh)
8898echo  UT_FLAGS=$UT_FLAGS 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments