summaryrefslogtreecommitdiff
path: root/sockets.c
AgeCommit message (Collapse)Author
2024-07-17Ensure file and socket descriptors are valid in config.c and sockets.c.Luke Bratch
2023-03-23Don't try to sockread() or socksend() if the file descriptor is NULL, assume ↵Luke Bratch
all socksend() return values of <0 are errors, correct (currently unused) return values in sendtoserver().
2020-10-21Don't have arrindex() return 0 on failure as 0 is a valid index. Instead ↵Luke Bratch
return -1 and change callers to check this.
2020-01-05Have openssl_accept return 0 if fd_toggle_blocking failed.Luke Bratch
2019-09-15Use global signal(SIGPIPE, SIG_IGN) instead of the send() flag MSG_NOSIGNAL ↵Luke Bratch
since we can't pass MSG_NOSIGNAL to OpenSSL's SSL_write when using TLS connections.
2019-09-15Set the MSG_NOSIGNAL flag send send()ing so a bad socket write doesn't ↵Luke Bratch
terminate blabouncer with SIGPIPE.
2019-07-09Change some SSL_accept() debug output to be DEBUG_FULL instead of DEBUG_CRIT.Luke Bratch
2019-07-09Avoid SSL_accept() blocking if the client fails to do TLS negotiation.Luke Bratch
2019-06-16Log OpenSSL errors properly instead of printing to stderr.Luke Bratch
2019-06-12Handle failing to connect to the server on startup.Luke Bratch
2019-06-10Add copyright and GPL 3 notices.Luke Bratch
2019-05-30Remove most (all?) exit()s with error handling without exiting where ↵Luke Bratch
possible. Convert most remaining printing to stdout/stderr to debugprint() instead.
2019-05-30Convert debugprint() from being to file/screen/disabled to always being to ↵Luke Bratch
file with configurable verbosity.
2019-05-27Make debug output optional and disabled by default.Luke Bratch
2019-05-19Add some help output if certificate or key files are missing.Luke Bratch
2019-05-13Implement optional TLS for the server side.Luke Bratch
2019-05-12Make using TLS for clients connecting to the bouncer optional.Luke Bratch
2019-05-12Make certificate and key file paths configurable.Luke Bratch
2019-05-12Make client port configurable and move settings structure to be initialised ↵Luke Bratch
in main() instead of dochat().
2019-05-12Implement TLS using OpenSSL.Luke Bratch
2019-04-19Lots and lots of refactoring and comments work in preparation for more ↵Luke Bratch
actual IRC/bouncer functionality
2019-04-18Split functions into different filesLuke Bratch