Re: [PATCH 1/2] FIX: accept certificate without expiration date

Uwe Bonnes <bon-1JbLm1bU5j5ZIx36JBfelj3+ndqKAYMe9FMPySWZwLkb1SvskN2V4Q@public.gmane.org> Mon, 24 Apr 2017 13:08:58 +0200
Newsgroups gmane.comp.hardware.microcontrollers.ethernut
Message-ID <[email protected]>
>>>>> "Krzysztof" == Krzysztof Sawicki <[email protected]> writes:

    Krzysztof> --- nut/tls/x509.c | 2 +- 1 file changed, 1 insertion(+), 1
    Krzysztof> deletion(-)

    Krzysztof> diff --git a/nut/tls/x509.c b/nut/tls/x509.c index
    Krzysztof> 2b483c7..310d26b 100644 --- a/nut/tls/x509.c +++
    Krzysztof> b/nut/tls/x509.c @@ -385,7 +385,7 @@ int x509_verify(const
    Krzysztof> CA_CERT_CTX *ca_cert_ctx, const X509_CTX *cert) } /* check
    Krzysztof> the not after date */ - if (tv.tv_sec > cert->not_after) + if
    Krzysztof> ((cert->not_after != -1) && (tv.tv_sec > cert->not_after)) {
    Krzysztof> ret = X509_VFY_ERROR_EXPIRED; goto end_verify; -- 2.7.4

Dear  Krzysztof,

can you give some reference that a certificate without 	expiration date is
valid?

-- 
Uwe Bonnes                bon-1JbLm1bU5j5ZIx36JBfelj3+ndqKAYMe9FMPySWZwLkb1SvskN2V4Q@public.gmane.org

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion