[gnutls-devel] GnuTLS | Port openconnect TPM2 code (!1460)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Wed Nov 10 06:49:58 CET 2021

Daiki Ueno commented:

OK, I managed to make the test succeed, with the following change:
diff --git a/tests/auth-swtpm b/tests/auth-swtpm
index d1b806c6..fded3753 100755
--- a/tests/auth-swtpm
+++ b/tests/auth-swtpm
@@ -41,6 +41,8 @@ LD_PRELOAD=libsocket_wrapper.so ${SWTPM_IOCTL} --tcp --load perma
 LD_PRELOAD=libsocket_wrapper.so ${SWTPM_IOCTL} --tcp -i
 export TPM_INTERFACE_TYPE=socsim
+export GNUTLS_TCTI="mssim:host=,port=2321"
+export GNUTLS_PIN=test
 # We don't actually *require* either of the startup tools
 # to be present; we can fall back to killing swtpm and then
$ PKG_CONFIG_PATH=$PWD/../gnutls/build/lib/pkgconfig LDFLAGS="-Wl,-rpath,$PWD/../gnutls/build/lib" ./configure --htmldir=$PWD/html
$ make
$ make VERBOSE=1 TESTS=auth-swtpm check
Here is the [log](/uploads/0121a65de6069f1a28131e9f246096ea/auth-swtpm.log). For some reason it intermittently fails on my environment with:
RROR:esys:src/tss2-esys/api/Esys_RSA_Decrypt.c:102:Esys_RSA_Decrypt() Esys Finish ErrorCode (0x00000101)
which I have no idea how to fix.

Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1460#note_728956580
You're receiving this email because of your account on gitlab.com.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20211110/b9d921ae/attachment-0001.html>

More information about the Gnutls-devel mailing list