From 59031d8627d3d1f7122818ac16b5c0158773113a Mon Sep 17 00:00:00 2001 From: Michael Ortmann Date: Mon, 2 Oct 2023 13:32:54 +0200 Subject: [PATCH] Fix proto --- src/proto.h | 2 +- src/tls.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/proto.h b/src/proto.h index 4c62922d9..d34882698 100644 --- a/src/proto.h +++ b/src/proto.h @@ -310,7 +310,7 @@ int readtclprog(char *fname); /* tls.c */ #ifdef TLS -void verify_cert_expiry(); +void verify_cert_expiry(void); int ssl_handshake(int, int, int, int, char *, IntFunc); char *ssl_fpconv(char *in, char *out); const char *ssl_getuid(int sock); diff --git a/src/tls.c b/src/tls.c index a4296ddee..3e6379f81 100644 --- a/src/tls.c +++ b/src/tls.c @@ -109,7 +109,7 @@ static int ssl_seed(void) return 0; } -void verify_cert_expiry() { +void verify_cert_expiry(void) { X509 *x509; if ((x509 = SSL_CTX_get0_certificate(ssl_ctx)) && (ASN1_TIME_cmp_time_t(X509_get0_notAfter(x509), time(NULL)) < 0))