summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2017-10-18Merge pull request #771 from paultownsend/issue-120LemonBoy
Add alternate_nick as a network-specific property
2017-10-14Changes based on comments in pull #771.Paul Townsend
2017-10-13Merge pull request #769 from horgh/horgh/error-check-server-connectailin-nemui
Set host to an empty string on error
2017-10-11Silence down a warning that would appear on "/away" in Capability mode.Edward Tomasz Napierala
2017-10-11Sort Capsicum headers.Edward Tomasz Napierala
2017-10-11Improve Capsicum stdio limits to fix terminal state on exit.Edward Tomasz Napierala
2017-10-11Add alternate_nick as a network-specific property.Paul Townsend
2017-10-11Bump default capsicum_port_max to 9999.Edward Tomasz Napierala
This is needed for servers like ssl.efnet.org, which, per default config, listen on 9999.
2017-10-10Always initialize the host stringWill Storey
This also removes a wordy comment
2017-10-09Set host to an empty string on errorWill Storey
While investigating #317, I noticed that it was possible we would access an uninitialized buffer due to failing to check the return value of net_ip2host(). This is done in several places. To make such uses safe, set the host buffer to an empty string on error. It is possible callers could be improved by handling the error in each spot, but this gives us some safety.
2017-10-07Limit capsicum rights to stdio.Edward Tomasz Napierala
This requires FreeBSD fix (https://reviews.freebsd.org/D12622) to work properly.
2017-10-05Merge pull request #754 from ailin-nemui/fix-752ailin-nemui
add new function to set the position in bytes
2017-10-05up abiailin-nemui
2017-09-15add new function to set the position in bytesailin-nemui
fixes #752
2017-09-15Merge pull request #755 from trasz/capsicumailin-nemui
Get rid of the zombies in Capsicum capability mode.
2017-09-12Get rid of the zombies in Capsicum capability mode.Edward Tomasz Napierala
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-09-11Restore compatibility with old OpenSSL versionsLemonBoy
Let's implement X509_STORE_up_ref on our own.
2017-09-11Increment the X509_STORE refcount during the connectionLemonBoy
OpenSSL doesn't increment the reference count when the store is assigned to a SSL_CTX.
2017-09-10Merge pull request #735 from trasz/capsicumailin-nemui
Add Capsicum support
2017-09-08Fix /back in Capsicum capability mode.Edward Tomasz Napierala
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-08-29Complete filenames ending with a slashLemonBoy
2017-08-10Merge pull request #737 from ailin-nemui/fix-733ailin-nemui
Revert "Merge pull request #452 from LemonBoy/terminfo-cup"
2017-08-10Don't error out on failure to load default certificate store.Edward Tomasz Napierala
This restores the previous behaviour. Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-08-09Merge pull request #738 from trasz/masterJoseph Bisch
Fix indentation; no functional changes.
2017-08-09Fix indentation; no functional changes.Edward Tomasz Napierala
(Take two.) Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-08-09Add back some ifdefs.Edward Tomasz Napierala
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-08-07Revert "Merge pull request #452 from LemonBoy/terminfo-cup"ailin-nemui
Fixes #733. The fix outlined in #452 had adverse effects for the following reason. The code removed the restoration path that would go on the code path from kill SIGTSTP. The problem is this: When Irssi is not running in a controlling parent (like a shell), the TSTP will in fact be ignored. In that case, there is no process sending a CONT either and thus the screen state never gets restored. Luckily, the patch in #457 is sufficient to prevent the problem in #450 (which lead to the development of #452). To that end, we do end up with potentially calling terminfo_cont twice but that is better than not calling it at all. This reverts commit b1ffd5f6472584aa3966746da9728c5afefcc4ce, reversing changes made to 9cb0419435d1ad331c1f55361a003d9682fae9a8.
2017-08-05Update /CONNECT and /SERVER syntax tags (-ssl -> -tls).Paul Townsend
2017-08-01Attempt to fix build by adding the forgotten header.Edward Tomasz Napierala
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-08-01Change the way we load default CA certificates so it works with Capsicum.Edward Tomasz Napierala
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-08-01Clean up includes a bit.Edward Tomasz Napierala
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-30Update copyrights.Edward Tomasz Napierala
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-30Hook up capsicum.h and fe-capsicum.h to autotools.Edward Tomasz Napierala
This hopefully fixes Travis build. Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-29Fix trailing slash handling for capsicum_irclogs_path.Edward Tomasz Napierala
This is mostly an anti-footshooting measure, but still. Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-29Cosmetics.Edward Tomasz Napierala
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-29Fix build without Capsicum.Edward Tomasz Napierala
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-29Add wrappers to reduce #ifdefs.Edward Tomasz Napierala
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-29Restrict port range available in capability mode.Edward Tomasz Napierala
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-29Working autolog.Edward Tomasz Napierala
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-29Working /log and /rawlog.Edward Tomasz Napierala
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-29Fix warnings.Edward Tomasz Napierala
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-29Prevent the user from calling "/capsicum enter" twice.Edward Tomasz Napierala
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-29Make DNS work in capability mode.Edward Tomasz Napierala
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-29Reorder functions.Edward Tomasz Napierala
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-29Config file support for "capsicum" parameter.Edward Tomasz Napierala
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-29/connect works - although only with IP addresses.Edward Tomasz Napierala
2017-07-29Rename to "/capability enter" and "/capability status".Edward Tomasz Napierala
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-29Add capability mode error/success messages.Edward Tomasz Napierala
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-29Implement /cap_enter.Edward Tomasz Napierala
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
2017-07-29Consistency: use FALSE instead of 0.Edward Tomasz Napierala
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>