diff options
author | Alexander Sosedkin <asosedkin@redhat.com> | 2021-08-30 19:38:03 +0200 |
---|---|---|
committer | Alexander Sosedkin <asosedkin@redhat.com> | 2021-08-30 19:42:25 +0200 |
commit | 8554e98779e6b021cd4888eccda89c99b52b7f13 (patch) | |
tree | ef41f7170990eb5734f0ee1c37dfd708dfc43abe | |
parent | 01d3fa55d9a505b2d3d91c25e195463cf7e566b0 (diff) | |
download | gnutls-8554e98779e6b021cd4888eccda89c99b52b7f13.tar.gz |
tests: remove unused `terminate` from 2 tests
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
-rw-r--r-- | tests/send-data-before-handshake.c | 9 | ||||
-rw-r--r-- | tests/session-tickets-missing.c | 9 |
2 files changed, 0 insertions, 18 deletions
diff --git a/tests/send-data-before-handshake.c b/tests/send-data-before-handshake.c index 5c15dda0ca..b2ab6aa966 100644 --- a/tests/send-data-before-handshake.c +++ b/tests/send-data-before-handshake.c @@ -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; diff --git a/tests/session-tickets-missing.c b/tests/session-tickets-missing.c index 509e43f639..aaa1caea13 100644 --- a/tests/session-tickets-missing.c +++ b/tests/session-tickets-missing.c @@ -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; |