💾 Archived View for thrig.me › blog › 2023 › 02 › 20 › gg.patch captured on 2023-11-04 at 12:48:07.
⬅️ Previous capture (2023-07-10)
-=-=-=-=-=-=-
diff --git gg.c gg.c index e650737..f2de263 100644 --- gg.c +++ gg.c @@ -230,6 +230,15 @@ get(const char *r) } } + time_t tim; + struct tm tminfo; + tim = tls_peer_cert_notbefore(ctx); + strftime(buf, sizeof(buf), "%Y%m%d %H:%M:%S", localtime_r(&tim, &tminfo)); + fprintf(stderr, "notbefore %s\n", buf); + tim = tls_peer_cert_notafter(ctx); + strftime(buf, sizeof(buf), "%Y%m%d %H:%M:%S", localtime_r(&tim, &tminfo)); + fprintf(stderr, "notafter %s\n", buf); + doreq(ctx, req); for (;;) {