mirror of https://github.com/wolfSSL/wolfTPM.git
Fix macros to match. Resolves `error: unused variable 'pubKeySz'` and `examples/pcr/quote.c:336:9: error: use of undeclared identifier 'pubKey'`.
parent
388e32912e
commit
034306a49c
|
@ -60,7 +60,8 @@ int TPM2_PCR_Quote_Test(void* userCtx, int argc, char *argv[])
|
||||||
const char *outputFile = "quote.blob";
|
const char *outputFile = "quote.blob";
|
||||||
BYTE *data = NULL;
|
BYTE *data = NULL;
|
||||||
int dataSz;
|
int dataSz;
|
||||||
#ifdef HAVE_ECC
|
#if defined(HAVE_ECC) && !defined(WOLFTPM2_NO_HEAP) && \
|
||||||
|
defined(WOLFSSL_PUBLIC_MP)
|
||||||
byte *pubKey = NULL;
|
byte *pubKey = NULL;
|
||||||
word32 pubKeySz;
|
word32 pubKeySz;
|
||||||
#endif
|
#endif
|
||||||
|
@ -331,7 +332,8 @@ exit:
|
||||||
|
|
||||||
wolfTPM2_Cleanup(&dev);
|
wolfTPM2_Cleanup(&dev);
|
||||||
|
|
||||||
#ifdef HAVE_ECC
|
#if defined(HAVE_ECC) && !defined(WOLFTPM2_NO_HEAP) && \
|
||||||
|
defined(WOLFSSL_PUBLIC_MP)
|
||||||
if (pubKey != NULL) {
|
if (pubKey != NULL) {
|
||||||
XFREE(pubKey, NULL, DYNAMIC_TYPE_PUBLIC_KEY);
|
XFREE(pubKey, NULL, DYNAMIC_TYPE_PUBLIC_KEY);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue