#include "cert-common.h"
#include "utils.h"
-static void terminate(void);
-
/* This program tests that the server does not send the
* status request extension if no status response exists. That
* is to provide compatibility with gnutls 3.3.x which requires
if (ret < 0) {
fail("client: Handshake failed: %s\n", gnutls_strerror(ret));
- terminate();
} else {
if (debug)
success("client: Handshake was completed\n");
}
-/* These are global */
-pid_t child;
-
-static void terminate(void)
-{
- kill(child, SIGTERM);
- exit(1);
-}
-
static void server(int fd)
{
int ret;
void doit(void)
{
+ pid_t child;
int fd[2];
int ret, status = 0;
#include "utils.h"
-static void terminate(void);
-
/* This program tests the status request extension and that receiving the
* certificate status works.
*/
if (ret < 0) {
fail("client: Handshake failed: %s\n", gnutls_strerror(ret));
- terminate();
} else {
if (debug)
success("client: Handshake was completed\n");
if (received == 0) {
fail("client: didn't receive status request\n");
- terminate();
}
gnutls_bye(session, GNUTLS_SHUT_WR);
}
-/* These are global */
-pid_t child;
-
-static void terminate(void)
-{
- kill(child, SIGTERM);
- exit(1);
-}
-
static void server(int fd)
{
int ret;
void doit(void)
{
+ pid_t child;
int fd[2];
int ret, status = 0;
#include "cert-common.h"
#include "utils.h"
-static void terminate(void);
-
/* This program tests that the client does not send the
* status request extension if GNUTLS_NO_EXTENSIONS is set.
*/
if (ret < 0) {
fail("client: Handshake failed: %s\n", gnutls_strerror(ret));
- terminate();
} else {
if (debug)
success("client: Handshake was completed\n");
goto end;
} else if (ret < 0) {
fail("client: Error: %s\n", gnutls_strerror(ret));
- terminate();
}
gnutls_bye(session, GNUTLS_SHUT_WR);
}
-/* These are global */
-pid_t child;
-
-static void terminate(void)
-{
- kill(child, SIGTERM);
- exit(1);
-}
-
static void server(int fd, const char *prio)
{
int ret;
static
void start(const char *prio)
{
+ pid_t child;
int fd[2];
int ret, status = 0;