diff options
Diffstat (limited to 'src/include/tcs_context.h')
-rw-r--r-- | src/include/tcs_context.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/include/tcs_context.h b/src/include/tcs_context.h new file mode 100644 index 0000000..c72944f --- /dev/null +++ b/src/include/tcs_context.h @@ -0,0 +1,36 @@ + +/* + * Licensed Materials - Property of IBM + * + * trousers - An open source TCG Software Stack + * + * (C) Copyright International Business Machines Corp. 2004 + * + */ + +#ifndef _TCS_CONTEXT_H_ +#define _TCS_CONTEXT_H_ + +#include "threads.h" + +struct keys_loaded +{ + TCS_KEY_HANDLE key_handle; + struct keys_loaded *next; +}; + +#define TSS_CONTEXT_FLAG_TRANSPORT_EXCLUSIVE 0x1 +#define TSS_CONTEXT_FLAG_TRANSPORT_ENCRYPTED 0x2 +#define TSS_CONTEXT_FLAG_TRANSPORT_ENABLED 0x4 + +struct tcs_context { + TSS_FLAG flags; + TPM_TRANSHANDLE transHandle; + TCS_CONTEXT_HANDLE handle; + COND_VAR cond; /* used in waiting for an auth ctx to become available */ + struct keys_loaded *keys; + struct tcs_context *next; +}; + +#endif + |