Skip to content

Commit

Permalink
Land libressl#586, Enable handshake_table regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
busterb committed May 7, 2020
2 parents 049c874 + 1fe7792 commit 442a969
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
18 changes: 18 additions & 0 deletions patches/handshake_table.c.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
--- tests/handshake_table.c.orig Mon May 4 23:28:43 2020
+++ tests/handshake_table.c Mon May 4 23:29:50 2020
@@ -477,6 +477,7 @@
unsigned int depth = 0;
int ch, graphviz = 0, print = 0;

+#ifndef _MSC_VER
while ((ch = getopt(argc, argv, "Cg")) != -1) {
switch (ch) {
case 'C':
@@ -494,6 +495,7 @@

if (argc != 0)
usage();
+#endif

if (graphviz && print)
usage();
7 changes: 7 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,13 @@ add_executable(gost2814789t gost2814789t.c)
target_link_libraries(gost2814789t ${OPENSSL_LIBS})
add_test(gost2814789t gost2814789t)

# handshake_table
if(NOT BUILD_SHARED_LIBS)
add_executable(handshake_table handshake_table.c)
target_link_libraries(handshake_table ${OPENSSL_LIBS})
add_test(handshake_table handshake_table)
endif()

# hkdf_test
add_executable(hkdf_test hkdf_test.c)
target_link_libraries(hkdf_test ${OPENSSL_LIBS})
Expand Down
3 changes: 2 additions & 1 deletion tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ check_PROGRAMS += gost2814789t
gost2814789t_SOURCES = gost2814789t.c

# handshake_table
noinst_PROGRAMS = handshake_table
TESTS += handshake_table
check_PROGRAMS += handshake_table
handshake_table_SOURCES = handshake_table.c

# hkdf_test
Expand Down

0 comments on commit 442a969

Please sign in to comment.