On Fri, Aug 16, 2019 at 2:04 PM Rahul Hardikar <rahulhardikar(a)gmail.com>
I copied the code on my server but it seems that mine supports 1.0.2n
my manager said that they will not upgrade to newer versions until next
It's unclear to me exactly what code you're referring to here. For example,
your compiler logs below mention "tpm2_common.c", but as far as I can tell,
no such file has ever existed within the tpm2-tools Git repo.
*tpm2_common.c:894:5: warning: implicit declaration of function
*tpm2_common.c:1194:5: warning: implicit declaration of function
These two warnings are about static functions that are declared within
lib/tpm2_identity_util.c. Are you maybe trying to just concatenate
tpm2-tools's source files into a single compilation unit?
*tpm2_common.c:1441:5: error: incompatible type for argument 1 of
* return EVP_DigestUpdate(ctx->md_ctx, data, len);*
The string "md_ctx" doesn't appear anywhere in the tpm2-tools Git repo
either, as far as I can tell.
Is this a line of code that you wrote? If so, it should probably be
"&ctx->md_ctx" instead of just "ctx->md_ctx".
1.0.2 does not seem to have it or arguments are different!
I don't think EVP_DigestUpdate or EVP_DigestFinal_ex have changed in a long
time. For example, here's the OpenBSD man page from 2004, which shows them
taking an "EVP_MD_CTX*" parameter:
I think your problem is unrelated to OpenSSL version.