aboutsummaryrefslogtreecommitdiff
path: root/dpid/dpid.c
AgeCommit message (Collapse)Author
2025-01-17Print error if dpi_dir cannot be openedRodrigo Arias Mallo
On cases where the system directory cannot be opened, dpid will not load the builtin plugins causing Dillo to fail to work properly with file: or data: URLs. Reporting a failure to open the directory allows users to determine the cause of the problem. See: https://github.com/dillo-browser/dillo/issues/337
2024-08-07Avoid INADDR_LOOPBACK as it is an extensionRodrigo Arias Mallo
Instead use inet_addr("127.0.0.1") which is POSIX 2001 and also more clear. Reviewed-by: dogma
2024-08-07Make Dillo C99 standard compliantRodrigo Arias Mallo
Reviewed-by: dogma
2024-03-28Handle .exe extension in Windows for dpisRodrigo Arias Mallo
On Cygwin the binaries have the ".exe" extension, so the logic to detect dpi files has to take it into account when scanning the dpi_dir. The extension DPI_EXT is defined to ".dpi" or ".dpi.exe" depending on the platform extension discovered by autoconf. Similarly, the dpidrc configuration file is also configured to match the name of the DPI binaries. See: https://github.com/cygwinports-extras/dillo/blob/master/3.0.2-exeext.patch Fixes: https://github.com/dillo-browser/dillo/issues/105
2016-07-12cppcheck: Fix Resource leak: dpidrc_stream (not closed on error condition)Jorge Arellano Cid
2013-01-09Refactored FD close calls into a single new dClose() dlib function [p37sitdu]Jorge Arellano Cid
2012-12-07rm unused variable usr_srv_nump37sitdu
2011-11-11locale-independent ASCII character case handlingcorvid
Basically, I and i are different letters in Turkic languages, and this causes problems for str(n)casecmp and toupper/tolower in these locales when dillo is dealing with ASCII.
2010-03-01fix dpid line leakcorvid
2010-02-16mergeJorge Arellano Cid
2010-02-16Fix a race condition for "dpid stop" command.Jorge Arellano Cid
2010-02-10call dpid cleanup handler on SIGHUPJohannes Hofmann
Depending on the system dpid can get a SIGHUP on shutdown before it will receive SIGTERM / SIGKILL from init. Make sure we also cleanup in this case so that ~/.dillo/dpid_comm_keys is removed on reboot.
2010-02-09suppress unused parameter warningJohannes Hofmann
This solution was pointed out by corvid and Jorge.
2010-02-08remove ~/.dillo/dpid_comm_keys on exit of dpidJohannes Hofmann
This avoids that dillo instances connect to stale ports after dpid is no longer running (e.g. after a reboot). This is mainly a problem if the machine is configured to silently ignore connection attempts to unused ports (net.inet.tcp.blackhole=1 on *BSD). http://lists.auriga.wearlab.de/pipermail/dillo-dev/2010-January/007247.html
2010-01-13use TCP_NODELAY for DPI communicationJohannes Hofmann
2009-12-10msgcorvid
2009-11-01Removed the write/fwrite mix in dpip. Introduced a_Dpip_dsh_trywrite()Jorge Arellano Cid
Several cleanups and more error handling sprinkled all over too.
2009-11-01Convert dpid, file dpi and cookies dpi to dsh APIJorge Arellano Cid
cookies: convert to dsh API (with auth) file dpi: convert to dsh API (with auth) dpid: convert to dsh API (with auth) handle EINTR in connect(), authenticated DpiBye cmd
2009-11-01s/retval/ret/gJorge Arellano Cid
2009-11-01Introduce basic shared-secret-based authenticationJorge Arellano Cid
2009-11-01Switch the DPI framework from Unix sockets to Internet socketsJorge Arellano Cid
Initially meant for MINIX, but in the process several bugs were fixed, the code restructured, added more error handling and improved in general. In the future we may go back to UDS, but the cleanup gains will remain.
2009-07-17Added a_Dpip_get_attr_l() to DPIP's APIJorge Arellano Cid
2009-07-13Remove system includes for dpidJorge Arellano Cid
2009-06-26Removed compiler warnings for unused return valuesMichal Nowak newman x
2009-04-28Refactor the preferences parserTim Nieradzik, Jorge Arellano Cid
2009-03-02Updated the GPL copyright note in the source filesDetlef Riekenberg
2009-02-09whitespace cleanup: 's/ +$//g'Jorge Arellano Cid
2008-11-05- Cleaned up and normalized D_SUN_LEN usage.jcid
2008-09-30- s/todo:/TODO:/gjcid
2008-09-14- Made several cleanups according to compiler warnings with "-W -Wall".jcid
2008-01-02- Removed a warning in dpi by adding a mkfname function.jcid
2007-12-31Implemented the SELECT element in FORMS!jcid
2007-12-06 - * Improved the dpi framework. Now dpi-programs can be specified in dpidrc,jcid
and there's no need to touch dillo's sources to add new dpi services. Just make your dpi program, add a dpidrc line and play with it!
2007-10-14Fixed a problem with locally-installed dpis.jcid
2007-10-07Initial revisionjcid