Loïc Gomez
f2443aaf23
Move SSL context code to get/set_ssl_context methods
...
- Move code setting up SSL context from accept_new() to new
get/set_ssl_context() methods
- set_ssl_context() will allow setting context only if not already set,
or force re-setting context even if already present
- set_ssl_context() will return 1 if SSL context has been set
- if getting the new SSL context fails, set_ssl_context() will not break
current SSL context
This is preparatory work for reloading SSL certificates/key on BIP
reload.
Signed-off-by: Loïc Gomez <bip@animanova.fr>
2024-03-20 22:29:05 +09:00
Pierre-Louis Bonicoli
f2fd1824ca
Format the whole code using clang-format
2022-03-10 14:21:01 +01:00
Loïc Gomez
368149575d
sanitize: null writes, write errors, oversized int,
...
and set incoming_end to size_t
2022-03-10 14:20:23 +01:00
Loïc Gomez
dd5343b710
use proper types, safe casts (mostly size_t)
2022-03-10 14:20:12 +01:00
Pierre-Louis Bonicoli
ab8e5eece1
Add cipher specifications setting
...
Allow to configure cipher specifications for the listening bip
connection and for each outgoing IRC connection.
Closes #301
2016-11-07 11:25:37 +01:00
Arnaud Cornet
92365874d4
Revert "Fix antiflood. Fixes freenode kicking us out."
...
This reverts commit 639e929021
.
2010-02-17 12:32:22 +00:00
Arnaud Cornet
639e929021
Fix antiflood. Fixes freenode kicking us out.
2010-02-15 14:06:50 +00:00
Arnaud Cornet
c496bd7027
Update src/version.h and Changelog for release.
2009-08-24 19:05:45 +02:00
Arnaud Cornet
7546daa276
[BUG] Handle badly lagging client conns decently.
2009-08-19 02:09:16 +02:00
Arnaud Cornet
4b723ca479
more cleanups, start of a log refactoring
...
That changes log format and might breack everything.
2008-12-18 14:27:16 +01:00
Arnaud Cornet
0f0d0427b8
Enlarge connection buffer size and logline_maxlen.
2008-11-23 15:09:24 +01:00
Arnaud Cornet
f1cc6451f5
Handle SSL-client auth. Fix crash on del_conn when the link never got connected at all.
2008-01-20 18:49:44 +01:00
Loc Gomez
671a455219
Fix UTF-8 in all files
2008-01-09 23:45:40 +01:00
Arnaud Cornet
27b16a86b8
Avoid unncessary calls to getaddrinfo.
...
Refactor calls to getaddrinfo only on socket establishement, cache in
connection structure.
2007-12-21 12:20:21 +01:00
Loc Gomez
12ea45b132
cleanup
...
change some log levels
remove ssl_check_store from connection
indent fixes
check_rlimits: change explain text
Git-explicit version
2007-09-27 14:12:27 +02:00
nohar
f4f0cda849
cleanup for release
2005-10-09 11:47:20 +00:00
nohar
e245735f71
merged YS' elite cert management patch
2005-08-25 08:17:10 +00:00
nohar
3a51245c14
YS' SSL certification check patch merged
2005-06-04 11:05:54 +00:00
nohar
a48019b5fd
oidentd suppport
2005-05-12 08:29:27 +00:00
kyoshiro
f66513d224
add functions to determine local/remote ip/port from a connection_t object
2005-05-11 14:09:20 +00:00
nohar
665d2ec5af
Initial import
2005-04-28 08:26:44 +00:00