diff options
Diffstat (limited to 'tests')
34 files changed, 499 insertions, 73 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index d7cc499..c497b77 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -1,3 +1,18 @@ | |||
1 | # | ||
2 | # Copyright (c) 2015 Brent Cook | ||
3 | # | ||
4 | # Permission to use, copy, modify, and distribute this software for any | ||
5 | # purpose with or without fee is hereby granted, provided that the above | ||
6 | # copyright notice and this permission notice appear in all copies. | ||
7 | # | ||
8 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
14 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
15 | |||
1 | add_definitions(-DLIBRESSL_CRYPTO_INTERNAL) | 16 | add_definitions(-DLIBRESSL_CRYPTO_INTERNAL) |
2 | 17 | ||
3 | include_directories( | 18 | include_directories( |
@@ -65,6 +80,9 @@ function(add_platform_test TEST_NAME) | |||
65 | endif() | 80 | endif() |
66 | endfunction() | 81 | endfunction() |
67 | 82 | ||
83 | # XXX - should probably be in their own static lib | ||
84 | set(TEST_HELPER_SRC test.c test_util.c) | ||
85 | |||
68 | # aeadtest | 86 | # aeadtest |
69 | add_executable(aeadtest aeadtest.c) | 87 | add_executable(aeadtest aeadtest.c) |
70 | target_link_libraries(aeadtest ${OPENSSL_TEST_LIBS}) | 88 | target_link_libraries(aeadtest ${OPENSSL_TEST_LIBS}) |
@@ -449,6 +467,7 @@ add_platform_test(evptest evptest ${CMAKE_CURRENT_SOURCE_DIR}/evptests.txt) | |||
449 | # evp_test | 467 | # evp_test |
450 | add_executable(evp_test evp_test.c) | 468 | add_executable(evp_test evp_test.c) |
451 | target_link_libraries(evp_test ${OPENSSL_TEST_LIBS}) | 469 | target_link_libraries(evp_test ${OPENSSL_TEST_LIBS}) |
470 | prepare_emscripten_test_target(evp_test) | ||
452 | add_platform_test(evp_test evp_test) | 471 | add_platform_test(evp_test evp_test) |
453 | 472 | ||
454 | # exdata_test | 473 | # exdata_test |
@@ -536,9 +555,12 @@ prepare_emscripten_test_target(lhash_test) | |||
536 | add_platform_test(lhash_test lhash_test) | 555 | add_platform_test(lhash_test lhash_test) |
537 | 556 | ||
538 | # md_test | 557 | # md_test |
539 | add_executable(md_test md_test.c) | 558 | # XXX - ftruncate and mkstemp missing from Windows |
540 | target_link_libraries(md_test ${OPENSSL_TEST_LIBS}) | 559 | if(NOT WIN32) |
541 | add_platform_test(md_test md_test) | 560 | add_executable(md_test md_test.c ${TEST_HELPER_SRC}) |
561 | target_link_libraries(md_test ${OPENSSL_TEST_LIBS}) | ||
562 | add_platform_test(md_test md_test) | ||
563 | endif() | ||
542 | 564 | ||
543 | # mlkem_tests | 565 | # mlkem_tests |
544 | add_executable(mlkem_tests mlkem_tests.c mlkem_tests_util.c parse_test_file.c) | 566 | add_executable(mlkem_tests mlkem_tests.c mlkem_tests_util.c parse_test_file.c) |
@@ -620,13 +642,7 @@ add_platform_test(policy policy) | |||
620 | # pq_test | 642 | # pq_test |
621 | add_executable(pq_test pq_test.c) | 643 | add_executable(pq_test pq_test.c) |
622 | target_link_libraries(pq_test ${OPENSSL_TEST_LIBS}) | 644 | target_link_libraries(pq_test ${OPENSSL_TEST_LIBS}) |
623 | if(NOT WIN32) | 645 | add_platform_test(pq_test pq_test) |
624 | add_test(NAME pq_test COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/pq_test.sh) | ||
625 | else() | ||
626 | add_test(NAME pq_test COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/pq_test.bat | ||
627 | $<TARGET_FILE:pq_test>) | ||
628 | endif() | ||
629 | set_tests_properties(pq_test PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") | ||
630 | 646 | ||
631 | # quictest | 647 | # quictest |
632 | set(QUICTEST_SRC quictest.c) | 648 | set(QUICTEST_SRC quictest.c) |
@@ -724,9 +740,12 @@ endif() | |||
724 | set_tests_properties(servertest PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") | 740 | set_tests_properties(servertest PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") |
725 | 741 | ||
726 | # sha_test | 742 | # sha_test |
727 | add_executable(sha_test sha_test.c) | 743 | # XXX - ftruncate and mkstemp missing from Windows |
728 | target_link_libraries(sha_test ${OPENSSL_TEST_LIBS}) | 744 | if(NOT WIN32) |
729 | add_platform_test(sha_test sha_test) | 745 | add_executable(sha_test sha_test.c ${TEST_HELPER_SRC}) |
746 | target_link_libraries(sha_test ${OPENSSL_TEST_LIBS}) | ||
747 | add_platform_test(sha_test sha_test) | ||
748 | endif() | ||
730 | 749 | ||
731 | # shutdowntest | 750 | # shutdowntest |
732 | set(SHUTDOWNTEST_SRC shutdowntest.c) | 751 | set(SHUTDOWNTEST_SRC shutdowntest.c) |
@@ -938,11 +957,6 @@ add_executable(x509_name_test x509_name_test.c) | |||
938 | target_link_libraries(x509_name_test ${OPENSSL_TEST_LIBS}) | 957 | target_link_libraries(x509_name_test ${OPENSSL_TEST_LIBS}) |
939 | add_platform_test(x509_name_test x509_name_test) | 958 | add_platform_test(x509_name_test x509_name_test) |
940 | 959 | ||
941 | # x509name | ||
942 | add_executable(x509name x509name.c) | ||
943 | target_link_libraries(x509name ${OPENSSL_TEST_LIBS}) | ||
944 | add_platform_test(x509name x509name) | ||
945 | |||
946 | # x509req_ext | 960 | # x509req_ext |
947 | add_executable(x509req_ext x509req_ext.c) | 961 | add_executable(x509req_ext x509req_ext.c) |
948 | target_link_libraries(x509req_ext ${OPENSSL_TEST_LIBS}) | 962 | target_link_libraries(x509req_ext ${OPENSSL_TEST_LIBS}) |
diff --git a/tests/Makefile.am b/tests/Makefile.am index b58de21..914b1e5 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am | |||
@@ -1,3 +1,18 @@ | |||
1 | # | ||
2 | # Copyright (c) 2015 Brent Cook | ||
3 | # | ||
4 | # Permission to use, copy, modify, and distribute this software for any | ||
5 | # purpose with or without fee is hereby granted, provided that the above | ||
6 | # copyright notice and this permission notice appear in all copies. | ||
7 | # | ||
8 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
14 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
15 | |||
1 | include $(top_srcdir)/Makefile.am.common | 16 | include $(top_srcdir)/Makefile.am.common |
2 | 17 | ||
3 | -include $(abs_top_builddir)/crypto/libcrypto_la_objects.mk | 18 | -include $(abs_top_builddir)/crypto/libcrypto_la_objects.mk |
@@ -19,6 +34,7 @@ AM_CPPFLAGS += -I $(top_srcdir)/crypto/modes | |||
19 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/sha | 34 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/sha |
20 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/x509 | 35 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/x509 |
21 | AM_CPPFLAGS += -I $(top_srcdir)/ssl | 36 | AM_CPPFLAGS += -I $(top_srcdir)/ssl |
37 | AM_CPPFLAGS += -I $(top_srcdir)/tests | ||
22 | AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl | 38 | AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl |
23 | AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl/compat | 39 | AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl/compat |
24 | AM_CPPFLAGS += -D_PATH_SSL_CA_FILE=\"$(top_srcdir)/cert.pem\" | 40 | AM_CPPFLAGS += -D_PATH_SSL_CA_FILE=\"$(top_srcdir)/cert.pem\" |
@@ -86,6 +102,11 @@ check_PROGRAMS = | |||
86 | EXTRA_DIST = CMakeLists.txt | 102 | EXTRA_DIST = CMakeLists.txt |
87 | DISTCLEANFILES = pidwraptest.txt | 103 | DISTCLEANFILES = pidwraptest.txt |
88 | 104 | ||
105 | # XXX - should probably be in their own static lib | ||
106 | TEST_HELPER_SRC = test.c test_util.c | ||
107 | noinst_HEADERS = test.h | ||
108 | EXTRA_DIST += $(TEST_HELPER_SRC) | ||
109 | |||
89 | # aeadtest | 110 | # aeadtest |
90 | TESTS += aeadtest.sh | 111 | TESTS += aeadtest.sh |
91 | check_PROGRAMS += aeadtest | 112 | check_PROGRAMS += aeadtest |
@@ -338,7 +359,7 @@ chachatest_SOURCES = chachatest.c | |||
338 | TESTS += cipher_list | 359 | TESTS += cipher_list |
339 | check_PROGRAMS += cipher_list | 360 | check_PROGRAMS += cipher_list |
340 | cipher_list_SOURCES = cipher_list.c | 361 | cipher_list_SOURCES = cipher_list.c |
341 | noinst_HEADERS = tests.h | 362 | noinst_HEADERS += tests.h |
342 | 363 | ||
343 | # cipherstest | 364 | # cipherstest |
344 | TESTS += cipherstest | 365 | TESTS += cipherstest |
@@ -548,7 +569,7 @@ lhash_test_SOURCES = lhash_test.c | |||
548 | # md_test | 569 | # md_test |
549 | TESTS += md_test | 570 | TESTS += md_test |
550 | check_PROGRAMS += md_test | 571 | check_PROGRAMS += md_test |
551 | md_test_SOURCES = md_test.c | 572 | md_test_SOURCES = md_test.c $(TEST_HELPER_SRC) |
552 | 573 | ||
553 | noinst_HEADERS += mlkem_tests_util.h | 574 | noinst_HEADERS += mlkem_tests_util.h |
554 | noinst_HEADERS += parse_test_file.h | 575 | noinst_HEADERS += parse_test_file.h |
@@ -656,11 +677,9 @@ EXTRA_DIST += policy_root2.pem | |||
656 | EXTRA_DIST += policy_root_cross_inhibit_mapping.pem | 677 | EXTRA_DIST += policy_root_cross_inhibit_mapping.pem |
657 | 678 | ||
658 | # pq_test | 679 | # pq_test |
659 | TESTS += pq_test.sh | 680 | TESTS += pq_test |
660 | check_PROGRAMS += pq_test | 681 | check_PROGRAMS += pq_test |
661 | pq_test_SOURCES = pq_test.c | 682 | pq_test_SOURCES = pq_test.c |
662 | EXTRA_DIST += pq_test.sh pq_test.bat | ||
663 | EXTRA_DIST += pq_expected.txt | ||
664 | 683 | ||
665 | # quictest | 684 | # quictest |
666 | TESTS += quictest.sh | 685 | TESTS += quictest.sh |
@@ -747,7 +766,7 @@ EXTRA_DIST += servertest.sh servertest.bat | |||
747 | # sha_test | 766 | # sha_test |
748 | TESTS += sha_test | 767 | TESTS += sha_test |
749 | check_PROGRAMS += sha_test | 768 | check_PROGRAMS += sha_test |
750 | sha_test_SOURCES = sha_test.c | 769 | sha_test_SOURCES = sha_test.c $(TEST_HELPER_SRC) |
751 | 770 | ||
752 | # shutdowntest | 771 | # shutdowntest |
753 | TESTS += shutdowntest.sh | 772 | TESTS += shutdowntest.sh |
@@ -919,11 +938,6 @@ TESTS += x509_name_test | |||
919 | check_PROGRAMS += x509_name_test | 938 | check_PROGRAMS += x509_name_test |
920 | x509_name_test_SOURCES = x509_name_test.c | 939 | x509_name_test_SOURCES = x509_name_test.c |
921 | 940 | ||
922 | # x509name | ||
923 | TESTS += x509name | ||
924 | check_PROGRAMS += x509name | ||
925 | x509name_SOURCES = x509name.c | ||
926 | |||
927 | # x509req_ext | 941 | # x509req_ext |
928 | TESTS += x509req_ext | 942 | TESTS += x509req_ext |
929 | check_PROGRAMS += x509req_ext | 943 | check_PROGRAMS += x509req_ext |
diff --git a/tests/aeadtest.sh b/tests/aeadtest.sh index 212e354..bb09df2 100755 --- a/tests/aeadtest.sh +++ b/tests/aeadtest.sh | |||
@@ -1,4 +1,19 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | ||
3 | # Copyright (c) 2014 Brent Cook | ||
4 | # | ||
5 | # Permission to use, copy, modify, and distribute this software for any | ||
6 | # purpose with or without fee is hereby granted, provided that the above | ||
7 | # copyright notice and this permission notice appear in all copies. | ||
8 | # | ||
9 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | |||
2 | set -e | 17 | set -e |
3 | TEST=./aeadtest | 18 | TEST=./aeadtest |
4 | if [ -e ./aeadtest.exe ]; then | 19 | if [ -e ./aeadtest.exe ]; then |
diff --git a/tests/arc4randomforktest.sh b/tests/arc4randomforktest.sh index fe03068..bbe7641 100755 --- a/tests/arc4randomforktest.sh +++ b/tests/arc4randomforktest.sh | |||
@@ -1,4 +1,19 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | ||
3 | # Copyright (c) 2014 Brent Cook | ||
4 | # | ||
5 | # Permission to use, copy, modify, and distribute this software for any | ||
6 | # purpose with or without fee is hereby granted, provided that the above | ||
7 | # copyright notice and this permission notice appear in all copies. | ||
8 | # | ||
9 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | |||
2 | set -e | 17 | set -e |
3 | ./arc4randomforktest | 18 | ./arc4randomforktest |
4 | ./arc4randomforktest -b | 19 | ./arc4randomforktest -b |
diff --git a/tests/cmake/CMakeLists.txt b/tests/cmake/CMakeLists.txt index 956fbfd..c3b7c4f 100644 --- a/tests/cmake/CMakeLists.txt +++ b/tests/cmake/CMakeLists.txt | |||
@@ -1,3 +1,18 @@ | |||
1 | # | ||
2 | # Copyright (c) 2023 Pierre Wendling | ||
3 | # | ||
4 | # Permission to use, copy, modify, and distribute this software for any | ||
5 | # purpose with or without fee is hereby granted, provided that the above | ||
6 | # copyright notice and this permission notice appear in all copies. | ||
7 | # | ||
8 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
14 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
15 | |||
1 | cmake_minimum_required(VERSION 3.5) | 16 | cmake_minimum_required(VERSION 3.5) |
2 | 17 | ||
3 | project(LibreSSL_Consumer LANGUAGES C) | 18 | project(LibreSSL_Consumer LANGUAGES C) |
diff --git a/tests/compat/pipe2.c b/tests/compat/pipe2.c index 7600783..c27a858 100644 --- a/tests/compat/pipe2.c +++ b/tests/compat/pipe2.c | |||
@@ -35,6 +35,22 @@ static int setfl(int fd, int flag) | |||
35 | return rc; | 35 | return rc; |
36 | } | 36 | } |
37 | 37 | ||
38 | /* | ||
39 | * Have open() temporarily use up file descriptors until reaching beyond the | ||
40 | * allocated sockets, then leak the ones conflicting with any of the latter. | ||
41 | */ | ||
42 | static void create_issue_1069_sentinels(int socket_vector[2]) | ||
43 | { | ||
44 | int fd = open("CONIN$", O_RDONLY); | ||
45 | if (fd == -1 || fd > socket_vector[0] && fd > socket_vector[1]) { | ||
46 | return; | ||
47 | } | ||
48 | create_issue_1069_sentinels(socket_vector); | ||
49 | if (fd != socket_vector[0] && fd != socket_vector[1]) { | ||
50 | close(fd); | ||
51 | } | ||
52 | } | ||
53 | |||
38 | int socketpair(int domain, int type, int protocol, int socket_vector[2]) | 54 | int socketpair(int domain, int type, int protocol, int socket_vector[2]) |
39 | { | 55 | { |
40 | if (domain != AF_UNIX || !(type & SOCK_STREAM) || protocol != PF_UNSPEC) | 56 | if (domain != AF_UNIX || !(type & SOCK_STREAM) || protocol != PF_UNSPEC) |
@@ -85,6 +101,9 @@ int socketpair(int domain, int type, int protocol, int socket_vector[2]) | |||
85 | goto err; | 101 | goto err; |
86 | 102 | ||
87 | closesocket(listener); | 103 | closesocket(listener); |
104 | |||
105 | create_issue_1069_sentinels(socket_vector); | ||
106 | |||
88 | return 0; | 107 | return 0; |
89 | 108 | ||
90 | err: | 109 | err: |
diff --git a/tests/dtlstest.sh b/tests/dtlstest.sh index 8f9b229..f0b7161 100755 --- a/tests/dtlstest.sh +++ b/tests/dtlstest.sh | |||
@@ -1,4 +1,19 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | ||
3 | # Copyright (c) 2021 Kinichiro Inoguchi | ||
4 | # | ||
5 | # Permission to use, copy, modify, and distribute this software for any | ||
6 | # purpose with or without fee is hereby granted, provided that the above | ||
7 | # copyright notice and this permission notice appear in all copies. | ||
8 | # | ||
9 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | |||
2 | set -e | 17 | set -e |
3 | 18 | ||
4 | dtlstest_bin=./dtlstest | 19 | dtlstest_bin=./dtlstest |
diff --git a/tests/evptest.sh b/tests/evptest.sh index ba44d75..ddd7445 100755 --- a/tests/evptest.sh +++ b/tests/evptest.sh | |||
@@ -1,4 +1,19 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | ||
3 | # Copyright (c) 2014 Brent Cook | ||
4 | # | ||
5 | # Permission to use, copy, modify, and distribute this software for any | ||
6 | # purpose with or without fee is hereby granted, provided that the above | ||
7 | # copyright notice and this permission notice appear in all copies. | ||
8 | # | ||
9 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | |||
2 | set -e | 17 | set -e |
3 | TEST=./evptest | 18 | TEST=./evptest |
4 | if [ -e ./evptest.exe ]; then | 19 | if [ -e ./evptest.exe ]; then |
diff --git a/tests/keypairtest.sh b/tests/keypairtest.sh index 8bb7d9f..f2c20c4 100755 --- a/tests/keypairtest.sh +++ b/tests/keypairtest.sh | |||
@@ -1,4 +1,19 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | ||
3 | # Copyright (c) 2018 Kinichiro Inoguchi | ||
4 | # | ||
5 | # Permission to use, copy, modify, and distribute this software for any | ||
6 | # purpose with or without fee is hereby granted, provided that the above | ||
7 | # copyright notice and this permission notice appear in all copies. | ||
8 | # | ||
9 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | |||
2 | set -e | 17 | set -e |
3 | TEST=./keypairtest | 18 | TEST=./keypairtest |
4 | if [ -e ./keypairtest.exe ]; then | 19 | if [ -e ./keypairtest.exe ]; then |
diff --git a/tests/mlkem_tests.sh b/tests/mlkem_tests.sh index 2a9856e..cbc0f0b 100755 --- a/tests/mlkem_tests.sh +++ b/tests/mlkem_tests.sh | |||
@@ -1,4 +1,19 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | ||
3 | # Copyright (c) 2024 Theo Buehler | ||
4 | # | ||
5 | # Permission to use, copy, modify, and distribute this software for any | ||
6 | # purpose with or without fee is hereby granted, provided that the above | ||
7 | # copyright notice and this permission notice appear in all copies. | ||
8 | # | ||
9 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | |||
2 | set -e | 17 | set -e |
3 | 18 | ||
4 | TEST=./mlkem_tests | 19 | TEST=./mlkem_tests |
diff --git a/tests/ocsptest.bat b/tests/ocsptest.bat index 2b6b66b..8d44ee0 100644 --- a/tests/ocsptest.bat +++ b/tests/ocsptest.bat | |||
@@ -1,6 +1,19 @@ | |||
1 | @echo off | 1 | @echo off |
2 | setlocal enabledelayedexpansion | 2 | setlocal enabledelayedexpansion |
3 | REM ocspocsp_test_bin.bat | 3 | |
4 | :: Copyright (c) 2016 Kinichiro Inoguchi | ||
5 | :: | ||
6 | :: Permission to use, copy, modify, and distribute this software for any | ||
7 | :: purpose with or without fee is hereby granted, provided that the above | ||
8 | :: copyright notice and this permission notice appear in all copies. | ||
9 | :: | ||
10 | :: THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
11 | :: WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
12 | :: MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
13 | :: ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
14 | :: WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
15 | :: ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
16 | :: OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
4 | 17 | ||
5 | set ocsp_test_bin=%1 | 18 | set ocsp_test_bin=%1 |
6 | set ocsp_test_bin=%ocsp_test_bin:/=\% | 19 | set ocsp_test_bin=%ocsp_test_bin:/=\% |
diff --git a/tests/ocsptest.sh b/tests/ocsptest.sh index a1c266d..71c975e 100755 --- a/tests/ocsptest.sh +++ b/tests/ocsptest.sh | |||
@@ -1,4 +1,19 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | ||
3 | # Copyright (c) 2016 Brent Cook | ||
4 | # | ||
5 | # Permission to use, copy, modify, and distribute this software for any | ||
6 | # purpose with or without fee is hereby granted, provided that the above | ||
7 | # copyright notice and this permission notice appear in all copies. | ||
8 | # | ||
9 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | |||
2 | set -e | 17 | set -e |
3 | TEST=./ocsp_test | 18 | TEST=./ocsp_test |
4 | if [ -e ./ocsp_test.exe ]; then | 19 | if [ -e ./ocsp_test.exe ]; then |
diff --git a/tests/pidwraptest.sh b/tests/pidwraptest.sh index 04fb5c4..d5a2f71 100755 --- a/tests/pidwraptest.sh +++ b/tests/pidwraptest.sh | |||
@@ -1,4 +1,19 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | ||
3 | # Copyright (c) 2014 Brent Cook | ||
4 | # | ||
5 | # Permission to use, copy, modify, and distribute this software for any | ||
6 | # purpose with or without fee is hereby granted, provided that the above | ||
7 | # copyright notice and this permission notice appear in all copies. | ||
8 | # | ||
9 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | |||
2 | ./pidwraptest > pidwraptest.txt | 17 | ./pidwraptest > pidwraptest.txt |
3 | while read a b; | 18 | while read a b; |
4 | do | 19 | do |
diff --git a/tests/pq_test.bat b/tests/pq_test.bat deleted file mode 100644 index 084f06d..0000000 --- a/tests/pq_test.bat +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | @echo off | ||
2 | setlocal enabledelayedexpansion | ||
3 | REM pq_test.bat | ||
4 | |||
5 | set pq_test_bin=%1 | ||
6 | set pq_test_bin=%pq_test_bin:/=\% | ||
7 | if not exist %pq_test_bin% exit /b 1 | ||
8 | |||
9 | set pq_output=pq_output.txt | ||
10 | if exist %pq_output% del %pq_output% | ||
11 | |||
12 | %pq_test_bin% > %pq_output% | ||
13 | fc /b %pq_output% %srcdir%\pq_expected.txt | ||
14 | |||
15 | endlocal | ||
diff --git a/tests/pq_test.sh b/tests/pq_test.sh deleted file mode 100755 index eab6f3c..0000000 --- a/tests/pq_test.sh +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | set -e | ||
3 | TEST=./pq_test | ||
4 | if [ -e ./pq_test.exe ]; then | ||
5 | TEST=./pq_test.exe | ||
6 | elif [ -e ./pq_test.js ]; then | ||
7 | TEST="node ./pq_test.js" | ||
8 | fi | ||
9 | $TEST | diff -b $srcdir/pq_expected.txt - | ||
diff --git a/tests/quictest.bat b/tests/quictest.bat index 645fc2f..be731c8 100644 --- a/tests/quictest.bat +++ b/tests/quictest.bat | |||
@@ -1,6 +1,19 @@ | |||
1 | @echo off | 1 | @echo off |
2 | setlocal enabledelayedexpansion | 2 | setlocal enabledelayedexpansion |
3 | REM quictest.bat | 3 | |
4 | :: Copyright (c) 2022 Brent Cook | ||
5 | :: | ||
6 | :: Permission to use, copy, modify, and distribute this software for any | ||
7 | :: purpose with or without fee is hereby granted, provided that the above | ||
8 | :: copyright notice and this permission notice appear in all copies. | ||
9 | :: | ||
10 | :: THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
11 | :: WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
12 | :: MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
13 | :: ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
14 | :: WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
15 | :: ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
16 | :: OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
4 | 17 | ||
5 | set quictest_bin=%1 | 18 | set quictest_bin=%1 |
6 | set quictest_bin=%quictest_bin:/=\% | 19 | set quictest_bin=%quictest_bin:/=\% |
diff --git a/tests/quictest.sh b/tests/quictest.sh index 23561ad..407a66b 100755 --- a/tests/quictest.sh +++ b/tests/quictest.sh | |||
@@ -1,4 +1,19 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | ||
3 | # Copyright (c) 2022 Brent Cook | ||
4 | # | ||
5 | # Permission to use, copy, modify, and distribute this software for any | ||
6 | # purpose with or without fee is hereby granted, provided that the above | ||
7 | # copyright notice and this permission notice appear in all copies. | ||
8 | # | ||
9 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | |||
2 | set -e | 17 | set -e |
3 | 18 | ||
4 | quictest_bin=./quictest | 19 | quictest_bin=./quictest |
diff --git a/tests/renegotiation_test.bat b/tests/renegotiation_test.bat index 0086046..6691a39 100644 --- a/tests/renegotiation_test.bat +++ b/tests/renegotiation_test.bat | |||
@@ -1,6 +1,19 @@ | |||
1 | @echo off | 1 | @echo off |
2 | setlocal enabledelayedexpansion | 2 | setlocal enabledelayedexpansion |
3 | REM renegotiation_test.bat | 3 | |
4 | :: Copyright (c) 2025 Theo Beuhler | ||
5 | :: | ||
6 | :: Permission to use, copy, modify, and distribute this software for any | ||
7 | :: purpose with or without fee is hereby granted, provided that the above | ||
8 | :: copyright notice and this permission notice appear in all copies. | ||
9 | :: | ||
10 | :: THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
11 | :: WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
12 | :: MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
13 | :: ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
14 | :: WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
15 | :: ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
16 | :: OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
4 | 17 | ||
5 | set renegotiation_test_bin=%1 | 18 | set renegotiation_test_bin=%1 |
6 | set renegotiation_test_bin=%renegotiation_test_bin:/=\% | 19 | set renegotiation_test_bin=%renegotiation_test_bin:/=\% |
diff --git a/tests/renegotiation_test.sh b/tests/renegotiation_test.sh index bbf27c8..8d963a2 100755 --- a/tests/renegotiation_test.sh +++ b/tests/renegotiation_test.sh | |||
@@ -1,4 +1,19 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | ||
3 | # Copyright (c) 2025 Theo Buehler | ||
4 | # | ||
5 | # Permission to use, copy, modify, and distribute this software for any | ||
6 | # purpose with or without fee is hereby granted, provided that the above | ||
7 | # copyright notice and this permission notice appear in all copies. | ||
8 | # | ||
9 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | |||
2 | set -e | 17 | set -e |
3 | 18 | ||
4 | renegotiation_test_bin=./renegotiation_test | 19 | renegotiation_test_bin=./renegotiation_test |
diff --git a/tests/servertest.bat b/tests/servertest.bat index c0bfaa4..d72d8de 100644 --- a/tests/servertest.bat +++ b/tests/servertest.bat | |||
@@ -1,6 +1,19 @@ | |||
1 | @echo off | 1 | @echo off |
2 | setlocal enabledelayedexpansion | 2 | setlocal enabledelayedexpansion |
3 | REM servertest.bat | 3 | |
4 | :: Copyright (c) 2017 Kinichiro Inoguchi | ||
5 | :: | ||
6 | :: Permission to use, copy, modify, and distribute this software for any | ||
7 | :: purpose with or without fee is hereby granted, provided that the above | ||
8 | :: copyright notice and this permission notice appear in all copies. | ||
9 | :: | ||
10 | :: THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
11 | :: WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
12 | :: MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
13 | :: ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
14 | :: WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
15 | :: ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
16 | :: OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
4 | 17 | ||
5 | set servertest_bin=%1 | 18 | set servertest_bin=%1 |
6 | set servertest_bin=%servertest_bin:/=\% | 19 | set servertest_bin=%servertest_bin:/=\% |
diff --git a/tests/servertest.sh b/tests/servertest.sh index 1662332..4770e4b 100755 --- a/tests/servertest.sh +++ b/tests/servertest.sh | |||
@@ -1,4 +1,19 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | ||
3 | # Copyright (c) 2017 Kinichiro Inoguchi | ||
4 | # | ||
5 | # Permission to use, copy, modify, and distribute this software for any | ||
6 | # purpose with or without fee is hereby granted, provided that the above | ||
7 | # copyright notice and this permission notice appear in all copies. | ||
8 | # | ||
9 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | |||
2 | set -e | 17 | set -e |
3 | 18 | ||
4 | servertest_bin=./servertest | 19 | servertest_bin=./servertest |
diff --git a/tests/shutdowntest.bat b/tests/shutdowntest.bat index f087dbb..d722fa0 100644 --- a/tests/shutdowntest.bat +++ b/tests/shutdowntest.bat | |||
@@ -1,6 +1,19 @@ | |||
1 | @echo off | 1 | @echo off |
2 | setlocal enabledelayedexpansion | 2 | setlocal enabledelayedexpansion |
3 | REM shutdowntest.bat | 3 | |
4 | :: Copyright (c) 2024 Theo Beuhler | ||
5 | :: | ||
6 | :: Permission to use, copy, modify, and distribute this software for any | ||
7 | :: purpose with or without fee is hereby granted, provided that the above | ||
8 | :: copyright notice and this permission notice appear in all copies. | ||
9 | :: | ||
10 | :: THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
11 | :: WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
12 | :: MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
13 | :: ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
14 | :: WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
15 | :: ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
16 | :: OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
4 | 17 | ||
5 | set shutdowntest_bin=%1 | 18 | set shutdowntest_bin=%1 |
6 | set shutdowntest_bin=%shutdowntest_bin:/=\% | 19 | set shutdowntest_bin=%shutdowntest_bin:/=\% |
diff --git a/tests/shutdowntest.sh b/tests/shutdowntest.sh index d3ae472..b3c98da 100755 --- a/tests/shutdowntest.sh +++ b/tests/shutdowntest.sh | |||
@@ -1,4 +1,19 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | ||
3 | # Copyright (c) 2024 Theo Buehler | ||
4 | # | ||
5 | # Permission to use, copy, modify, and distribute this software for any | ||
6 | # purpose with or without fee is hereby granted, provided that the above | ||
7 | # copyright notice and this permission notice appear in all copies. | ||
8 | # | ||
9 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | |||
2 | set -e | 17 | set -e |
3 | 18 | ||
4 | shutdowntest_bin=./shutdowntest | 19 | shutdowntest_bin=./shutdowntest |
diff --git a/tests/ssltest.bat b/tests/ssltest.bat index 5dda6bc..17f912f 100644 --- a/tests/ssltest.bat +++ b/tests/ssltest.bat | |||
@@ -1,6 +1,19 @@ | |||
1 | @echo off | 1 | @echo off |
2 | setlocal enabledelayedexpansion | 2 | setlocal enabledelayedexpansion |
3 | REM ssltest.bat | 3 | |
4 | :: Copyright (c) 2016 Kinichiro Inoguchi | ||
5 | :: | ||
6 | :: Permission to use, copy, modify, and distribute this software for any | ||
7 | :: purpose with or without fee is hereby granted, provided that the above | ||
8 | :: copyright notice and this permission notice appear in all copies. | ||
9 | :: | ||
10 | :: THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
11 | :: WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
12 | :: MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
13 | :: ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
14 | :: WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
15 | :: ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
16 | :: OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
4 | 17 | ||
5 | set ssltest_bin=%1 | 18 | set ssltest_bin=%1 |
6 | set ssltest_bin=%ssltest_bin:/=\% | 19 | set ssltest_bin=%ssltest_bin:/=\% |
diff --git a/tests/ssltest.sh b/tests/ssltest.sh index 29ea0b0..4ec4884 100755 --- a/tests/ssltest.sh +++ b/tests/ssltest.sh | |||
@@ -1,4 +1,19 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | ||
3 | # Copyright (c) 2014 Brent Cook | ||
4 | # | ||
5 | # Permission to use, copy, modify, and distribute this software for any | ||
6 | # purpose with or without fee is hereby granted, provided that the above | ||
7 | # copyright notice and this permission notice appear in all copies. | ||
8 | # | ||
9 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | |||
2 | set -e | 17 | set -e |
3 | 18 | ||
4 | ssltest_bin=./ssltest | 19 | ssltest_bin=./ssltest |
diff --git a/tests/testdsa.bat b/tests/testdsa.bat index 898ded8..df53305 100644 --- a/tests/testdsa.bat +++ b/tests/testdsa.bat | |||
@@ -1,9 +1,21 @@ | |||
1 | @echo off | 1 | @echo off |
2 | setlocal enabledelayedexpansion | 2 | setlocal enabledelayedexpansion |
3 | REM testdsa.bat | ||
4 | 3 | ||
5 | 4 | :: Copyright (c) 2016 Kinichiro Inoguchi | |
6 | REM # Test DSA certificate generation of openssl | 5 | :: |
6 | :: Permission to use, copy, modify, and distribute this software for any | ||
7 | :: purpose with or without fee is hereby granted, provided that the above | ||
8 | :: copyright notice and this permission notice appear in all copies. | ||
9 | :: | ||
10 | :: THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
11 | :: WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
12 | :: MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
13 | :: ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
14 | :: WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
15 | :: ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
16 | :: OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
17 | |||
18 | :: Test DSA certificate generation of openssl | ||
7 | 19 | ||
8 | set openssl_bin=%1 | 20 | set openssl_bin=%1 |
9 | set openssl_bin=%openssl_bin:/=\% | 21 | set openssl_bin=%openssl_bin:/=\% |
diff --git a/tests/testdsa.sh b/tests/testdsa.sh index 7ecb8ef..230a1f8 100755 --- a/tests/testdsa.sh +++ b/tests/testdsa.sh | |||
@@ -1,6 +1,18 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # $OpenBSD: testdsa.sh,v 1.1 2014/08/26 17:50:07 jsing Exp $ | 2 | # |
3 | 3 | # Copyright (c) 2015 Brent Cook | |
4 | # | ||
5 | # Permission to use, copy, modify, and distribute this software for any | ||
6 | # purpose with or without fee is hereby granted, provided that the above | ||
7 | # copyright notice and this permission notice appear in all copies. | ||
8 | # | ||
9 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
4 | 16 | ||
5 | #Test DSA certificate generation of openssl | 17 | #Test DSA certificate generation of openssl |
6 | 18 | ||
diff --git a/tests/testenc.bat b/tests/testenc.bat index 84f48f2..fa14620 100644 --- a/tests/testenc.bat +++ b/tests/testenc.bat | |||
@@ -1,6 +1,19 @@ | |||
1 | @echo off | 1 | @echo off |
2 | setlocal enabledelayedexpansion | 2 | setlocal enabledelayedexpansion |
3 | REM testenc.bat | 3 | |
4 | :: Copyright (c) 2016 Kinichiro Inoguchi | ||
5 | :: | ||
6 | :: Permission to use, copy, modify, and distribute this software for any | ||
7 | :: purpose with or without fee is hereby granted, provided that the above | ||
8 | :: copyright notice and this permission notice appear in all copies. | ||
9 | :: | ||
10 | :: THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
11 | :: WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
12 | :: MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
13 | :: ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
14 | :: WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
15 | :: ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
16 | :: OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
4 | 17 | ||
5 | set test=P | 18 | set test=P |
6 | 19 | ||
diff --git a/tests/testenc.sh b/tests/testenc.sh index 63bce34..418e48d 100755 --- a/tests/testenc.sh +++ b/tests/testenc.sh | |||
@@ -1,5 +1,18 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # $OpenBSD: testenc.sh,v 1.1 2014/08/26 17:50:07 jsing Exp $ | 2 | # |
3 | # Copyright (c) 2015 Brent Cook | ||
4 | # | ||
5 | # Permission to use, copy, modify, and distribute this software for any | ||
6 | # purpose with or without fee is hereby granted, provided that the above | ||
7 | # copyright notice and this permission notice appear in all copies. | ||
8 | # | ||
9 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
3 | 16 | ||
4 | test=p | 17 | test=p |
5 | if [ -d ../apps/openssl ]; then | 18 | if [ -d ../apps/openssl ]; then |
diff --git a/tests/testrsa.bat b/tests/testrsa.bat index 59c3b5d..af59aad 100644 --- a/tests/testrsa.bat +++ b/tests/testrsa.bat | |||
@@ -1,9 +1,21 @@ | |||
1 | @echo off | 1 | @echo off |
2 | setlocal enabledelayedexpansion | 2 | setlocal enabledelayedexpansion |
3 | REM testrsa.bat | ||
4 | 3 | ||
5 | 4 | :: Copyright (c) 2016 Kinichiro Inoguchi | |
6 | REM # Test RSA certificate generation of openssl | 5 | :: |
6 | :: Permission to use, copy, modify, and distribute this software for any | ||
7 | :: purpose with or without fee is hereby granted, provided that the above | ||
8 | :: copyright notice and this permission notice appear in all copies. | ||
9 | :: | ||
10 | :: THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
11 | :: WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
12 | :: MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
13 | :: ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
14 | :: WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
15 | :: ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
16 | :: OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
17 | |||
18 | :: Test RSA certificate generation of openssl | ||
7 | 19 | ||
8 | set openssl_bin=%1 | 20 | set openssl_bin=%1 |
9 | set openssl_bin=%openssl_bin:/=\% | 21 | set openssl_bin=%openssl_bin:/=\% |
diff --git a/tests/testrsa.sh b/tests/testrsa.sh index e644999..afbc610 100755 --- a/tests/testrsa.sh +++ b/tests/testrsa.sh | |||
@@ -1,6 +1,18 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # $OpenBSD: testrsa.sh,v 1.1 2014/08/26 17:50:07 jsing Exp $ | 2 | # |
3 | 3 | # Copyright (c) 2015 Brent Cook | |
4 | # | ||
5 | # Permission to use, copy, modify, and distribute this software for any | ||
6 | # purpose with or without fee is hereby granted, provided that the above | ||
7 | # copyright notice and this permission notice appear in all copies. | ||
8 | # | ||
9 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
4 | 16 | ||
5 | #Test RSA certificate generation of openssl | 17 | #Test RSA certificate generation of openssl |
6 | 18 | ||
diff --git a/tests/testssl.bat b/tests/testssl.bat index c4e6286..35a789a 100644 --- a/tests/testssl.bat +++ b/tests/testssl.bat | |||
@@ -1,6 +1,19 @@ | |||
1 | @echo on | 1 | @echo on |
2 | setlocal enabledelayedexpansion | 2 | setlocal enabledelayedexpansion |
3 | REM testssl.bat | 3 | |
4 | :: Copyright (c) 2016 Kinichiro Inoguchi | ||
5 | :: | ||
6 | :: Permission to use, copy, modify, and distribute this software for any | ||
7 | :: purpose with or without fee is hereby granted, provided that the above | ||
8 | :: copyright notice and this permission notice appear in all copies. | ||
9 | :: | ||
10 | :: THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
11 | :: WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
12 | :: MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
13 | :: ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
14 | :: WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
15 | :: ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
16 | :: OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
4 | 17 | ||
5 | set key=%1 | 18 | set key=%1 |
6 | set cert=%2 | 19 | set cert=%2 |
diff --git a/tests/tlstest.bat b/tests/tlstest.bat index 5f5f6a6..204201b 100644 --- a/tests/tlstest.bat +++ b/tests/tlstest.bat | |||
@@ -1,6 +1,19 @@ | |||
1 | @echo off | 1 | @echo off |
2 | setlocal enabledelayedexpansion | 2 | setlocal enabledelayedexpansion |
3 | REM tlstest.bat | 3 | |
4 | :: Copyright (c) 2017 Brent Cook | ||
5 | :: | ||
6 | :: Permission to use, copy, modify, and distribute this software for any | ||
7 | :: purpose with or without fee is hereby granted, provided that the above | ||
8 | :: copyright notice and this permission notice appear in all copies. | ||
9 | :: | ||
10 | :: THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
11 | :: WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
12 | :: MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
13 | :: ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
14 | :: WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
15 | :: ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
16 | :: OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
4 | 17 | ||
5 | set tlstest_bin=%1 | 18 | set tlstest_bin=%1 |
6 | set tlstest_bin=%tlstest_bin:/=\% | 19 | set tlstest_bin=%tlstest_bin:/=\% |
diff --git a/tests/tlstest.sh b/tests/tlstest.sh index 4024007..4a5aff6 100755 --- a/tests/tlstest.sh +++ b/tests/tlstest.sh | |||
@@ -1,4 +1,19 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | ||
3 | # Copyright (c) 2015 Brent Cook | ||
4 | # | ||
5 | # Permission to use, copy, modify, and distribute this software for any | ||
6 | # purpose with or without fee is hereby granted, provided that the above | ||
7 | # copyright notice and this permission notice appear in all copies. | ||
8 | # | ||
9 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | |||
2 | set -e | 17 | set -e |
3 | 18 | ||
4 | tlstest_bin=./tlstest | 19 | tlstest_bin=./tlstest |