aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPhilip Tricca <philip.b.tricca@intel.com>2018-02-23 03:44:08 +0000
committerPhilip Tricca <philip.b.tricca@intel.com>2018-02-25 21:41:00 -0800
commit6e8d697f9da54f24baed53f886d6ca0604e9b98f (patch)
tree91ec4b9f57420b0d28d0f6ba4711aec31b190518 /include
parent1c753d677cbb612ebee4a8ce4d2b0c14db1f7d6d (diff)
downloadtpm2-tss-6e8d697f9da54f24baed53f886d6ca0604e9b98f.tar.gz
tss2_tcti.h: Return BAD_CONTEXT not BAD_REFERENCE if context is NULL.
This is what's in the spec. The difference is academic. Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/sapi/tss2_tcti.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/sapi/tss2_tcti.h b/include/sapi/tss2_tcti.h
index aeac9bcc..90524cbb 100644
--- a/include/sapi/tss2_tcti.h
+++ b/include/sapi/tss2_tcti.h
@@ -76,14 +76,14 @@ typedef void TSS2_TCTI_POLL_HANDLE;
/* Macros to simplify invocation of functions from the common TCTI structure */
#define Tss2_Tcti_Transmit(tctiContext, size, command) \
- ((tctiContext == NULL) ? TSS2_TCTI_RC_BAD_REFERENCE: \
+ ((tctiContext == NULL) ? TSS2_TCTI_RC_BAD_CONTEXT: \
(TSS2_TCTI_VERSION(tctiContext) < 1) ? \
TSS2_TCTI_RC_ABI_MISMATCH: \
(TSS2_TCTI_TRANSMIT(tctiContext) == NULL) ? \
TSS2_TCTI_RC_NOT_IMPLEMENTED: \
TSS2_TCTI_TRANSMIT(tctiContext)(tctiContext, size, command))
#define Tss2_Tcti_Receive(tctiContext, size, response, timeout) \
- ((tctiContext == NULL) ? TSS2_TCTI_RC_BAD_REFERENCE: \
+ ((tctiContext == NULL) ? TSS2_TCTI_RC_BAD_CONTEXT: \
(TSS2_TCTI_VERSION(tctiContext) < 1) ? \
TSS2_TCTI_RC_ABI_MISMATCH: \
(TSS2_TCTI_RECEIVE(tctiContext) == NULL) ? \
@@ -99,21 +99,21 @@ typedef void TSS2_TCTI_POLL_HANDLE;
} \
} while (0)
#define Tss2_Tcti_Cancel(tctiContext) \
- ((tctiContext == NULL) ? TSS2_TCTI_RC_BAD_REFERENCE: \
+ ((tctiContext == NULL) ? TSS2_TCTI_RC_BAD_CONTEXT: \
(TSS2_TCTI_VERSION(tctiContext) < 1) ? \
TSS2_TCTI_RC_ABI_MISMATCH: \
(TSS2_TCTI_CANCEL(tctiContext) == NULL) ? \
TSS2_TCTI_RC_NOT_IMPLEMENTED: \
TSS2_TCTI_CANCEL(tctiContext)(tctiContext))
#define Tss2_Tcti_GetPollHandles(tctiContext, handles, num_handles) \
- ((tctiContext == NULL) ? TSS2_TCTI_RC_BAD_REFERENCE: \
+ ((tctiContext == NULL) ? TSS2_TCTI_RC_BAD_CONTEXT: \
(TSS2_TCTI_VERSION(tctiContext) < 1) ? \
TSS2_TCTI_RC_ABI_MISMATCH: \
(TSS2_TCTI_GET_POLL_HANDLES(tctiContext) == NULL) ? \
TSS2_TCTI_RC_NOT_IMPLEMENTED: \
TSS2_TCTI_GET_POLL_HANDLES(tctiContext)(tctiContext, handles, num_handles))
#define Tss2_Tcti_SetLocality(tctiContext, locality) \
- ((tctiContext == NULL) ? TSS2_TCTI_RC_BAD_REFERENCE: \
+ ((tctiContext == NULL) ? TSS2_TCTI_RC_BAD_CONTEXT: \
(TSS2_TCTI_VERSION(tctiContext) < 1) ? \
TSS2_TCTI_RC_ABI_MISMATCH: \
(TSS2_TCTI_SET_LOCALITY(tctiContext) == NULL) ? \