summaryrefslogtreecommitdiff
path: root/package/tpm2-totp
AgeCommit message (Collapse)Author
2019-05-27package/tpm2-totp: fix error due to variable used uninitializedCarlos Santos
Some inline declarations of strtok_r (specifically in Sourcery CodeBench Lite 2016.11-19) contain code where an '__s' local variable can be used uninitialized. When GCC expands that declaration in tpm2-totp, __s becomes an alias to a variable which fact is not initialized, but this is not relevant since the execution path leading to the uninitialized use is never followed. Anyway, apply a patch already submitted upstream to fix the compilation error. Upstream bug report: https://github.com/tpm2-software/tpm2-totp/issues/32 Fixes: http://autobuild.buildroot.net/results/5693a35e4d6bc76a1f46fe0e217abc49f7188aad/ Signed-off-by: Carlos Santos <unixmania@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-04-30package/tpm2-totp: fix menu promptCarlos Santos
It must be "tpm2-totp", not "tpm2-tools" (probably a copy/paste issue). Signed-off-by: Carlos Santos <unixmania@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-04-11package/tpm2-totp: blacklist Codesourcery ARM toolchainPeter Korsgaard
Fixes: http://autobuild.buildroot.net/results/6c9bb17920749409e5a0c3388ccda411c6c7cfb4/ tpm2-totp uses _DEFAULT_SOURCE to make the htobe64() macro available, support for which was only added in glibc 2.20: https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html#index-_005fDEFAULT_005fSOURCE >From glibc 2.20 NEWS: * The _BSD_SOURCE and _SVID_SOURCE feature test macros are no longer supported; they now act the same as _DEFAULT_SOURCE (but generate a warning). Except for cases where _BSD_SOURCE enabled BSD interfaces that conflicted with POSIX (support for which was removed in 2.19), the interfaces those macros enabled remain available when compiling with _GNU_SOURCE defined, with _DEFAULT_SOURCE defined, or without any feature test macros defined. This could be worked around by defining _BSD_SOURCE for this old toolchain (cannot be done unconditionally as it generated warnings for modern glibc versions), but given that platforms using this old toolchain are unlikely to have a TPM 2.0 and use it for TOTP, simply blacklist it instead. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-04-08package/tpm2-totp: new packagePeter Korsgaard
Library and utility for TOTP based attestation using the tpm2-tss software stack. Add an upstream patch to fix format string mismatch errors when building for 32bit architectures. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>