<!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=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<div></div>
<p dir="auto">This bug was introduced in <a href="https://gitlab.com/gnutls/gnutls/commit/9829ef9a3ca06d60472599df7c74ebb9a53f1fe2" data-original="9829ef9a3ca06d60472599df7c74ebb9a53f1fe2" data-link="false" data-link-reference="false" data-project="179611" data-commit="9829ef9a3ca06d60472599df7c74ebb9a53f1fe2" data-reference-type="commit" data-container="body" data-placement="bottom" title="introduced gnutls_certificate_retrieve_function3" class="gfm gfm-commit has-tooltip">9829ef9a</a> (I think) and appears in version 3.6.3.</p>
<p dir="auto">When the legacy callback returns no certificates (st2.ncerts == 0, st2.cert == NULL), alloc_and_load_x509_certs returns NULL on line 397 in lib/cert-cred.c. This makes the function return GNUTLS_E_MEMORY_ERROR, which is then transformed to GNUTLS_E_USER_ERROR by call_cert_get_callback.</p>
<p dir="auto">glib-networking 2.56 seems to always provide a callback for client connections, so this should break quite a lot.</p>
<p dir="auto">Sorry if I'm slow to respond, ,my email client doesn't provide a client certificate, and I can't check my email.</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/528">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/60957da4b02656a1ec39c0ad7662572f/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/528"}}</script>
</p>
</div>
</body>
</html>