blob: 7f52ee4105893d9c0b796ea4618aa6738c9757de [file] [log] [blame]
Philip Triccae72f2572016-12-02 11:26:59 -08001#ifndef CONTEXT_UTIL_H
2#define CONTEXT_UTIL_H
3
4#include "sapi/tpm20.h"
5#include "test-options.h"
6
7/**
8 * functions to setup TCTIs and SAPI contexts using data from the common
9 * options
10 */
11TSS2_TCTI_CONTEXT* tcti_device_init (char const *device_name);
12TSS2_TCTI_CONTEXT* tcti_socket_init (char const *address,
13 uint16_t port);
14TSS2_TCTI_CONTEXT* tcti_init_from_opts (test_opts_t *options);
15TSS2_SYS_CONTEXT* sapi_init_from_opts (test_opts_t *options);
16void sapi_teardown_full (TSS2_SYS_CONTEXT *sapi_context);
17
18#endif /* CONTEXT_UTIL_H */