]> jfr.im git - solanum.git/commit - include/reject.h
ircd/listener: return a fatal TLS alert for early rejected TLS clients
authorAaron Jones <redacted>
Thu, 15 Jun 2023 22:32:12 +0000 (22:32 +0000)
committerAaron Jones <redacted>
Tue, 7 Nov 2023 23:52:41 +0000 (23:52 +0000)
commit642c73dddb3ce7c9ae4824fa95ea9ebad41eb848
tree76f9bb4c65d6b5d98e081e4e3aeba44b300490a8
parentc1b01bf5ec318463ab076ac2d7c0a4b02631f745
ircd/listener: return a fatal TLS alert for early rejected TLS clients

This is in furtherance of commit 3fdf26aa19628d5e12a3 which added
functionality to reply with a TLS record layer alert for D-Lined TLS
clients. It turns out that there are other plaintext error messages
in this same function that should receive the same treatment.

Also move another error string to a variable and use a compile-time
optimised-out strlen for it too, to use the same approach as an
existing error string.

Finally, use a different alert (internal_error) for the case where
IRCd is simply unable to accept more connections.
include/reject.h
ircd/listener.c
ircd/reject.c