2 * Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
4 * Licensed under the Apache License 2.0 (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
10 #include <openssl/store.h>
11 #include <openssl/ui.h>
14 typedef enum OPTION_choice {
21 static const char *infile = NULL;
23 static int test_store_open(void)
26 OSSL_STORE_CTX *sctx = NULL;
27 UI_METHOD *ui_method = NULL;
29 ret = TEST_ptr(ui_method= UI_create_method("DummyUI"))
30 && TEST_ptr(sctx = OSSL_STORE_open_with_libctx(infile, NULL, NULL,
33 UI_destroy_method(ui_method);
34 OSSL_STORE_close(sctx);
38 const OPTIONS *test_get_options(void)
40 static const OPTIONS test_options[] = {
41 OPT_TEST_OPTIONS_DEFAULT_USAGE,
42 { "in", OPT_INFILE, '<', },
52 while ((o = opt_next()) != OPT_EOF) {
65 ADD_TEST(test_store_open);