Codebase list librelp / upstream/1.6.0 tests / tls-basic-anon.sh
upstream/1.6.0

Tree @upstream/1.6.0 (Download .tar.gz)

tls-basic-anon.sh @upstream/1.6.0raw · history · blame

#!/bin/bash
. ${srcdir:=$(pwd)}/test-framework.sh

function actual_test() {
	startup_receiver --tls-lib $TEST_TLS_LIB -T -e error.out.log

	echo 'Send Message...'
	./send --tls-lib $TEST_TLS_LIB -t 127.0.0.1 -p $TESTPORT -m "testmessage" -T $OPT_VERBOSE 1>>${OUTFILE} 2>&1

	# "relpTcpLastSSLErrorMsg: Errorstack: error:1417A0C1:SSL routines:tls_post_process_client_hello:no shared cipher"
	stop_receiver
	if check_output_only "relpTcpLastSSLErrorMsg\: Errorstack\: error\:.*\:no shared cipher"; then
		printf "\nSKIP: openssl reported 'no shared cipher'\n"
		printf "\nDEBUG: content of ${OUTFILE}\n"
		cat $FILE_TO_CHECK

		terminate
		exit 77; 
	fi

	check_output "testmessage"
}

do_tls_subtests
terminate