Merge pull request #410 from fedepell/crl_update_also_from_file

TLS: update CRL load time also when loading from file
pull/413/head
Michael Zillgith 3 years ago committed by GitHub
commit 65318c44b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -465,8 +465,12 @@ TLSConfiguration_addCRLFromFile(TLSConfiguration self, const char* filename)
{
int ret = mbedtls_x509_crl_parse_file(&(self->crl), filename);
if (ret != 0)
if (ret != 0) {
DEBUG_PRINT("TLS", "mbedtls_x509_crl_parse_file returned %d\n", ret);
}
else {
self->crlUpdated = Hal_getTimeInMs();
}
return (ret == 0);
}

Loading…
Cancel
Save