Philip Tricca | e72f257 | 2016-12-02 11:26:59 -0800 | [diff] [blame^] | 1 | #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 | */ |
| 11 | TSS2_TCTI_CONTEXT* tcti_device_init (char const *device_name); |
| 12 | TSS2_TCTI_CONTEXT* tcti_socket_init (char const *address, |
| 13 | uint16_t port); |
| 14 | TSS2_TCTI_CONTEXT* tcti_init_from_opts (test_opts_t *options); |
| 15 | TSS2_SYS_CONTEXT* sapi_init_from_opts (test_opts_t *options); |
| 16 | void sapi_teardown_full (TSS2_SYS_CONTEXT *sapi_context); |
| 17 | |
| 18 | #endif /* CONTEXT_UTIL_H */ |