public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/swtpm] f43: Update to v0.10.2 release
@ 2026-08-19  1:07 Stefan Berger
  0 siblings, 0 replies; only message in thread
From: Stefan Berger @ 2026-08-19  1:07 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/swtpm
Branch : f43
Commit : cef759e18929c5f0727deb4a6f6189646d289810
Author : Stefan Berger <stefanb@linux.ibm.com>
Date   : 2026-08-18T21:06:38-04:00
Stats  : +7/-87 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/swtpm/c/cef759e18929c5f0727deb4a6f6189646d289810?branch=f43

Log:
Update to v0.10.2 release

---
diff --git a/.gitignore b/.gitignore
index bbaa110..0877ec7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -33,3 +33,4 @@
 /swtpm-0.9.0.tar.gz
 /swtpm-0.10.0.tar.gz
 /swtpm-0.10.1.tar.gz
+/swtpm-0.10.2.tar.gz

diff --git a/4da66c66f92438443e66b67555673c9cb898b0ae.patch b/4da66c66f92438443e66b67555673c9cb898b0ae.patch
deleted file mode 100644
index ecd610c..0000000
--- a/4da66c66f92438443e66b67555673c9cb898b0ae.patch
+++ /dev/null
@@ -1,82 +0,0 @@
-From 4da66c66f92438443e66b67555673c9cb898b0ae Mon Sep 17 00:00:00 2001
-From: Stefan Berger <stefanb@linux.ibm.com>
-Date: Mon, 12 May 2025 18:25:48 -0400
-Subject: [PATCH] tests: Retry NVWrite command after 0x922 return code and inc
- lockout counter
-
-When returncode 0x922 is received from NVWrite then retry the command so
-that it gets the expected error code from failing to provide a password.
-When checking the lockout counter, increase the numbers now.
-
-Patched versions of libtpms may not return 0x922 anymore, so write the code
-that it can test both cases.
-
-Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
----
- tests/_test_tpm2_avoid_da_lockout | 22 ++++++++++++++++------
- 1 file changed, 16 insertions(+), 6 deletions(-)
-
-diff --git a/tests/_test_tpm2_avoid_da_lockout b/tests/_test_tpm2_avoid_da_lockout
-index e4f0121a9..fc26a8cf6 100755
---- a/tests/_test_tpm2_avoid_da_lockout
-+++ b/tests/_test_tpm2_avoid_da_lockout
-@@ -53,6 +53,11 @@ fi
- cmd='\x80\x02\x00\x00\x00\x24\x00\x00\x01\x37\x01\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x09\x40\x00\x00\x09\x00\x00\x00\x00\x00\x00\x01\x41\x00\x00'
- RES=$(swtpm_cmd_tx "${SWTPM_INTERFACE}" ${cmd})
- exp=' 80 01 00 00 00 0a 00 00 09 22'
-+if [ "$RES" == "$exp" ]; then
-+	# 0x922 : retry command
-+	RES=$(swtpm_cmd_tx "${SWTPM_INTERFACE}" ${cmd})
-+fi
-+exp=' 80 01 00 00 00 0a 00 00 09 8e'
- if [ "$RES" != "$exp" ]; then
- 	echo "Error: Did not get expected result from TPM2_NV_Write"
- 	echo "expected: $exp"
-@@ -63,9 +68,9 @@ fi
- # The TPM_PT_LOCKOUT_COUNTER must be 0 now: tssgetcapability -cap 6 -pr 0x20e -pc 1
- cmd='\x80\x01\x00\x00\x00\x16\x00\x00\x01\x7a\x00\x00\x00\x06\x00\x00\x02\x0e\x00\x00\x00\x01'
- RES=$(swtpm_cmd_tx "${SWTPM_INTERFACE}" ${cmd})
--exp=' 80 01 00 00 00 1b 00 00 00 00 01 00 00 00 06 00 00 00 01 00 00 02 0e 00 00 00 00'
-+exp=' 80 01 00 00 00 1b 00 00 00 00 01 00 00 00 06 00 00 00 01 00 00 02 0e 00 00 00 01'
- if [ "$RES" != "$exp" ]; then
--	echo "Error: Did not get expected result from TPM2_GetCapability(TPM_PT_LOCKOUT_COUNTER)"
-+	echo "Error: Did not get expected result from 1st TPM2_GetCapability(TPM_PT_LOCKOUT_COUNTER)"
- 	echo "expected: $exp"
- 	echo "received: $RES"
- 	exit 1
-@@ -92,9 +97,9 @@ fi
- # Without swtpm sending TPM2_Shutdown, it would be '1' now
- cmd='\x80\x01\x00\x00\x00\x16\x00\x00\x01\x7a\x00\x00\x00\x06\x00\x00\x02\x0e\x00\x00\x00\x01'
- RES=$(swtpm_cmd_tx "${SWTPM_INTERFACE}" ${cmd})
--exp=' 80 01 00 00 00 1b 00 00 00 00 01 00 00 00 06 00 00 00 01 00 00 02 0e 00 00 00 00'
-+exp=' 80 01 00 00 00 1b 00 00 00 00 01 00 00 00 06 00 00 00 01 00 00 02 0e 00 00 00 01'
- if [ "$RES" != "$exp" ]; then
--	echo "Error: Did not get expected result from TPM2_GetCapability(TPM_PT_LOCKOUT_COUNTER)"
-+	echo "Error: Did not get expected result from 2nd TPM2_GetCapability(TPM_PT_LOCKOUT_COUNTER)"
- 	echo "expected: $exp"
- 	echo "received: $RES"
- 	exit 1
-@@ -104,6 +109,11 @@ fi
- cmd='\x80\x02\x00\x00\x00\x24\x00\x00\x01\x37\x01\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x09\x40\x00\x00\x09\x00\x00\x00\x00\x00\x00\x01\x41\x00\x00'
- RES=$(swtpm_cmd_tx "${SWTPM_INTERFACE}" ${cmd})
- exp=' 80 01 00 00 00 0a 00 00 09 22'
-+if [ "$RES" == "$exp" ]; then
-+	# 0x922 : retry command
-+	RES=$(swtpm_cmd_tx "${SWTPM_INTERFACE}" ${cmd})
-+fi
-+exp=' 80 01 00 00 00 0a 00 00 09 8e'
- if [ "$RES" != "$exp" ]; then
- 	echo "Error: Did not get expected result from TPM2_NV_Write"
- 	echo "expected: $exp"
-@@ -136,9 +146,9 @@ fi
- # Without swtpm sending TPM2_Shutdown, it would be '2' now
- cmd='\x80\x01\x00\x00\x00\x16\x00\x00\x01\x7a\x00\x00\x00\x06\x00\x00\x02\x0e\x00\x00\x00\x01'
- RES=$(swtpm_cmd_tx "${SWTPM_INTERFACE}" ${cmd})
--exp=' 80 01 00 00 00 1b 00 00 00 00 01 00 00 00 06 00 00 00 01 00 00 02 0e 00 00 00 00'
-+exp=' 80 01 00 00 00 1b 00 00 00 00 01 00 00 00 06 00 00 00 01 00 00 02 0e 00 00 00 02'
- if [ "$RES" != "$exp" ]; then
--	echo "Error: Did not get expected result from TPM2_GetCapability(TPM_PT_LOCKOUT_COUNTER)"
-+	echo "Error: Did not get expected result from 3rd TPM2_GetCapability(TPM_PT_LOCKOUT_COUNTER)"
- 	echo "expected: $exp"
- 	echo "received: $RES"
- 	exit 1

