]>
git.proxmox.com Git - libtpms.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Stefan Berger [Fri, 22 Sep 2017 15:27:35 +0000 (11:27 -0400)]
build: integrate Travis CI automation with Coverty Scan
Integrate the Travis CI automated build & test with Coverity Scan.
Automatically submit a Coverity Scan if we push to the coverity_scan
branch.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Mon, 31 Jul 2017 16:30:42 +0000 (12:30 -0400)]
ci: add .travis.yml
Add Travis build script.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Fri, 28 Jul 2017 21:04:10 +0000 (17:04 -0400)]
tpm12: use latest tpm_crypto.c for OpenSSL 1.1 support
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Fri, 28 Jul 2017 21:00:21 +0000 (17:00 -0400)]
tpm12: use latest tpm_pcr.c adding more debugging output
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Fri, 28 Jul 2017 20:57:58 +0000 (16:57 -0400)]
tpm12: use latest tpm_daa.c fixing return code assignments and a bug
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Fri, 28 Jul 2017 20:56:29 +0000 (16:56 -0400)]
tpm12: use latest tpm_nvram.c that display additional error message
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Fri, 28 Jul 2017 20:54:15 +0000 (16:54 -0400)]
tpm12: use latest tpm_svnrevision.c that increase major and minor numbers
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Fri, 28 Jul 2017 20:52:55 +0000 (16:52 -0400)]
tpm12: use latest tpm_transport.c with a return code assigned
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Thu, 6 Apr 2017 18:17:30 +0000 (14:17 -0400)]
Ignore a few more files and delete depcomp
Ignore *.log and *.trs files from the test suite.
Ignore compile and the 'missing' file.
Remove the depcomp file.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Thu, 30 Mar 2017 12:23:48 +0000 (08:23 -0400)]
Fix logging of prefix for TPM_PrintAll
Stefan Berger [Fri, 3 Feb 2017 15:58:22 +0000 (10:58 -0500)]
Convert another vdprintf to dprintf
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Wed, 1 Feb 2017 01:10:51 +0000 (20:10 -0500)]
Use format '%s' for call to dprintf
Fix the dprintf call to use a format parameter that otherwise causes
errors with gcc on certain platforms.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Sun, 12 Feb 2017 02:06:19 +0000 (21:06 -0500)]
Add missing include for stdarg.h
Fix compilation problems like the following:
/usr/local/lib/libtpms.so: undefined reference to `va_start'
/usr/local/lib/libtpms.so: undefined reference to `va_end'
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Tue, 24 Jan 2017 16:20:25 +0000 (11:20 -0500)]
Move TPMLIB_SetDebug* symbols under 0.6.0 release
Move the TPMLIB_SetDebug* symbols under the 0.6.0 release.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Tue, 24 Jan 2017 00:46:47 +0000 (19:46 -0500)]
Replace vdprintf with dprintf where possible
vdprintf with a NULL parameter on the 3rd position crashes
on Linux. Replace it with dprintf.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Mon, 23 Jan 2017 19:57:22 +0000 (14:57 -0500)]
Implement API calls for enabling debug output
Add API calls TPMLIB_SetDebugFD(), TPMLIB_SetDebugLevel(),
TPMLIB_SetDebugPrefix().
Convert the internal printing of debugging strings to
correspond to the log level. Print the prefix in front
of every line.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Wed, 21 Dec 2016 16:07:02 +0000 (11:07 -0500)]
Replace the CLA with the DCO, simply requiring a Signed-off-by:
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Sun, 26 Jun 2016 17:18:19 +0000 (13:18 -0400)]
Allow choice of crypto subsystem via rpmbuild parameter
Use 'rpmbuild -ba --define "crypto_subsystem openssl" dist/libtpms.spec'
to build libtpms with openssl.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Mon, 1 Feb 2016 16:57:39 +0000 (11:57 -0500)]
Adding CLAs for corporate and individual contributors.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Wed, 13 Jan 2016 22:07:52 +0000 (17:07 -0500)]
build: run bootstrap.sh as part of Debian build
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Wed, 13 Jan 2016 22:05:02 +0000 (17:05 -0500)]
debian: add copyright notice
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Wed, 13 Jan 2016 22:02:07 +0000 (17:02 -0500)]
build: Some improvement to the Debian packaging
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Tue, 12 Jan 2016 21:27:20 +0000 (16:27 -0500)]
build: Enable building of Debian package
Add debian build files to enable building of Debian package using for example
debuild -b or dpkg-buildpackage -us -uc
Extend the .gitignore.
The debhelper checks show warnings and errors that will need to be addressed
some other time. For some I don't know how to solve them at the moment.
Signed-off-by: Stefan Berger <stefanb@linux.watson.ibm.com>
Stefan Berger [Tue, 12 Jan 2016 20:40:22 +0000 (15:40 -0500)]
build: disable -Wstack-protector
Some version of gcc fail with -Wstack-protector due to some functions
not being protectable. Disable this option.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Tue, 8 Dec 2015 14:07:35 +0000 (09:07 -0500)]
Introduce internal interface to reach TPM functionality
Introduce an internal interface that allows us to reach TPM functionality
from the libary's API layer. This prepares the code for the addition
of a new API function that lets us choose which TPM to use, TPM 1.2 or
TPM2. Currently only TPM 1.2 functionality is available.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Tue, 8 Dec 2015 00:36:44 +0000 (19:36 -0500)]
Add include file containering library version
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Tue, 8 Dec 2015 00:14:30 +0000 (19:14 -0500)]
Move TPM1.2 code to src/tpm12 directory
Move all TPM1.2 code to src/tpm12 directory. Adapt the Makefile.am
to point to tpm12 directory for the TPM1.2 sources.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Tue, 8 Dec 2015 00:14:30 +0000 (19:14 -0500)]
Version bump to 0.6.0
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Mon, 26 Oct 2015 15:19:51 +0000 (11:19 -0400)]
build: Simplify the check for -fstack-protector-strong
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Mon, 26 Oct 2015 13:50:46 +0000 (09:50 -0400)]
build: Check for -fstack-protector-strong before using it
Import AX_CHECK_COMPILE_FLAG to help check for compiler option
-fstack-protector-strong.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Thu, 16 Jul 2015 16:39:19 +0000 (12:39 -0400)]
rpmbuild: Fix dependencies for OpenSSL
Fix the Requires and BuildRequires dependencies for OpenSSL build.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Thu, 16 Jul 2015 16:33:34 +0000 (12:33 -0400)]
rpmbuild: Add virtual provide libtpms-<crypto subsystem>
Add a virtual provide libtpms-freebl or libtpms-openssl to
indicate which crypto library libtpms is using.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Sat, 2 May 2015 01:15:46 +0000 (21:15 -0400)]
build: Disable volatile storage debug for debug build
Disable the volatile storage debug for a debug build since this
causes the volatile state file to be written and this changes
the behavior upon a restart of the TPM. This may cause the TPM to
not work correctly then.
Print out some more build parameters.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Fri, 1 May 2015 16:06:07 +0000 (12:06 -0400)]
build: do not set -D_FORTIFY_SOURCE=2 when -O0 is set or -O is missing
-D_FORTIFY_SOURCE needs optimization, so we do not set it if -O0 is
set or -O is missing.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Wed, 29 Apr 2015 14:29:01 +0000 (10:29 -0400)]
Add LT_INIT to configure.ac
Add missing LT_INIT to configure.ac.
Stefan Berger [Tue, 3 Feb 2015 19:06:46 +0000 (14:06 -0500)]
Add relro and now to hardening cflags, if available
Check ld for availability of relro and now flags and add them to the
hardening cflags if available.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Mon, 2 Feb 2015 11:58:59 +0000 (06:58 -0500)]
Use hardening CFLAGS
Add hardening CFLAGS -D_FORTIFY_SOURCE=2 and stack protector.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
root [Thu, 18 Dec 2014 15:52:06 +0000 (10:52 -0500)]
Remove 'missing' file since it will be added by bootstrap.sh
Stefan Berger [Thu, 18 Dec 2014 15:44:08 +0000 (10:44 -0500)]
Check for missing freebl headers and freebl lib
Add a check for missing freebl header blapi.h (missing in Ubuntu)
and missing freebl static library that provides AES_CreateContext.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Tue, 16 Dec 2014 03:10:07 +0000 (22:10 -0500)]
Make compileable on Ubuntu and docu for Ubuntu
Ubuntu has different package names that need to be documented separtely.
Ubuntu requires exec_prefix in the libtpms.pc file for pkg-config to work.
Rework some of the configure.ac parts.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Thu, 16 Oct 2014 17:12:59 +0000 (13:12 -0400)]
Also request nss-softok-freebl-static on Fedora.
Stefan Berger [Thu, 16 Oct 2014 17:12:01 +0000 (13:12 -0400)]
Do not package libtpms.la.
Stefan Berger [Wed, 23 Jul 2014 18:37:15 +0000 (14:37 -0400)]
adding some more files to be ignored
Stefan Berger [Mon, 14 Jul 2014 21:22:14 +0000 (17:22 -0400)]
Some fixes to the spm spec
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Mon, 14 Jul 2014 21:22:14 +0000 (17:22 -0400)]
Fix public header files for c++
Fix the public header files for c++ usage.
Stefan Berger [Thu, 3 Jul 2014 21:38:34 +0000 (17:38 -0400)]
Catch missing nss-devel and nspr-devel dependencies
Catch nspr-config and nss-config dependencies in te configure script.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Thu, 3 Jul 2014 01:56:58 +0000 (21:56 -0400)]
Fix a memory leak in the TPMLibrary interface
Fix a memory leak in TPMLIB_Terminate.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Stefan Berger [Wed, 2 Jul 2014 11:31:51 +0000 (07:31 -0400)]
Adapt spec so it can also be built on RHEL6.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Mon, 30 Jun 2014 19:04:15 +0000 (15:04 -0400)]
Create version 0.5.2
Set the version of the library to 0.5.2.
Synchronize the rpm spec with the one used in Fedora and set the release
version to 1.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Mon, 30 Jun 2014 19:04:15 +0000 (15:04 -0400)]
Remove tpm_library.h since it is generated from tpm_library.h.in
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Mon, 30 Jun 2014 19:04:15 +0000 (15:04 -0400)]
Fix support for ARM64
Fix support for ARM64 by testing for whether __aarch64__ is defined.
Also see http://sourceforge.net/p/predef/wiki/Architectures for the
gcc preprocessor defines.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Mon, 30 Jun 2014 19:04:15 +0000 (15:04 -0400)]
Clear NVRAM area before deleting it
Clear the NVRAM area before deleting it.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Mon, 30 Jun 2014 19:04:15 +0000 (15:04 -0400)]
Update the maintainers in the README.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Mon, 30 Jun 2014 19:04:15 +0000 (15:04 -0400)]
Remove config.h.in
Remove config.h.in and create it in bootstrap.h using autoheader.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Fri, 17 Jan 2014 20:57:55 +0000 (15:57 -0500)]
Use boostrap.sh to build rpm on Fedora machines
Use bootstrap.sh before running configure when building an rpm.
Reorder the tools in bootstrap.sh to avoid error messages.
Rename configure.in to configure.ac to quite down more recent autotools.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Joel Schopp <jschopp@linux.vnet.ibm.com>
Stefan Berger [Fri, 17 Jan 2014 20:57:54 +0000 (15:57 -0500)]
Sync libtpms.spec.in with Fedora repository
Sync the libtpms.spec.in with the content in the Fedora repository.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Joel Schopp <jschopp@linux.vnet.ibm.com>
Corey Bryant [Wed, 15 Jan 2014 15:33:58 +0000 (10:33 -0500)]
Maintainer change
Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Acked-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Acked-by: Joel Schopp <jschopp@linux.vnet.ibm.com>
Corey Bryant [Mon, 13 Jan 2014 22:29:28 +0000 (17:29 -0500)]
Change permissions of bootstrap.sh to 755
Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Acked-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Corey Bryant [Mon, 13 Jan 2014 22:26:59 +0000 (17:26 -0500)]
Ignore patch files in gitignore
Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Acked-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Corey Bryant [Mon, 13 Jan 2014 22:06:41 +0000 (17:06 -0500)]
Remove files from index for gitignore
Remove files from the git index so that gitignore
can actually ignore them.
Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Acked-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Stefan Berger [Thu, 9 Jan 2014 18:09:20 +0000 (13:09 -0500)]
Build dll on cygwin and build OpenSSL build cleanup
Fix the build process to build a dll on cygwin and remove
freebl specific shell calls when building for OpenSSL.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Acked-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Stefan Berger [Thu, 9 Jan 2014 22:41:36 +0000 (17:41 -0500)]
Add .gitignore
Add .gitignore file to ignore certain files in the repository.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Acked-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Stefan Berger [Thu, 9 Jan 2014 22:41:35 +0000 (17:41 -0500)]
Remove unnecessary build files from repository
Remove unnecessary files in the repository and add boostrap.sh to create the
configure file and other files we are removing here. Users have to run
bootstrap.sh to have those files created in their build environment.
Update the INSTALL instructions.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Acked-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Stefan Berger [Wed, 8 Jan 2014 02:32:06 +0000 (21:32 -0500)]
Fix compile error on cygwin
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Acked-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Stefan Berger [Wed, 8 Jan 2014 02:32:05 +0000 (21:32 -0500)]
Make libtpms compileable with OpenSSL
Implement missing base64 decoder support when using OpenSSL library.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Acked-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Stefan Berger [Wed, 8 Jan 2014 02:32:04 +0000 (21:32 -0500)]
Add a test case for the TPMLIB_DecodeBlob API
Add a test case testing the TPMLIB_DecodeBlob function.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Acked-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Stefan Berger [Tue, 7 Jan 2014 18:43:47 +0000 (13:43 -0500)]
Address coverity warnings
Fixed typing errors.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Acked-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Stefan Berger [Tue, 7 Jan 2014 18:43:46 +0000 (13:43 -0500)]
Address coverity warnings
Handle function return codes.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Acked-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Stefan Berger [Fri, 20 Dec 2013 16:20:20 +0000 (11:20 -0500)]
Rename function TPM_SBuffer_Set to TPM_Sbuffer_Set
Minor typo in function name
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Acked-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Stefan Berger [Fri, 20 Dec 2013 16:20:19 +0000 (11:20 -0500)]
Fix spacing in tpm_audit.c
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Acked-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Stefan Berger [Fri, 20 Dec 2013 16:20:18 +0000 (11:20 -0500)]
A fix related to the physical presence flag
The physical presence flag should not be used if CMD enable is false
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Acked-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Stefan Berger [Fri, 20 Dec 2013 16:20:17 +0000 (11:20 -0500)]
Fix a typo in tpm_crypto.c
Trivial typo in comment
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Acked-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Corey Bryant [Thu, 19 Dec 2013 20:43:16 +0000 (15:43 -0500)]
Change the mailing list
Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Acked-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Corey Bryant [Wed, 30 Oct 2013 20:16:39 +0000 (15:16 -0500)]
Update build directions in INSTALL file
Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Acked-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Corey Bryant [Wed, 30 Oct 2013 20:16:39 +0000 (15:16 -0500)]
Add mailing list and maintainers to README
Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Acked-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Corey Bryant [Wed, 30 Oct 2013 19:54:28 +0000 (14:54 -0500)]
Add CREDITS file
Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Acked-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Corey Bryant [Fri, 27 Sep 2013 15:42:51 +0000 (10:42 -0500)]
Initial import of project
This is the initial import of the libtpms library. The libtpms library
provides software emulation of a Trusted Platform Module (TPM). It is
intended to be used by applications when a hardware TPM is not adequate.
For example, a hypervisor can use libtpms to emulate an independent TPM
for each of it's virtual machine guests. The library provides a high-
level API for developers to integrate the emulated TPM support into
their application.
The code was originally written by Kenneth Goldman <kgoldman@us.ibm.com>
and Stefan Berger <stefanb@us.ibm.com>.
The code is licensed under the Modified BSD License.
Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com>