Change fields named xor to xor_.
Compiling a C++ file with libtpm2 results in an error because xor is a
keyword in C++. This patches the source code to change instances of
fields with name xor to xor_.
TEST=$ sudo emerge tpm2
builds libtpm2.a
BUG=none
CQ-DEPEND=292439
Change-Id: I59ac3dd78d27edb0b7f4e86d7e2dc93f7f58db1c
Reviewed-on: https://chromium-review.googlesource.com/292472
Reviewed-by: Utkarsh Sanghi <[email protected]>
Commit-Queue: Jocelyn Bohr <[email protected]>
Tested-by: Jocelyn Bohr <[email protected]>
diff --git a/CryptUtil.c b/CryptUtil.c
index 1f094c1..6a675ec 100644
--- a/CryptUtil.c
+++ b/CryptUtil.c
@@ -709,7 +709,7 @@
if(scheme->scheme == TPM_ALG_NULL)
hashAlg = publicArea->nameAlg;
else if(scheme->scheme == TPM_ALG_XOR)
- hashAlg = scheme->details.xor.hashAlg;
+ hashAlg = scheme->details.xor_.hashAlg;
else
hashAlg = scheme->details.hmac.hashAlg;
hashBlockSize = CryptGetHashBlockSize(hashAlg);