<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<p style="color: #777777;">
<a href="https://gitlab.com/dueno">Daiki Ueno</a>
<a href="https://gitlab.com/gnutls/gnutls/-/merge_requests/1460#note_728956580">commented</a>:
</p>
<div style="">
<p dir="auto">OK, I managed to make the test succeed, with the following change:</p>
<pre class="code highlight js-syntax-highlight language-diff" lang="diff" v-pre="true"><code><span id="LC1" class="line" lang="diff"><span class="gh">diff --git a/tests/auth-swtpm b/tests/auth-swtpm</span></span>
<span id="LC2" class="line" lang="diff"><span class="gh">index d1b806c6..fded3753 100755</span></span>
<span id="LC3" class="line" lang="diff"><span class="gd">--- a/tests/auth-swtpm</span></span>
<span id="LC4" class="line" lang="diff"><span class="gi">+++ b/tests/auth-swtpm</span></span>
<span id="LC5" class="line" lang="diff"><span class="p">@@ -41,6 +41,8 @@</span> LD_PRELOAD=libsocket_wrapper.so ${SWTPM_IOCTL} --tcp 127.0.0.1:2322 --load perma</span>
<span id="LC6" class="line" lang="diff"> LD_PRELOAD=libsocket_wrapper.so ${SWTPM_IOCTL} --tcp 127.0.0.1:2322 -i</span>
<span id="LC7" class="line" lang="diff"> </span>
<span id="LC8" class="line" lang="diff"> export TPM_INTERFACE_TYPE=socsim</span>
<span id="LC9" class="line" lang="diff"><span class="gi">+export GNUTLS_TCTI="mssim:host=127.0.0.1,port=2321"</span></span>
<span id="LC10" class="line" lang="diff"><span class="gi">+export GNUTLS_PIN=test</span></span>
<span id="LC11" class="line" lang="diff"> </span>
<span id="LC12" class="line" lang="diff"> # We don't actually *require* either of the startup tools</span>
<span id="LC13" class="line" lang="diff"> # to be present; we can fall back to killing swtpm and then</span></code></pre>
<p dir="auto">with:</p>
<pre class="code highlight js-syntax-highlight language-console" lang="console" v-pre="true"><code><span id="LC1" class="line" lang="console"><span class="gp">$</span><span class="w"> </span><span class="nv">PKG_CONFIG_PATH</span><span class="o">=</span><span class="nv">$PWD</span>/../gnutls/build/lib/pkgconfig <span class="nv">LDFLAGS</span><span class="o">=</span><span class="s2">"-Wl,-rpath,</span><span class="nv">$PWD</span><span class="s2">/../gnutls/build/lib"</span> ./configure <span class="nt">--htmldir</span><span class="o">=</span><span class="nv">$PWD</span>/html</span>
<span id="LC2" class="line" lang="console"><span class="gp">$</span><span class="w"> </span>make</span>
<span id="LC3" class="line" lang="console"><span class="gp">$</span><span class="w"> </span>make <span class="nv">VERBOSE</span><span class="o">=</span>1 <span class="nv">TESTS</span><span class="o">=</span>auth-swtpm check</span></code></pre>
<p dir="auto">Here is the <a href="https://gitlab.com/gnutls/gnutls/uploads/0121a65de6069f1a28131e9f246096ea/auth-swtpm.log" data-canonical-src="/uploads/0121a65de6069f1a28131e9f246096ea/auth-swtpm.log" data-link="true" class="gfm">log</a>. For some reason it intermittently fails on my environment with:</p>
<pre class="code highlight js-syntax-highlight language-console" lang="console" v-pre="true"><code><span id="LC1" class="line" lang="console"><span class="go">RROR:esys:src/tss2-esys/api/Esys_RSA_Decrypt.c:102:Esys_RSA_Decrypt() Esys Finish ErrorCode (0x00000101)</span></span></code></pre>
<p dir="auto">which I have no idea how to fix.</p>
</div>


</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #666;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/merge_requests/1460#note_728956580">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/-/sent_notifications/6c29fe0e442218a932c2315ac0c8fe2e/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Merge request","url":"https://gitlab.com/gnutls/gnutls/-/merge_requests/1460#note_728956580"}}</script>


</p>
</div>
</body>
</html>