Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8e4c9f5

Browse files
committedFeb 26, 2024·
Updated the tpm2-tss version for bindings.
- Generate the bindings from version 3.2.2 of the tpm2-tss library. - Add comment in the generated bindings from what version it was generated. - Starts using an explicit 4.0.1 version in tests. Signed-off-by: Jesper Brynolf <[email protected]>
1 parent 23994df commit 8e4c9f5

10 files changed

+2057
-1052
lines changed
 

‎.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
steps:
5151
- uses: actions/checkout@v2
5252
- name: Build the container
53-
run: docker build -t ubuntucontainer tss-esapi/tests/ --build-arg TPM2_TSS_VERSION=3.0.4 --file tss-esapi/tests/Dockerfile-ubuntu
53+
run: docker build -t ubuntucontainer tss-esapi/tests/ --build-arg TPM2_TSS_VERSION=4.0.1 --file tss-esapi/tests/Dockerfile-ubuntu
5454
- name: Run the container
5555
run: docker run -v $(pwd):/tmp/rust-tss-esapi -w /tmp/rust-tss-esapi/tss-esapi ubuntucontainer /tmp/rust-tss-esapi/tss-esapi/tests/all-ubuntu.sh
5656

‎tss-esapi-sys/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ must therefore link to all of them at build time.
1818

1919
The paths to the libraries are discovered using `pkg-config` - make sure they
2020
are discoverable in this way on your system. Our build script looks for
21-
`tss2-esys`, `tss2-tctildr` and `tss2-mu`. A minimum version of `2.3.3` is
21+
`tss2-esys`, `tss2-tctildr` and `tss2-mu`. A minimum version of `3.2.2` is
2222
required for all of them.
2323

2424
Having installed the open-source implementation libraries at `/usr/local/lib` (by default), it

‎tss-esapi-sys/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#[cfg(feature = "generate-bindings")]
55
use std::path::PathBuf;
66

7-
const MINIMUM_VERSION: &str = "2.4.6";
7+
const MINIMUM_VERSION: &str = "3.2.2";
88

99
fn main() {
1010
if std::env::var("DOCS_RS").is_ok() {

‎tss-esapi-sys/regenerate-bindings.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set -euf -o pipefail
1111
OPENSSL_GIT="https://github.com/openssl/openssl.git"
1212
OPENSSL_VERSION="OpenSSL_1_1_1j"
1313
TPM2_TSS_GIT="https://github.com/tpm2-software/tpm2-tss.git"
14-
TPM2_TSS_VERSION="2.4.6"
14+
TPM2_TSS_VERSION="3.2.2"
1515

1616
export SYSROOT="/tmp/sysroot"
1717

‎tss-esapi-sys/src/bindings/aarch64-unknown-linux-gnu.rs

+794-473
Large diffs are not rendered by default.

‎tss-esapi-sys/src/bindings/arm-unknown-linux-gnueabi.rs

+631-313
Large diffs are not rendered by default.

‎tss-esapi-sys/src/bindings/x86_64-unknown-linux-gnu.rs

+623-257
Large diffs are not rendered by default.

‎tss-esapi/tests/Dockerfile-ubuntu

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ENV PATH="/root/.cargo/bin:${PATH}"
77

88
FROM rust-toolchain AS tpm2-tss
99
# Download and install the TSS library
10-
ARG TPM2_TSS_VERSION=2.4.6
10+
ARG TPM2_TSS_VERSION=3.2.2
1111
ENV TPM2_TSS_VERSION=$TPM2_TSS_VERSION
1212
ENV PKG_CONFIG_PATH /usr/local/lib/pkgconfig
1313
RUN git clone https://github.com/tpm2-software/tpm2-tss.git --branch $TPM2_TSS_VERSION
@@ -20,8 +20,8 @@ RUN cd tpm2-tss \
2020

2121
FROM tpm2-tss AS tpm2-tools
2222
# Download and install TPM2 tools
23-
RUN git clone https://github.com/tpm2-software/tpm2-tools.git --branch 4.1
23+
RUN git clone https://github.com/tpm2-software/tpm2-tools.git --branch 5.6
2424
RUN cd tpm2-tools \
2525
&& ./bootstrap \
26-
&& ./configure --enable-unit \
26+
&& ./configure \
2727
&& make install

‎tss-esapi/tests/all-ubuntu.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fi
2323
#################################################
2424
# Generate bindings for non-"standard" versions #
2525
#################################################
26-
if [[ "$TPM2_TSS_VERSION" != "2.4.6" ]]; then
26+
if [[ "$TPM2_TSS_VERSION" != "3.2.2" ]]; then
2727
FEATURES="generate-bindings integration-tests"
2828
else
2929
FEATURES="integration-tests"

‎tss-esapi/tests/cross-compile.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set -euf -o pipefail
1111
OPENSSL_GIT="https://github.com/openssl/openssl.git"
1212
OPENSSL_VERSION="OpenSSL_1_1_1j"
1313
TPM2_TSS_GIT="https://github.com/tpm2-software/tpm2-tss.git"
14-
TPM2_TSS_VERSION="2.4.6"
14+
TPM2_TSS_VERSION="3.2.2"
1515

1616
export SYSROOT="/tmp/sysroot"
1717

0 commit comments

Comments
 (0)
Please sign in to comment.