<!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 class="details" style="font-style: italic; color: #777;">
<a href="https://gitlab.com/j29280">jgh</a> created an issue:
</p>
<div></div>
<h2 dir="auto">
<a id="user-content-description-of-problem" class="anchor" href="#description-of-problem" aria-hidden="true"></a>Description of problem:</h2>
<p dir="auto">gnutls_certificate_set_ocsp_status_request_file2() is documented as returning 0 on success.
It actually returns the number of responses loaded (from calling gnutls_certificate_set_ocsp_status_request_mem()
(eg. 1) on success.</p>
<h2 dir="auto">
<a id="user-content-version-of-gnutls-used" class="anchor" href="#version-of-gnutls-used" aria-hidden="true"></a>Version of gnutls used:</h2>
<p dir="auto">On test: 3.6.8
Looking at docs: 3.6.9
Looking at sourcecode: <a href="https://gitlab.com/gnutls/gnutls/commit/4416da13f0975476d83452c9d6d093aec9ebb27e" data-original="4416da13f0975476d83452c9d6d093aec9ebb27e" data-link="false" data-link-reference="false" data-project="179611" data-commit="4416da13f0975476d83452c9d6d093aec9ebb27e" data-reference-type="commit" data-container="body" data-placement="bottom" title="Merge branch 'tmp-fix-doc-gnutls_certificate_set_retrieve_function3' into 'master'" class="gfm gfm-commit has-tooltip">4416da13</a></p>
<h2 dir="auto">
<a id="user-content-distributor-of-gnutls-eg-ubuntu-fedora-rhel" class="anchor" href="#distributor-of-gnutls-eg-ubuntu-fedora-rhel" aria-hidden="true"></a>Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)</h2>
<p dir="auto">Fedora</p>
<h2 dir="auto">
<a id="user-content-how-reproducible" class="anchor" href="#how-reproducible" aria-hidden="true"></a>How reproducible:</h2>
<p dir="auto">Only tried once.</p>
<p dir="auto">Steps to Reproduce:</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">        if ((rc = gnutls_certificate_set_ocsp_status_request_file2(</span>
<span id="LC2" class="line" lang="plaintext">                    state->x509_cred, CCS ofile, gnutls_cert_index,</span>
<span id="LC3" class="line" lang="plaintext">                    GNUTLS_X509_FMT_DER)))</span>
<span id="LC4" class="line" lang="plaintext">          {</span></code></pre>
<p dir="auto">debug_printf("rc = %d\n", rc);
return tls_error_gnu(
US"gnutls_certificate_set_ocsp_status_request_file2",
rc, host, errstr);
}</p>
<h2 dir="auto">
<a id="user-content-actual-results" class="anchor" href="#actual-results" aria-hidden="true"></a>Actual results:</h2>
<p dir="auto">23:28:48  4883 TLS: cert/key 0 /home/jgh/git/exim/test/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.pem registered
23:28:48  4883 OCSP response file = /home/jgh/git/exim/test/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.good.resp
23:28:48  4883 GnuTLS<3>: ASSERT: ocsp.c[gnutls_ocsp_resp_get_single]:1650
23:28:48  4883 GnuTLS<2>: associating OCSP response with chain 0 on pos 0
23:28:48  4883 rc = 1
23:28:48  4883 LOG: MAIN
23:28:48  4883   TLS error on connection from localhost (server1.example.com) [127.0.0.1] (gnutls_certificate_set_ocsp_status_request_file2): (unknown error code)</p>
<h2 dir="auto">
<a id="user-content-expected-results" class="anchor" href="#expected-results" aria-hidden="true"></a>Expected results:</h2>
<p dir="auto">Documentation matches library code</p>

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

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/836">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/9fc030bb768ea259549d3eab3ecd0320/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 Issue","url":"https://gitlab.com/gnutls/gnutls/issues/836"}}</script>


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