<!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>
<p dir="auto">Something like the following should be sufficient, in addition to a testsuite check.</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">diff --git a/lib/x509/time.c b/lib/x509/time.c</span>
<span id="LC2" class="line" lang="plaintext">index 4d2b78926..b3d799400 100644</span>
<span id="LC3" class="line" lang="plaintext">--- a/lib/x509/time.c</span>
<span id="LC4" class="line" lang="plaintext">+++ b/lib/x509/time.c</span>
<span id="LC5" class="line" lang="plaintext">@@ -238,7 +238,7 @@ gtime_to_suitable_time(time_t gtime, char *str_time, size_t str_time_size, unsig</span>
<span id="LC6" class="line" lang="plaintext">        size_t ret;</span>
<span id="LC7" class="line" lang="plaintext">        struct tm _tm;</span>
<span id="LC8" class="line" lang="plaintext"> </span>
<span id="LC9" class="line" lang="plaintext">-       if (gtime == (time_t)-1</span>
<span id="LC10" class="line" lang="plaintext">+       if (gtime == GNUTLS_X509_NO_WELL_DEFINED_EXPIRATION || gtime == (time_t)-1</span>
<span id="LC11" class="line" lang="plaintext"> #if SIZEOF_LONG == 8</span>
<span id="LC12" class="line" lang="plaintext">                || gtime >= 253402210800</span>
<span id="LC13" class="line" lang="plaintext"> #endif</span>
<span id="LC14" class="line" lang="plaintext">@@ -277,7 +277,7 @@ gtime_to_generalTime(time_t gtime, char *str_time, size_t str_time_size)</span>
<span id="LC15" class="line" lang="plaintext">        size_t ret;</span>
<span id="LC16" class="line" lang="plaintext">        struct tm _tm;</span>
<span id="LC17" class="line" lang="plaintext">        </span>
<span id="LC18" class="line" lang="plaintext">-       if (gtime == (time_t)-1</span>
<span id="LC19" class="line" lang="plaintext">+       if (gtime == GNUTLS_X509_NO_WELL_DEFINED_EXPIRATION || gtime == (time_t)-1</span>
<span id="LC20" class="line" lang="plaintext"> #if SIZEOF_LONG == 8</span>
<span id="LC21" class="line" lang="plaintext">                || gtime >= 253402210800</span>
<span id="LC22" class="line" lang="plaintext"> #endif</span>
<span id="LC23" class="line" lang="plaintext">@@ -409,6 +409,7 @@ _gnutls_x509_set_time(ASN1_TYPE c2, const char *where, time_t tim,</span></code></pre>
</div>


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

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/609#note_115116078">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/21b91af1e68c9af2f535394452d8ea7d/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/609#note_115116078"}}</script>
</p>
</div>
</body>
</html>