-# $OpenBSD: Makefile,v 1.11 2021/01/10 07:30:50 tb Exp $
+# $OpenBSD: Makefile,v 1.12 2021/05/03 23:42:04 inoguchi Exp $
TEST_CASES+= cipher_list
TEST_CASES+= ssl_get_shared_ciphers
WARNINGS= Yes
LDLIBS= ${SSL_INT} -lcrypto
CFLAGS+= -DLIBRESSL_INTERNAL -Wall -Wundef -Werror
-CFLAGS+= -DCURDIR=\"${.CURDIR}\"
+CFLAGS+= -DCERTSDIR=\"${.CURDIR}/../certs\"
CFLAGS+= -I${.CURDIR}/../../../../lib/libssl
CLEANFILES+= ${TEST_CASES}
-/* $OpenBSD: ssl_get_shared_ciphers.c,v 1.8 2021/01/21 05:02:25 tb Exp $ */
+/* $OpenBSD: ssl_get_shared_ciphers.c,v 1.9 2021/05/03 23:42:04 inoguchi Exp $ */
/*
* Copyright (c) 2021 Theo Buehler <tb@openbsd.org>
*
}
static int
-shutdown(SSL *client_ssl, SSL *server_ssl, const char *description)
+shutdown_all(SSL *client_ssl, SSL *server_ssl, const char *description)
{
int loops = 0, client_ret = 0, server_ret = 0;
goto err;
}
- if (!shutdown(client_ssl, server_ssl, test->description))
+ if (!shutdown_all(client_ssl, server_ssl, test->description))
goto err;
failed = check_shared_ciphers(test, buf);
size_t i;
int failed = 0;
- if (asprintf(&server_cert, "%s/../certs/server.pem", CURDIR) == -1) {
+ if (asprintf(&server_cert, "%s/server.pem", CERTSDIR) == -1) {
fprintf(stderr, "asprintf server_cert failed\n");
failed = 1;
goto err;