diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-04 13:31:36 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-04 13:31:36 +0300 |
commit | eb1e613d1309c51e299888290766896a850e9171 (patch) | |
tree | 68fb5ec331ac3abb18cbe957d8e45e1c708cc5f1 /src/gmrequest.c | |
parent | 7a69d53ba72f9e5581c781dd4c54dd3a3e6b89b4 (diff) |
DocumentWidget: Show server certificate expiration date
Diffstat (limited to 'src/gmrequest.c')
-rw-r--r-- | src/gmrequest.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gmrequest.c b/src/gmrequest.c index c0697f49..7b110c03 100644 --- a/src/gmrequest.c +++ b/src/gmrequest.c | |||
@@ -343,7 +343,12 @@ int certFlags_GmRequest(const iGmRequest *d) { | |||
343 | 343 | ||
344 | iDate certExpirationDate_GmRequest(const iGmRequest *d) { | 344 | iDate certExpirationDate_GmRequest(const iGmRequest *d) { |
345 | iDate expiry; | 345 | iDate expiry; |
346 | validUntil_TlsCertificate(serverCertificate_TlsRequest(d->req), &expiry); | 346 | if (d->req) { |
347 | validUntil_TlsCertificate(serverCertificate_TlsRequest(d->req), &expiry); | ||
348 | } | ||
349 | else { | ||
350 | iZap(expiry); | ||
351 | } | ||
347 | return expiry; | 352 | return expiry; |
348 | } | 353 | } |
349 | 354 | ||