summaryrefslogtreecommitdiff
path: root/src/core/wee-network.c
AgeCommit message (Collapse)Author
2021-06-17core: add option "certs" in command /debugSébastien Helleu
2021-05-16core: set server name when connecting to server with TLS (SNI extension) ↵Sébastien Helleu
only if it's not an IPV4/IPv6 (closes #1635)
2021-05-12core: improve options to load GnuTLS system/user CAs (closes #972)Sébastien Helleu
Changes: * new option: weechat.network.gnutls_ca_system * option weechat.network.gnutls_ca_file renamed to weechat.network.gnutls_ca_user * reload certificates when options are changed * remove build option CA_FILE
2021-05-11core: split WeeChat home in 4 directories, use XDG directories by default ↵Sébastien Helleu
(issue #1285) The 4 directories (which can be the same): - config: configuration files, certificates - data: log/upgrade files, local plugins, scripts, xfer files - cache: script repository, scripts downloaded (temporary location) - runtime: FIFO pipe, relay UNIX sockets
2021-05-11core: evaluate option weechat.network.gnutls_ca_file (issue #1285)Sébastien Helleu
2021-05-04core: display a warning when the file with certificate authorities is not ↵Sébastien Helleu
found (option weechat.network.gnutls_ca_file)
2021-01-02core: update copyright datesSébastien Helleu
2020-11-21core: increase buffer size in HTTP proxy connectionSébastien Helleu
In case of long address/username/password, the HTTP CONNECT message could be truncated.
2020-04-18core: make GnuTLS a required dependencySébastien Helleu
2020-01-04core: update copyright datesSébastien Helleu
2019-03-31core: add documentation on command line debug options (in --help and man pages)Sébastien Helleu
Command line debug options are now documented: * --no-dlclose: do not call the function dlclose after plugins are unloaded * --no-gnutls: do not call the init and deinit functions of GnuTLS library * --no-gcrypt: do not call the init and deinit functions of Gcrypt library These options must not be used in production, they're for debug only and can be used with tools like Valgrind or electric-fence.
2019-01-01core: update copyright datesSébastien Helleu
2018-11-29core: use https for all links where secured http is supportedSébastien Helleu
2018-11-29core: use https for links to GNU GPL licenseSébastien Helleu
2018-11-18core: replace "Mac OS X" and "OS X" by "macOS" (issue #1272)Sébastien Helleu
2018-11-04api: add functions string_base_{encode,decode}, remove functions ↵Sébastien Helleu
string_{encode,decode}_base64
2018-11-02api: return integer in function string_encode_base64Sébastien Helleu
2018-05-22core: unhook TLS handshake fd before calling connect callbackSimon Arlott
When there are multiple addresses for a server and a TLS handshake failure occurs, the next server in the list will connect and then timeout without performing any TLS handshake. This is because irc_server_close_connection closes server->sock so the next pipe to be created reuses that fd, but the hook for the handshake fd still exists when the next connection attempt is started. The hook for network_connect_child_read_cb is never added because a hook for the reused fd number still exists. Resolve this by removing the handshake hook before calling the connect callback.
2018-01-07core: fix some stylesSébastien Helleu
2018-01-05core: update copyright datesSébastien Helleu
2017-01-01core: update copyright datesSébastien Helleu
2016-12-13core, xfer: display more information on fork errors (issue #573)Sébastien Helleu
2016-08-20api: fix crash in function network_connect_to() if address is NULL (issue #781)Sébastien Helleu
2016-08-19api: fix connection to servers with hook_connect() on Windows 10 with ↵Sébastien Helleu
Windows subsystem for Linux (issue #770) The test on socketpair() function is now made when hooks are initialized (instead of doing the test at compilation time).
2016-08-07core: irc, xfer: do not check return code of res_init()Sébastien Helleu
If the call to res_init() fails, the connection may be OK anyway or in worst case it will fail (with an appropriate error) if the name can not be resolved.
2016-08-07core, irc, xfer: add missing includes for function res_init()Sébastien Helleu
2016-08-07core/plugins: Use res_init before getaddrinfo.Raghavendra Prabhu
With weechat, if the network changes in anyway that causes resolv.conf to be updated, that is not picked up, resulting in irc: connecting to server XXXX.com/1026 (SSL)... irc: address "XXX.com" not found irc: error: Name or service not known irc: reconnecting to server in 30 seconds This happens, especially when one connects to an irc server behind a VPN. This can also happen when there is no network connectivity weechat was started but later network is connected to. The fix is simple, it relies on calling res_init (3) before getaddrinfo in network_connect_child and other places. res_init reloads the resolv.conf and getaddrinfo does not fail with address resolution error.
2016-05-27core, irc, xfer: display more information in memory allocation errors (issue ↵Sébastien Helleu
#573)
2016-03-22core: add missing pointer argument in calls to hook_connect callbackSébastien Helleu
2016-03-21core: add pointer in some callbacks (closes #406)Sébastien Helleu
This pointer is the first argument received by callbacks, and the existing argument "data" is now automatically freed by WeeChat when the object containing the callback is removed. With this new pointer, the linked list of callbacks in scripts has been removed. This will improve speed of scripts (using a lot of hooks), reduce memory used by scripts and reduce time to unload scripts. Following functions are affected in the C API: * exec_on_files * config_new * config_new_section * config_new_option * hook_command * hook_command_run * hook_timer * hook_fd * hook_process * hook_process_hashtable * hook_connect * hook_print * hook_signal * hook_hsignal * hook_config * hook_completion * hook_modifier * hook_info * hook_info_hashtable * hook_infolist * hook_hdata * hook_focus * unhook_all_plugin * buffer_new * bar_item_new * upgrade_new * upgrade_read
2016-01-01core: update copyright datesSébastien Helleu
2015-12-10irc: add support of SNI in SSL connection to IRC server (closes #620)Sébastien Helleu
2015-07-18core: fix crash if a file descriptor used in hook_fd() is too high (> 1024 ↵Sébastien Helleu
on Linux/BSD) (closes #465) The calls to select() are replaced by poll(), which doesn't have limitation on file descriptor number.
2015-07-17core: fix format of commentSébastien Helleu
2015-05-01core: fix compilation on CygwinSébastien Helleu
The header sys/select.h is now required for select() function.
2015-04-30core: add comments after some #endifSébastien Helleu
2015-01-21core: add gnutls version in #if compiler directivesSébastien Helleu
2015-01-01core: update copyright datesSébastien Helleu
2014-03-16core: fix compilation on SmartOS (bug #40981, closes #23)Sebastien Helleu
2014-01-09xfer: add support of IPv6 for DCC chat/file (patch #7992)Andrew Potter
2014-01-01core: update copyright datesSebastien Helleu
2013-09-19core: add support of secured data in proxy options username/password ↵Sebastien Helleu
(evaluate content)
2013-07-27core: add secured data with optional encryption in file sec.confSebastien Helleu
2013-05-24core: fix compilation error when gnutls is not foundSebastien Helleu
2013-05-22core: fix compilation warningsSebastien Helleu
2013-03-17core: fix typos in many comments and some stringsSebastien Helleu
2013-01-04core: fix compilation on OpenBSD (bug #38022)Simon Kuhnle
File "sys/uio.h" needs to be included explicitly for use of "struct iovec" on OpenBSD. Signed-off-by: Simon Kuhnle <simon@blarzwurst.de>
2013-01-01core: update copyright datesSebastien Helleu
2012-12-15core: move comments with description of C file to top of filesSebastien Helleu
2012-12-13core: reformat comments for functionsSebastien Helleu