summaryrefslogtreecommitdiff
path: root/tests/tls13/post-handshake-without-cert.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tls13/post-handshake-without-cert.c')
-rw-r--r--tests/tls13/post-handshake-without-cert.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/tls13/post-handshake-without-cert.c b/tests/tls13/post-handshake-without-cert.c
index 4ee821b413..e6075ab0a0 100644
--- a/tests/tls13/post-handshake-without-cert.c
+++ b/tests/tls13/post-handshake-without-cert.c
@@ -193,6 +193,9 @@ static void server(int fd)
}
} while (ret < 0 && gnutls_error_is_fatal(ret) == 0);
+ if ((gnutls_session_get_flags(session) & GNUTLS_SFLAGS_POST_HANDSHAKE_AUTH)) {
+ fail("server: session flags did contain GNUTLS_SFLAGS_POST_HANDSHAKE_AUTH\n");
+ }
if (server_hello_ok == 0) {
fail("server: did not verify the server hello contents\n");
@@ -216,7 +219,7 @@ static void server(int fd)
static void ch_handler(int sig)
{
- int status;
+ int status = 0;
wait(&status);
check_wait_status(status);
return;
@@ -229,6 +232,7 @@ void doit(void)
pid_t child;
signal(SIGCHLD, ch_handler);
+ signal(SIGPIPE, SIG_IGN);
ret = socketpair(AF_UNIX, SOCK_STREAM, 0, fd);
if (ret < 0) {