diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2012-11-25 14:36:20 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2012-11-25 14:36:20 +0000 |
commit | c3649a2def02c41d837ae1f79dda729ccb91e677 (patch) | |
tree | bea46dff212fdef977fe9094a70a939e8cc21885 /src/include/tcs_context.h | |
download | trousers-upstream/0.3.9.tar.gz |
Imported Upstream version 0.3.9upstream/0.3.9upstream
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 + |