diff --git a/sources b/sources
index 572fbee..c9cb7ff 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (swtpm-0.10.1.tar.gz) = 5711008866351b9408a5c6ade83157c55388617d499b7564daa83d640e9f81fa269bf54a40f6c4caa1c7186feefdfee76a05af1cc246c481708cb85d02a8c7e2
+SHA512 (swtpm-0.10.2.tar.gz) = 412034286eab4245127cf063ec637e3ca8cabcd8b58692d55b4eab49f4e9519da3107c104b771d2a097a09ffacd78aa825d0882558eff3128d7f4d2af7871574

diff --git a/swtpm.spec b/swtpm.spec
index 0f245e7..ba45caf 100644
--- a/swtpm.spec
+++ b/swtpm.spec
@@ -7,13 +7,11 @@
 
 Summary: TPM Emulator
 Name:           swtpm
-Version:        0.10.1
-Release:        2%{?dist}
+Version:        0.10.2
+Release:        1%{?dist}
 License:        BSD-3-Clause
 Url:            https://github.com/stefanberger/swtpm
 Source0:        https://github.com/stefanberger/swtpm/archive/v%{version}/%{name}-%{version}.tar.gz
-# tests: Retry NVWrite command after 0x922 return code and inc lockout counter
-Patch0:         https://github.com/stefanberger/swtpm/commit/4da66c66f92438443e66b67555673c9cb898b0ae.patch
 
 BuildRequires: make
 BuildRequires:  git-core
@@ -203,6 +201,9 @@ fi
 %{_libexecdir}/installed-tests/swtpm/
 
 %changelog
+* Wed Aug 19 2026 Stefan Berger <stefanb@linux.ibm.com> - 0.10.2-1
+- Update to v0.10.2 release
+
 * Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.1-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-19  1:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-19  1:07 [rpms/swtpm] f43: Update to v0.10.2 release Stefan Berger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox