Skip to content

Commit

Permalink
Fix proto
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ortmann committed Oct 2, 2023
1 parent 44ffcfc commit 59031d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 59031d8

Please sign in to comment.