Closed dgarske closed 10 months ago
No I'm saying to give the user the not compiled in error if their wolfSSL is compiled wrong, like this:
int main(int argc, char *argv[])
{
int rc = NOT_COMPILED_IN;
#if !defined(WOLFTPM2_NO_WRAPPER) && !defined(WOLFTPM2_NO_WOLFCRYPT) && defined(WOLFSSL_PUBLIC_MP)
rc = TPM2_Keyimport_Example(NULL, argc, argv);
#else
printf("KeyImport code not compiled in\n");
(void)argc;
(void)argv;
#endif
return rc;
}
but add the WOLFSSL_PUBLIC_MP
to the macros
Yes and that change has been upstreamed into wolfSSL master with --enable-wolftpm. The
WOLFSSL_PUBLIC_MP
is required to expose some of the math functions for the ECC encrypt. Am I missing some documentation?