Skip to content

Commit

Permalink
ifdef tls calls
Browse files Browse the repository at this point in the history
  • Loading branch information
vanosg committed Jul 9, 2024
1 parent 7b02019 commit 11897a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dccutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,10 @@ void dcc_chatter(int idx)
dcc[idx].u.chat->channel = 234567;
j = dcc[idx].sock;
strcpy(dcc[idx].u.chat->con_chan, "***");
#ifdef TLS
if (is_owner(dcc[idx].user))
verify_cert_expiry(idx);
#endif
check_tcl_chon(dcc[idx].nick, dcc[idx].sock);
/* Still there? */
if ((idx >= dcc_total) || (dcc[idx].sock != j))
Expand Down
2 changes: 2 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,9 @@ static void core_secondly()
movefile(logs[i].filename, s);
}
}
#ifdef TLS
verify_cert_expiry(0);
#endif
}
}
}
Expand Down

0 comments on commit 11897a9

Please sign in to comment.