/* * Copyright 2024 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/license.html */ #include #include #include "testutil.h" #include "helpers/ssltestlib.h" #ifndef OPENSSL_NO_ECH static int verbose = 0; typedef enum OPTION_choice { OPT_ERR = -1, OPT_EOF = 0, OPT_VERBOSE, OPT_TEST_ENUM } OPTION_CHOICE; const OPTIONS *test_get_options(void) { static const OPTIONS test_options[] = { OPT_TEST_OPTIONS_DEFAULT_USAGE, { "v", OPT_VERBOSE, '-', "Enable verbose mode" }, { OPT_HELP_STR, 1, '-', "Run ECH tests\n" }, { NULL } }; return test_options; } #endif int setup_tests(void) { #ifndef OPENSSL_NO_ECH OPTION_CHOICE o; while ((o = opt_next()) != OPT_EOF) { switch (o) { case OPT_VERBOSE: verbose = 1; break; case OPT_TEST_CASES: break; default: return 0; } } /* TODO(ECH): we'll move test code over later */ return 1; #endif return 1; } void cleanup_tests(void) { #ifndef OPENSSL_NO_ECH ; #endif }