forked from wolfSSL/wolfssl
		
	1. The openssl interop test script should check that it should run before doing anything else. 2. The process to create a random port number was using a non-portable option to the head command. Changed to use the od tool reading from /dev/random. 3. Ran into a sed that doesn't use the -i option, so changed it to cp its own bak file and sed from that.
		
			
				
	
	
		
			22 lines
		
	
	
		
			488 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			488 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
if test ! -x ./wolfcrypt/test/testwolfcrypt
 | 
						|
then
 | 
						|
    echo "fips-hash: wolfCrypt test missing"
 | 
						|
    exit 1
 | 
						|
fi
 | 
						|
 | 
						|
if test ! -s ./wolfcrypt/src/fips_test.c
 | 
						|
then
 | 
						|
    echo "fips-hash: fips_test.c missing"
 | 
						|
    exit 1
 | 
						|
fi
 | 
						|
 | 
						|
NEWHASH=$(./wolfcrypt/test/testwolfcrypt | sed -n 's/hash = \(.*\)/\1/p')
 | 
						|
if test -n "$NEWHASH"
 | 
						|
then
 | 
						|
    cp wolfcrypt/src/fips_test.c wolfcrypt/src/fips_test.c.bak
 | 
						|
    sed "s/^\".*\";/\"${NEWHASH}\";/" wolfcrypt/src/fips_test.c.bak >wolfcrypt/src/fips_test.c
 | 
						|
fi
 | 
						|
 |