summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Thadeu Lima de Souza Cascardo [Sun, 7 Jun 2009 16:55:10 +0000 (13:55 -0300)]
Use configuration default values.
When there is no value for a given configuration key, use default
values.
Thadeu Lima de Souza Cascardo [Sun, 7 Jun 2009 16:54:50 +0000 (13:54 -0300)]
Free strings allocated from reading the configuration file.
Thadeu Lima de Souza Cascardo [Sun, 7 Jun 2009 15:40:48 +0000 (12:40 -0300)]
Exit if not able to read and parse the configuration file.
Thadeu Lima de Souza Cascardo [Sun, 7 Jun 2009 15:35:20 +0000 (12:35 -0300)]
Exit if not able to create server.
If we cannot bind to the address, exit. Only log the listen address if
it is successfull.
Thadeu Lima de Souza Cascardo [Sat, 6 Jun 2009 22:32:15 +0000 (19:32 -0300)]
Added support for SSL when connecting to server.
Thadeu Lima de Souza Cascardo [Thu, 4 Jun 2009 15:10:24 +0000 (12:10 -0300)]
Initialize and deinitialize gnutls in main program.
Thadeu Lima de Souza Cascardo [Thu, 4 Jun 2009 15:03:10 +0000 (12:03 -0300)]
Detects GNUTLS and build with it.
Thadeu Lima de Souza Cascardo [Thu, 4 Jun 2009 14:53:40 +0000 (11:53 -0300)]
Added .gitignore to ignore built files.
This ignore built files, including files that were built using autoconf
and automake.
Thadeu Lima de Souza Cascardo [Thu, 4 Jun 2009 14:50:02 +0000 (11:50 -0300)]
Implement pretty simple bypass client-server hook.
We no longer do any protocol detection. Instead, we assume that we have
a POP3 connection. We may use different server sockets for different
protocols in the future. This simple null hook always connect to a given
server and passes all bytes from one connection to the other.
Thadeu Lima de Souza Cascardo [Thu, 4 Jun 2009 14:10:51 +0000 (11:10 -0300)]
Changed some references from improxy to popproxy.
Since this is now a project about a POP3 proxy, and not a IM/XMPP proxy,
the project and program name, as well as the configuration filename, the
default port and the log init function name have been changed.
Thadeu Lima de Souza Cascardo [Thu, 4 Jun 2009 14:14:06 +0000 (11:14 -0300)]
Git works better when changes are not made when renaming.
This commit will not build, but it will allow us to track the history of
some renamed files better.
Thadeu Lima de Souza Cascardo [Thu, 4 Jun 2009 14:05:03 +0000 (11:05 -0300)]
Only daemonize right before running loop.
If we daemonize prematurely, the user may not see messages produced by
the options parser, for example. Now, --help works as intended.
Thadeu Lima de Souza Cascardo [Fri, 8 Dec 2006 20:07:22 +0000 (20:07 +0000)]
Changed private data for jabber connection to include SASL context
The private hook data for jabber connections, which consisted solely
of the iksemel (XML) parser, now includes GNU SASL context and
client/server sessions. Functions for creating and destroying the data
are provided.
Thadeu Lima de Souza Cascardo [Fri, 8 Dec 2006 20:03:18 +0000 (20:03 +0000)]
Detects GNU SASL
Detects GNU SASL using autoconf and builds with it.
Thadeu Lima de Souza Cascardo [Mon, 22 Sep 2008 18:31:34 +0000 (15:31 -0300)]
Removed autogenerated/copied file by automake
INSTALL file is copied/linked from automake. Since this is
autogenerated, it is not that interesting to keep it version-controlled.
Removing it.
Thadeu Lima de Souza Cascardo [Sat, 9 Dec 2006 02:48:52 +0000 (02:48 +0000)]
Identifies user authentication ID using SASL PLAIN mechanism
Identifies user authentication ID when user authenticates using SASL
PLAIN mechanism. It simply base64 decodes the first SASL message sent
by client.
Thadeu Lima de Souza Cascardo [Sat, 9 Dec 2006 01:33:11 +0000 (01:33 +0000)]
proxy advertises only SASL PLAIN mechanism if it is supported by server
If server supports SASL PLAIN mechanism, instead of advertising all
supported mechanisms to client, the proxy advertises only PLAIN. This
way, client is forced to use PLAIN. If server does not support or
allow use of PLAIN mechanism, proxy announces all of them. In the
future, it will announce only PLAIN and use whichever mechanism is
safer in the path from proxy to server.
Thadeu Lima de Souza Cascardo [Thu, 30 Nov 2006 23:23:22 +0000 (23:23 +0000)]
Fixed warning with a missing function declaration
jabber_new_start is used in two files and was not declared in a
header.
Thadeu Lima de Souza Cascardo [Fri, 20 Oct 2006 15:55:45 +0000 (15:55 +0000)]
Filter TLS support from server
TLS support from server is not communicated to the client. Then,
clients requesting TLS will not try to stablish a chypered connection,
which the proxy wouldn't be able to filter.
Thadeu Lima de Souza Cascardo [Fri, 20 Oct 2006 15:27:00 +0000 (15:27 +0000)]
Removed unused variable
Removed unused variable in function jabber_new_start.
Thadeu Lima de Souza Cascardo [Fri, 20 Oct 2006 01:56:12 +0000 (01:56 +0000)]
Fixed leaks when a connection was closed
When one side of the connection was closed, the other side would still
be connected and no memory would be released. To avoid loops,
deadlocks or leaks, the peer reference should be to the hook and not
to the connection/socket only.
Thadeu Lima de Souza Cascardo [Fri, 20 Oct 2006 01:49:18 +0000 (01:49 +0000)]
Server side connection parses xml using a new written handler
A new handler similar to iks_stream was written, because iks_stream
handles SASL itself, blocking the parser when fed with server-side
xml.
The server-side connection parses its xml too now, given opportunity
for filters for data that comes from the server.
Thadeu Lima de Souza Cascardo [Tue, 17 Oct 2006 23:09:01 +0000 (23:09 +0000)]
Update TODO
Added item for TODO about how to deal with TLS and some clients.
Thadeu Lima de Souza Cascardo [Wed, 27 Sep 2006 00:28:26 +0000 (00:28 +0000)]
Documentation files
Usual documentation files for every software release, including TODO.
Thadeu Lima de Souza Cascardo [Wed, 27 Sep 2006 00:10:13 +0000 (00:10 +0000)]
Daemonized improxy
First thing improxy does is to detach from its controlling terminal,
going into daemon mode. Since there is no portable way to do that
(using GLib would be very nice), it calls the libc daemon function.
Thadeu Lima de Souza Cascardo [Sat, 23 Sep 2006 16:18:39 +0000 (16:18 +0000)]
Described program in README
Software description is in README.
Thadeu Lima de Souza Cascardo [Fri, 22 Sep 2006 22:16:27 +0000 (22:16 +0000)]
Removed some dispensable log messages
Every write and read to/from the server was being logged. Removed
those.
Thadeu Lima de Souza Cascardo [Fri, 22 Sep 2006 21:34:38 +0000 (21:34 +0000)]
Do not connect to server when new stream is sent
When a new stream is sent by the client due to SASL authentication or
TLS (although TLS is not dealt with right now), do not connect to the
server again. The new stream is sent to the server, anyway.
Thadeu Lima de Souza Cascardo [Fri, 22 Sep 2006 21:12:55 +0000 (21:12 +0000)]
Accept XML text declaration for Jabber initiating data
For the purpose of protocol detection, accepts XML text declaration as
indication of the Jabber protocol. Gaim, for example, uses that, and
XMPP Core recommends its use (SHOULD).
Thadeu Lima de Souza Cascardo [Fri, 22 Sep 2006 19:47:21 +0000 (19:47 +0000)]
Recognizes jabber server, connects to it and proxies data
The jabber server the client is connecting to is identified in the
data sent by it. It connects to this server and sends all data from
client to the server and all data from server to the client.
Thadeu Lima de Souza Cascardo [Fri, 22 Sep 2006 19:38:17 +0000 (19:38 +0000)]
Build with iksemel
iksemel will be used as XML parser and we will have to link to
it. Thence, we check for its presence, using pkg-config with autoconf.
Thadeu Lima de Souza Cascardo [Fri, 22 Sep 2006 19:35:20 +0000 (19:35 +0000)]
Autogenerated files by autoconf/automake/aclocal are precious
Files that are generated by autoconf, automake and aclocal should be
considered precious, not source. The other files required in a tree by
automake will, eventually, be included in the source (when they have
content).
Thadeu Lima de Souza Cascardo [Fri, 22 Sep 2006 18:31:29 +0000 (18:31 +0000)]
Keep reading from connection after read event
When read event of some connection is dispatched, request new reading.
Thadeu Lima de Souza Cascardo [Thu, 14 Sep 2006 16:49:03 +0000 (16:49 +0000)]
Applied the GPL to all source files
Applied the GPL to all C source files, including headers. Added
license as COPYING file.
Thadeu Lima de Souza Cascardo [Thu, 14 Sep 2006 15:52:58 +0000 (15:52 +0000)]
Detects Jabber protocol and hook to it
XMPP Stream is detected and another hook gets to handle the
connection, which will parse the protocol and connect to the
appropriate server.
Thadeu Lima de Souza Cascardo [Thu, 14 Sep 2006 15:17:28 +0000 (15:17 +0000)]
Connection events are handled by hooks
Every connection event (connect, close, read, write) is handled by a
hook, so we can plugin hooks for every protocol, including protocol
detection.
Thadeu Lima de Souza Cascardo [Wed, 13 Sep 2006 00:02:43 +0000 (00:02 +0000)]
Changed configuration file default path
Configuration filename default path is defined by configure script
prefix and sysconfdir, while building.
Thadeu Lima de Souza Cascardo [Wed, 13 Sep 2006 00:01:05 +0000 (00:01 +0000)]
Autoconfiscated
Autoconf and automake files. Only those files needed to generate the
other ones using aclocal, autoconf and automake.
Thadeu Lima de Souza Cascardo [Tue, 12 Sep 2006 23:54:26 +0000 (23:54 +0000)]
Configuration file may be specified in command line
The configuration filename may be specified in command line, which is
parsed using GOptionContext.
Thadeu Lima de Souza Cascardo [Tue, 12 Sep 2006 21:39:40 +0000 (21:39 +0000)]
Program messages are logged to syslog
Program messages are sent to syslog with LOG_DAEMON facility. They are
generated using GLib log support with a custom handler.
Thadeu Lima de Souza Cascardo [Tue, 12 Sep 2006 21:17:27 +0000 (21:17 +0000)]
Use GLib log facility instead of printf
printf and fprintf calls were replaced by g_log calls so log level is
used and we can get to use a handler that sends to syslog later.
Thadeu Lima de Souza Cascardo [Tue, 12 Sep 2006 19:16:40 +0000 (19:16 +0000)]
Fixed configuration file name
Fixed configuration file name in code to match previous renaming.
Thadeu Lima de Souza Cascardo [Tue, 12 Sep 2006 19:15:40 +0000 (19:15 +0000)]
Fixed memory leak for closed connections
Unrefs connections and close the other end when one end closes the
connection.
Thadeu Lima de Souza Cascardo [Tue, 12 Sep 2006 18:59:51 +0000 (18:59 +0000)]
Removed and renamed files
Removed pure socket implementation and renamed main files to match
project name.
Thadeu Lima de Souza Cascardo [Tue, 12 Sep 2006 18:57:17 +0000 (18:57 +0000)]
Connections to localhost:80 proxied by GNet
Connections are proxied to localhost:80 using GNet, in an equivalent
way to proxy.c which is marked to be removed.
Thadeu Lima de Souza Cascardo [Tue, 12 Sep 2006 17:47:17 +0000 (17:47 +0000)]
Proxies connections to jabber.org
One program proxies connections to jabber.org, but with no SRV
lookup. It uses pure sockets. The other program reads from a
configuration file the address and port to bind to, using GLib and
GNet.