File: tls-basic-anon.sh

package info (click to toggle)
librelp 1.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,516 kB
  • sloc: ansic: 8,223; sh: 5,083; makefile: 146; python: 25
file content (25 lines) | stat: -rwxr-xr-x 696 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
. ${srcdir:=$(pwd)}/test-framework.sh

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

	echo 'Send Message...'
	./send -l $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