]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: remove unused `terminate` from 2 tests
authorAlexander Sosedkin <asosedkin@redhat.com>
Mon, 30 Aug 2021 17:38:03 +0000 (19:38 +0200)
committerAlexander Sosedkin <asosedkin@redhat.com>
Mon, 30 Aug 2021 17:42:25 +0000 (19:42 +0200)
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
tests/send-data-before-handshake.c
tests/session-tickets-missing.c

index 5c15dda0caffa15be94a1ba0517bece8e3da2ca5..b2ab6aa966338ba8a50276f6d44cc0be2b29369a 100644 (file)
@@ -50,8 +50,6 @@ int main()
 #include "cert-common.h"
 #include "utils.h"
 
-static void terminate(void);
-
 /* This program tests that a client cannot send any unencrypted data
  * during the handshake process. That is to ensure we protect buggy clients
  * from transmitting sensitive data over the wire.
@@ -180,13 +178,6 @@ static void client(int fd, const char *prio)
 /* These are global */
 pid_t child;
 
-static void terminate(void)
-{
-       assert(child);
-       kill(child, SIGTERM);
-       exit(1);
-}
-
 static void server(int fd, const char *prio)
 {
        int ret;
index 509e43f639c32f2658ee929142d12afeff5b5896..aaa1caea13236651e0b2220056869b0baf8ee57d 100644 (file)
@@ -52,8 +52,6 @@ int main()
 #include "cert-common.h"
 #include "utils.h"
 
-static void terminate(void);
-
 /* This program tests that handshakes do not include a session ticket
  * if the flag GNUTLS_NO_TICKETS is specified under TLS 1.2.
  *
@@ -167,13 +165,6 @@ static void client(int fd, const char *prio, unsigned int flags)
 /* These are global */
 pid_t child;
 
-static void terminate(void)
-{
-       assert(child);
-       kill(child, SIGTERM);
-       exit(1);
-}
-
 static void server(int fd, const char *prio, unsigned int flags)
 {
        int ret;