diff options
author | Philip Tricca <philip.b.tricca@intel.com> | 2018-03-15 12:38:37 -0700 |
---|---|---|
committer | Andreas Fuchs <andreas.fuchs@sit.fraunhofer.de> | 2018-03-16 12:31:44 +0100 |
commit | 910f17c96d91159ea29e660a5450c3cfad591d62 (patch) | |
tree | 36b66d97a1ccef23ee7c0cf0c69f7d172e1464ae /include | |
parent | 88ced72935b96c5d4bb3c6850274b20b25bc3c0f (diff) | |
download | tpm2-tss-910f17c96d91159ea29e660a5450c3cfad591d62.tar.gz |
headers: Remove tpm20.h header.
This "convenience" header isn't part of the spec. It also pulled in a
number of headers that had nothing to do with the TPM or the spec:
stddef.h, stdint.h, stdlib.h, string.h etc. Now that we've cleaned up
the headers users consuming the following libraries only need to include
the related header:
- libtss2-mu, include tss2_mu.h
- libtss2-sys, include tss2_sys.h
- libtss2-esys, include tss2_esys.h
This obsoletes the tpm20.h file completely. All other changes in this
commit are fixing up our source code to include the right headers and
cleaning up other places where we were leaning on tpm20.h header to
include system headers for us (aka undoing the sloppy structure that
this "convenience" header encouraged / required).
There are also a number of source files that had no newline at the end
of the file. The script that I used to fix up the tpm20.h include in
these files added this, as most editors would do as well. I'm leaving
these in place baring objections during code review.
Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/tss2/tpm20.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/include/tss2/tpm20.h b/include/tss2/tpm20.h deleted file mode 100644 index ed4724fa..00000000 --- a/include/tss2/tpm20.h +++ /dev/null @@ -1,43 +0,0 @@ -/***********************************************************************; - * Copyright (c) 2015-2018, Intel Corporation - * - * Copyright 2015, Andreas Fuchs @ Fraunhofer SIT - * - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF - * THE POSSIBILITY OF SUCH DAMAGE. - ***********************************************************************/ - -#ifndef TPM20_H -#define TPM20_H -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> -#include <string.h> - -#include "tss2_common.h" -#include "tss2_tpm2_types.h" -#include "tss2_tcti.h" -#include "tss2_sys.h" -#include "tss2_mu.h" -#endif |