jelmer/loudmouth.git
16 years agoRun application handlers on stream error. master
Mikael Hallendal [Sun, 10 Jun 2007 16:14:31 +0000 (18:14 +0200)]
Run application handlers on stream error.

Patch from Owen Taylor that fixes LM-104 where application handlers weren't run on stream error.

It also fixes a problem where a variable is incorrectly overwritten.

16 years agoBumped version to 1.2.3
Mikael Hallendal [Sun, 10 Jun 2007 16:03:56 +0000 (18:03 +0200)]
Bumped version to 1.2.3

16 years agoAdded support for Gossip filetransfer patch.
Mikael Hallendal [Sun, 10 Jun 2007 16:03:38 +0000 (18:03 +0200)]
Added support for Gossip filetransfer patch.

Added lm_connection_get_full_jid and lm_connection_get_client_host.

17 years agoBumped the version to 1.2.2 v1.2.2
Mikael Hallendal [Sun, 29 Apr 2007 20:09:44 +0000 (22:09 +0200)]
Bumped the version to 1.2.2

17 years agoRemoved the synchronous example.
Mikael Hallendal [Sun, 29 Apr 2007 20:08:22 +0000 (22:08 +0200)]
Removed the synchronous example.

The synchronous API is being removed in the 2.0 branch so better remove it from here.

17 years agoCheck to see that the OpenSSL session is setup correctly. Fixes LM-88.
Mikael Hallendal [Sun, 29 Apr 2007 16:01:16 +0000 (18:01 +0200)]
Check to see that the OpenSSL session is setup correctly. Fixes LM-88.

If the SSL Context is not setup correctly the call to SSL_new will fail as well
causing SSL_set_bio to segfault. Added a check to see that the context is not
NULL and that the session is created properly.

17 years agoAdded disconnect error for resource conflict. Fixes LM-55.
Mikael Hallendal [Sun, 29 Apr 2007 12:16:02 +0000 (14:16 +0200)]
Added disconnect error for resource conflict. Fixes LM-55.

Added a disconnection reason for resource conflict (when another client
connects with the same resourc).

Patch from Martyn Russell.

17 years agoSignal back when connection immediately fails. Fixes LM-67.
Mikael Hallendal [Sun, 29 Apr 2007 11:22:36 +0000 (13:22 +0200)]
Signal back when connection immediately fails. Fixes LM-67.

If connection failed directly in lm_connection_open the failure was never
signalled back to the caller.

Patch from Senko Rasic.

17 years agoFree the open callback after stream is received.
Mikael Hallendal [Sun, 29 Apr 2007 09:24:47 +0000 (11:24 +0200)]
Free the open callback after stream is received.

Patch from Dimitur Kirov.

17 years agoRemoved the freeing of connect_data from _lm_connection_failed_with_error
Mikael Hallendal [Sat, 28 Apr 2007 10:55:40 +0000 (12:55 +0200)]
Removed the freeing of connect_data from _lm_connection_failed_with_error

As Owen points out in LM-97 the connect data will be freed by
connection_do_close which is called just above the check/freeing was done so it
will never trigger the free in this function anyway.

17 years agoDon't free the resolved addresses if they have already been freed. Fixed LM-96
Mikael Hallendal [Tue, 24 Apr 2007 17:42:00 +0000 (19:42 +0200)]
Don't free the resolved addresses if they have already been freed. Fixed LM-96

Patch from Senko Rasic

17 years agoRelease 1.2.1 v1.2.1
Mikael Hallendal [Sat, 24 Feb 2007 23:13:01 +0000 (00:13 +0100)]
Release 1.2.1

17 years agoUpdated requirements and obsoleted NEWS file.
Mikael Hallendal [Sat, 24 Feb 2007 23:12:51 +0000 (00:12 +0100)]
Updated requirements and obsoleted NEWS file.

17 years agoFixed %s in document examples. LM-10
Mikael Hallendal [Sat, 24 Feb 2007 06:55:13 +0000 (07:55 +0100)]
Fixed %s in document examples. LM-10

Use % for % in the example listings and changes & to &

17 years agoBump the GnuTLS requirement. Fixes LM-74.
Mikael Hallendal [Sat, 24 Feb 2007 06:36:12 +0000 (07:36 +0100)]
Bump the GnuTLS requirement. Fixes LM-74.

Now require GnuTLS 1.4.0 which is the version available in Ubuntu Edgy.

17 years agoSome tweaks while trying to solve LM-52.
Mikael Hallendal [Sat, 24 Feb 2007 06:09:48 +0000 (07:09 +0100)]
Some tweaks while trying to solve LM-52.

17 years agoCorrectly extract the server from a JID when resource is included.
Mikael Hallendal [Sat, 24 Feb 2007 03:07:54 +0000 (04:07 +0100)]
Correctly extract the server from a JID when resource is included.

If a full JID (including resource) was given to lm_connection_set_jid it wou
include the resource part when trying to connect to the server.

Patch from Matthias Quasthoff

17 years agoAdded to .gitignore
Mikael Hallendal [Sat, 24 Feb 2007 02:33:00 +0000 (03:33 +0100)]
Added to .gitignore

17 years agoAdded .gitignore
Mikael Hallendal [Thu, 22 Feb 2007 23:08:15 +0000 (00:08 +0100)]
Added .gitignore

17 years agoMerge branch 'master' of kenny.imendio.com:/var/git/public/projects/loudmouth into...
Mikael Hallendal [Sat, 24 Feb 2007 02:26:02 +0000 (03:26 +0100)]
Merge branch 'master' of kenny.imendio.com:/var/git/public/projects/loudmouth into loudmouth-1-2

17 years agoFree stream_id when freeing the connection.
Mikael Hallendal [Sat, 24 Feb 2007 02:22:53 +0000 (03:22 +0100)]
Free stream_id when freeing the connection.

Patch from Dafydd Harries.

17 years agoRemove commas at the end of enumeration lists in lm-ssl.h
Mikael Hallendal [Mon, 12 Feb 2007 15:37:19 +0000 (16:37 +0100)]
Remove commas at the end of enumeration lists in lm-ssl.h

17 years agoRemove commas at the end of enumeration lists in lm-ssl.h
Mikael Hallendal [Mon, 12 Feb 2007 15:37:19 +0000 (16:37 +0100)]
Remove commas at the end of enumeration lists in lm-ssl.h

17 years agoReadd a check that was missed when fixing LM-71.
Mikael Hallendal [Mon, 12 Feb 2007 15:35:38 +0000 (16:35 +0100)]
Readd a check that was missed when fixing LM-71.

17 years agoMerge branch 'master' of kenny.imendio.com:/var/git/public/projects/loudmouth into...
Mikael Hallendal [Mon, 12 Feb 2007 15:24:59 +0000 (16:24 +0100)]
Merge branch 'master' of kenny.imendio.com:/var/git/public/projects/loudmouth into loudmouth-1-2

17 years agoFix LM-71, read all incoming data at the same time.
Mikael Hallendal [Mon, 12 Feb 2007 15:08:08 +0000 (16:08 +0100)]
Fix LM-71, read all incoming data at the same time.

Instead of only reading one in buffer at a time and wait for another event from the event loop now read all data at the same time before returning to the event loop.

Fixes issue LM-71, http://developer.imendio.com/issues/browse/LM-71

17 years agoAdded .gitignore
Mikael Hallendal [Fri, 2 Feb 2007 14:22:27 +0000 (15:22 +0100)]
Added .gitignore

17 years agoAdded .gitignore
Mikael Hallendal [Fri, 2 Feb 2007 14:20:28 +0000 (15:20 +0100)]
Added .gitignore

17 years agoRelease 1.2.0
Mikael Hallendal [Fri, 2 Feb 2007 14:04:37 +0000 (15:04 +0100)]
Release 1.2.0

17 years ago2007-01-05 Mikael Hallendal <micke@imendio.com>
hallski [Fri, 5 Jan 2007 11:03:27 +0000 (11:03 +0000)]
2007-01-05  Mikael Hallendal  <micke@imendio.com>

* python/*: Removed. Yay SVN!

17 years agoupdated ChangeLog
hallski [Fri, 5 Jan 2007 11:01:46 +0000 (11:01 +0000)]
updated ChangeLog

17 years agoRemoved empty directories
hallski [Fri, 5 Jan 2007 11:00:06 +0000 (11:00 +0000)]
Removed empty directories

17 years agoRemoved old unused Mono bindings
hallski [Fri, 5 Jan 2007 10:58:12 +0000 (10:58 +0000)]
Removed old unused Mono bindings

17 years ago2006-12-23 Mikael Hallendal <micke@imendio.com>
hallski [Mon, 25 Dec 2006 21:48:31 +0000 (21:48 +0000)]
2006-12-23  Mikael Hallendal  <micke@imendio.com>

* Release 1.1.5

* NEWS:
* configure.ac:
- Updated for 1.1.5

17 years ago2006-12-06 Mikael Hallendal <micke@imendio.com>
hallski [Wed, 6 Dec 2006 18:42:48 +0000 (18:42 +0000)]
2006-12-06  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-ssl-gnutls.c: (_lm_ssl_begin):
- Fixed a warning on 64 bit alpha.
- Fixes LM-41.

17 years ago2006-11-17 Mikael Hallendal <micke@imendio.com>
hallski [Fri, 17 Nov 2006 00:22:12 +0000 (00:22 +0000)]
2006-11-17  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-connection.h:
- Removed a typo slash, reported by Dafydd Harries.
* loudmouth/lm-parser.c: (parser_error_cb), (lm_parser_parse):
- Don't free the parser in the parser callback.
- Patch from Sjoerd Simons.

17 years ago2006-11-14 Mikael Hallendal <micke@imendio.com>
hallski [Mon, 13 Nov 2006 22:55:10 +0000 (22:55 +0000)]
2006-11-14  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-connection.c:
(lm_connection_authenticate_and_block):
- Fixed a memory leak reported by Ganapati Kundapur.
- Fixes LM-66.

17 years ago2006-10-22 Richard Hult <richard@imendio.com>
hallski [Sun, 22 Oct 2006 16:48:08 +0000 (16:48 +0000)]
2006-10-22  Richard Hult  <richard@imendio.com>

* loudmouth/lm-connection.c (connection_do_close)
(lm_connection_send_with_reply_and_block):
- Check that we have the source before removing it and set the pointer
  to NULL.
- Fixes LM-60.

17 years ago2006-10-17 Mikael Hallendal <micke@imendio.com>
hallski [Mon, 16 Oct 2006 22:03:58 +0000 (22:03 +0000)]
2006-10-17  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-message-node.c: (lm_message_node_to_string):
- Small fixup of the previous LM-48 fix.

17 years ago2006-10-16 Mikael Hallendal <micke@imendio.com>
hallski [Mon, 16 Oct 2006 21:49:37 +0000 (21:49 +0000)]
2006-10-16  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-connection.c: (_lm_connection_succeeded),
(_lm_connection_failed_with_error), (connection_do_open),
(connection_do_close), (lm_connection_new):
- Keep a reference to LmConnectData and remove the source if connect
  is cancelled before the connection is open.
- Fixes LM-59.
* loudmouth/lm-message-node.c: (lm_message_node_to_string):
- Use GString to build message node XML.
- Escape the attribute values unless raw-mode is specified.
- Fixes LM-48.
- Patch from Dafydd Harries.

17 years ago2006-09-21 Mikael Hallendal <micke@imendio.com>
hallski [Thu, 21 Sep 2006 12:08:29 +0000 (12:08 +0000)]
2006-09-21  Mikael Hallendal  <micke@imendio.com>

* NEWS:
* configure.ac:
- Updated for 1.1.4

17 years agofixed the changelog
hallski [Thu, 21 Sep 2006 12:02:01 +0000 (12:02 +0000)]
fixed the changelog

17 years ago2006-09-21 Mikael Hallendal <micke@imendio.com>
hallski [Thu, 21 Sep 2006 11:45:40 +0000 (11:45 +0000)]
2006-09-21  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-connection.c: (_lm_connection_succeeded),
(_lm_connection_failed_with_error), (connection_buffered_write_cb),
(connection_do_close):
- Check that we find a resource before trying to destroy it.
- Fixes warning described in LM-50.

17 years ago2006-09-21 Mikael Hallendal <micke@imendio.com>
hallski [Thu, 21 Sep 2006 11:31:39 +0000 (11:31 +0000)]
2006-09-21  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-connection.c: (connection_connect_cb):
* loudmouth/lm-proxy.c: (_lm_proxy_connect_cb):
- Initiatilize len, patch from Richard Hult.
- Fixes LM-58.

17 years agodoc work
hallski [Thu, 14 Sep 2006 20:05:57 +0000 (20:05 +0000)]
doc work

17 years ago2006-09-13 Mikael Hallendal <micke@imendio.com>
hallski [Wed, 13 Sep 2006 13:14:13 +0000 (13:14 +0000)]
2006-09-13  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-connection.c: (connection_free):
- Unref the proxy if set, plugs a leak.
- Fixes LM-51.

17 years agouse time
hallski [Mon, 11 Sep 2006 19:19:30 +0000 (19:19 +0000)]
use time

17 years ago2006-09-11 Mikael Hallendal <micke@imendio.com>
hallski [Mon, 11 Sep 2006 19:14:23 +0000 (19:14 +0000)]
2006-09-11  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-utils.c: (_lm_utils_generate_id):
- Generate more unique IDs, fixes LM-56.

17 years ago2006-09-11 Mikael Hallendal <micke@imendio.com>
hallski [Sun, 10 Sep 2006 22:09:30 +0000 (22:09 +0000)]
2006-09-11  Mikael Hallendal  <micke@imendio.com>

* Release 1.1.3

17 years ago2006-09-11 Mikael Hallendal <micke@imendio.com>
hallski [Sun, 10 Sep 2006 22:04:21 +0000 (22:04 +0000)]
2006-09-11  Mikael Hallendal  <micke@imendio.com>

* configure.ac:
* NEWS:
- Updated for 1.1.3

17 years ago2006-09-10 Mikael Hallendal <micke@imendio.com>
hallski [Sun, 10 Sep 2006 12:24:09 +0000 (12:24 +0000)]
2006-09-10  Mikael Hallendal  <micke@imendio.com>

* configure.ac:
* loudmouth/Makefile.am:
* tests/Makefile.am:
* tests/parser-tests/*:
* tests/test-parser.c:
- Some more work on unit tests for the parser.

17 years ago2006-09-08 Mikael Hallendal <micke@imendio.com>
hallski [Fri, 8 Sep 2006 12:29:54 +0000 (12:29 +0000)]
2006-09-08  Mikael Hallendal  <micke@imendio.com>

* tests/Makefile.am:
* tests/test-parser.c:
- Added, base for parser unit tests.

17 years ago2006-09-06 Mikael Hallendal <micke@imendio.com>
hallski [Wed, 6 Sep 2006 14:48:17 +0000 (14:48 +0000)]
2006-09-06  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-ssl-openssl.c: (ssl_verify_certificate):
- Implemented.

17 years ago2006-09-01 Mikael Hallendal <micke@imendio.com>
hallski [Fri, 1 Sep 2006 14:01:48 +0000 (14:01 +0000)]
2006-09-01  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-connection.c: (lm_connection_new_with_context),
(lm_connection_send_raw):
* loudmouth/lm-message-handler.c: (lm_message_handler_new),
(lm_message_handler_is_valid):
* loudmouth/lm-message-node.c: (lm_message_node_add_child),
(lm_message_node_set_attribute), (lm_message_node_get_attribute),
(lm_message_node_get_child), (lm_message_node_find_child):
* loudmouth/lm-parser.c:
* loudmouth/lm-utils.c: (_lm_utils_hostname_to_punycode),
(lm_utils_get_localtime):
- Patch from Martyn to add argument checks all around.

17 years ago* examples/lm-send-async.c:
mr [Tue, 22 Aug 2006 23:33:06 +0000 (23:33 +0000)]
* examples/lm-send-async.c:
* examples/lm-send-sync.c:
* examples/test-lm.c: Make use of lm_connection_set_jid() and make
sure we only use the part before the '@' for the username when
authenticating, this means that these test clients will now work
with GoogleTalk.

17 years ago2006-08-22 Mikael Hallendal <micke@imendio.com>
hallski [Tue, 22 Aug 2006 17:57:59 +0000 (17:57 +0000)]
2006-08-22  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-message-node.c: (lm_message_node_to_string):
- Add a check that node isn't NULL.

17 years ago2006-08-04 Mikael Hallendal <micke@imendio.com>
hallski [Thu, 3 Aug 2006 22:13:02 +0000 (22:13 +0000)]
2006-08-04  Mikael Hallendal  <micke@imendio.com>

* acinclude.m4:
- Fix a auto* warning.
- Fixes LM-46.

17 years ago2006-08-03 Richard Hult <richard@imendio.com>
hallski [Thu, 3 Aug 2006 22:09:08 +0000 (22:09 +0000)]
2006-08-03  Richard Hult  <richard@imendio.com>

* loudmouth/lm-sha.c: Make the sha functions static so they are
not exposed to apps/libraries using loudmout.

17 years ago2006-08-01 Mikael Hallendal <micke@imendio.com>
hallski [Mon, 31 Jul 2006 23:14:32 +0000 (23:14 +0000)]
2006-08-01  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-ssl-gnutls.c: (_lm_ssl_read):
- EOF on 0 bytes read.
- Fixes LM-45.

17 years ago2006-06-27 Mikael Hallendal <micke@imendio.com>
hallski [Tue, 27 Jun 2006 13:28:40 +0000 (13:28 +0000)]
2006-06-27  Mikael Hallendal  <micke@imendio.com>

* Release 1.1.2

* configure.ac:
- Bumped to 1.1.2
* NEWS:
- Added news about 1.1.2

17 years ago2006-06-25 Mikael Hallendal <micke@imendio.com>
hallski [Sun, 25 Jun 2006 10:28:28 +0000 (10:28 +0000)]
2006-06-25  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-connection.c: (lm_connection_close):
- Patch from Martyn Russel
- Make sure that disconnect is signalled if the connection is closed
  during opening phase.
- Fixes LM-43

17 years ago2006-06-16 Mikael Hallendal <micke@imendio.com>
hallski [Fri, 16 Jun 2006 09:21:33 +0000 (09:21 +0000)]
2006-06-16  Mikael Hallendal  <micke@imendio.com>

* configure.ac:
* loudmouth-1.0.pc.in:
* loudmouth/Makefile.am:
- Add checks for libidn.
* loudmouth/lm-connection.c: (lm_connection_new),
(lm_connection_set_server):
* loudmouth/lm-proxy.c: (lm_proxy_set_server):
- Use the new function _lm_utils_hostname_to_punycode.
* loudmouth/lm-internals.h:
* loudmouth/lm-utils.c: (_lm_utils_hostname_to_punycode):
- Added function to support internationalised host names.
- Patch from Frederic Peters.
- Fixes LM-42.

17 years agobus hacking
hallski [Fri, 16 Jun 2006 08:51:48 +0000 (08:51 +0000)]
bus hacking

17 years ago2006-06-06 Mikael Hallendal <micke@imendio.com>
hallski [Tue, 6 Jun 2006 12:39:19 +0000 (12:39 +0000)]
2006-06-06  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-connection.c: (connection_free):
- Call lm_parser_free to actually free it.
* loudmouth/lm-parser.c: (lm_parser_free):
- Free up memory used by the parser.
- Fixes LM-39

17 years agoWIP
hallski [Tue, 6 Jun 2006 12:16:49 +0000 (12:16 +0000)]
WIP

17 years agosome more
hallski [Fri, 2 Jun 2006 23:54:29 +0000 (23:54 +0000)]
some more

17 years agoCommiting some work in progress
hallski [Fri, 2 Jun 2006 23:02:20 +0000 (23:02 +0000)]
Commiting some work in progress

17 years agostyling
hallski [Wed, 31 May 2006 21:05:11 +0000 (21:05 +0000)]
styling

17 years agoadded upcoming files lm-socket.[ch]
hallski [Sat, 27 May 2006 17:40:24 +0000 (17:40 +0000)]
added upcoming files lm-socket.[ch]

17 years ago2006-05-27 Mikael Hallendal <micke@imendio.com>
hallski [Sat, 27 May 2006 08:34:56 +0000 (08:34 +0000)]
2006-05-27  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-ssl-gnutls.c: (ssl_verify_certificate):
- Fixed an error with an uninitialized value.
- Fixes LM-35.

17 years ago2006-05-26 Mikael Hallendal <micke@imendio.com>
hallski [Fri, 26 May 2006 14:16:56 +0000 (14:16 +0000)]
2006-05-26  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-connection.c: (connection_free),
(connection_handle_message), (_lm_connection_failed_with_error),
(connection_auth_reply), (connection_stream_received),
(lm_connection_set_disconnect_function):
- Patch from Owen Taylor fixes two reentrancy problems.
- Fixes LM-37.

18 years ago2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski [Thu, 4 May 2006 13:15:25 +0000 (13:15 +0000)]
2006-04-19  Mikael Hallendal  <micke@imendio.com>

* Release 1.1.1

* Makefile.am: Added DISTCHECK_CONFIGURE_FLAGS
* configure.ac: Removed old gtk-doc cruft, only use GTK_DOC_CHECK now.
* loudmouth/Makefile.am: Added EXTRA_DIST.

18 years ago2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski [Wed, 19 Apr 2006 14:30:59 +0000 (14:30 +0000)]
2006-04-19  Mikael Hallendal  <micke@imendio.com>

* configure.ac:
- Move back to use the GTK_DOC_CHECK() macro.

* docs/reference/Makefile.am:
- Updated to newer format from gtk-doc (old one failed distcheck with
  new auto*).

18 years ago2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski [Wed, 19 Apr 2006 11:42:53 +0000 (11:42 +0000)]
2006-04-19  Mikael Hallendal  <micke@imendio.com>

* Landing a patch by Martyn Russell for Win32.

* configure.ac: Updated for Win32 work
* examples/*: Updated and improved.
* loudmouth/Makefile.am:
* loudmouth/lm-connection.c:
- Abstracted out the low level socket handling to lm-sock.[ch] to make
  this file clean from OS dependant socket code.
* loudmouth/lm-internals.h:
* loudmouth/lm-parser.c:
* loudmouth/lm-proxy.c:
* loudmouth/lm-sha.c:
* loudmouth/lm-utils.c:
- Win32 work
* loudmouth/lm-sock.[ch]:
- Network abstraction layer.

18 years ago2006-04-18 Mikael Hallendal <micke@imendio.com>
hallski [Tue, 18 Apr 2006 13:47:21 +0000 (13:47 +0000)]
2006-04-18  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-ssl-openssl.c: (_lm_ssl_begin):
- Fixed an issue reported by Martyn when using non-blocking sockets.

18 years ago2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski [Wed, 12 Apr 2006 14:37:15 +0000 (14:37 +0000)]
2006-04-12  Mikael Hallendal  <micke@imendio.com>

* autogen.sh:
* configure.ac:
* configure.in:
- Bumped the autoconf and automake requirements.
- Added support to compile with --with-ssl=gnutls|openssl|no. The
  default is to build against gnutls and you must explicitely tell that
  you don't want SSL support or configure will fail if you don't have
  GnuTLS (or building with --with-ssl=openssl).
* loudmouth/Makefile.am:
* loudmouth/lm-ssl-openssl.c:
- Added an OpenSSL backend. Currently doesn't verify certificates.

18 years ago2006-04-05 Mikael Hallendal <micke@imendio.com>
hallski [Wed, 5 Apr 2006 15:19:13 +0000 (15:19 +0000)]
2006-04-05  Mikael Hallendal  <micke@imendio.com>

* configure.in: Define HAVE_SSL which will be set if GnuTLS or OpenSSL
  is supported.
* loudmouth/Makefile.am:
* loudmouth/lm-connection.c:
* loudmouth/lm-internals.h:
* loudmouth/lm-ssl-base.[ch]:
* loudmouth/lm-ssl-generic.c:
* loudmouth/lm-ssl-gnutls.c:
* loudmouth/lm-ssl-internals.h: Took out the SSL functions from
  lm-internals.h
* loudmouth/lm-ssl.[ch]:
- Refactored the SSL stuff to make room for an OpenSSL implementation.
- lm-ssl-generic and lm-ssl-base contains the shared parts between the
  GnuTLS and the OpenSSL implementations. lm-ssl-gnutls.c will contain
  GnuTLS specifics and lm-ssl-openssl.c will contain OpenSSL.

18 years ago2006-04-05 Mikael Hallendal <micke@imendio.com>
hallski [Wed, 5 Apr 2006 13:19:47 +0000 (13:19 +0000)]
2006-04-05  Mikael Hallendal  <micke@imendio.com>

* Speed release of 1.0.3
* NEWS: Updated
* configure.in: Bumped to 1.0.3
* loudmouth/lm-ssl.c: (ssl_free), (ssl_func_always_continue):
- Build fix for building without SSL, thanks foser, LM-25.

18 years ago2006-04-05 Mikael Hallendal <micke@imendio.com>
hallski [Wed, 5 Apr 2006 09:30:53 +0000 (09:30 +0000)]
2006-04-05  Mikael Hallendal  <micke@imendio.com>

* NEWS: Updated for 1.0.2
* configure.in: Bumped version to 1.0.2

18 years ago2006-04-03 Mikael Hallendal <micke@imendio.com>
hallski [Mon, 3 Apr 2006 16:14:31 +0000 (16:14 +0000)]
2006-04-03  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-connection.c: (connection_free),
(_lm_connection_succeeded), (connection_buffered_write_cb),
(connection_output_is_buffered), (connection_setup_output_buffer),
(connection_do_close), (connection_do_write), (connection_send),
(lm_connection_new), (lm_connection_authenticate):
- Added an output buffer that will be enabled if the nonblocking write
  cannot be performed in one go (for large messages).
- Fixes LM-17.
* loudmouth/lm-internals.h:
* loudmouth/lm-ssl.c: (ssl_func_always_continue), (_lm_ssl_send),
(lm_ssl_new):
- Added a default SSL function that will always continue, this will
  be used if NULL is passed in as SSL function to lm_ssl_new.

18 years ago2006-03-20 Mikael Hallendal <micke@imendio.com>
hallski [Mon, 20 Mar 2006 14:54:06 +0000 (14:54 +0000)]
2006-03-20  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-connection.c:
(connection_do_open): Fixed up some of the error codes replied.
(lm_connection_open_and_block):
- Set the error if connection fails.
- Fixes LM-15.

18 years ago2006-03-20 Mikael Hallendal <micke@imendio.com>
hallski [Mon, 20 Mar 2006 14:19:13 +0000 (14:19 +0000)]
2006-03-20  Mikael Hallendal  <micke@imendio.com>

* Makefile.am:
* acinclude.m4:
* configure.in:
* tests/.cvsignore:
* tests/Makefile.am:
* tests/test-objects.[ch]:
- Started to add support for the Check unit test framework.

18 years ago2006-03-20 Mikael Hallendal <micke@imendio.com>
hallski [Mon, 20 Mar 2006 10:53:45 +0000 (10:53 +0000)]
2006-03-20  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-connection.c: Fixes LM-16.
(_lm_connection_failed_with_error):
- Call connection_do_close to remove sources.
(connection_do_close): Always set the connection state to CLOSED.

18 years ago2006-01-02 Mikael Hallendal <micke@imendio.com>
hallski [Mon, 2 Jan 2006 14:22:04 +0000 (14:22 +0000)]
2006-01-02  Mikael Hallendal  <micke@imendio.com>

* MAINTAINERS: Added

18 years ago2005-08-16 Mikael Hallendal <micke@imendio.com>
hallski [Tue, 16 Aug 2005 00:17:41 +0000 (00:17 +0000)]
2005-08-16  Mikael Hallendal  <micke@imendio.com>

* NEWS:
* configure.in:
- Release 1.0.1

* loudmouth/lm-connection.c: (connection_free):
- Unref context if it is set.

18 years ago2005-08-14 Mikael Hallendal <micke@imendio.com>
hallski [Sun, 14 Aug 2005 12:48:42 +0000 (12:48 +0000)]
2005-08-14  Mikael Hallendal  <micke@imendio.com>

* NEWS:
* configure.in:
- Version 1.0, yiiiha!

18 years ago2005-08-12 Mikael Hallendal <micke@imendio.com>
hallski [Fri, 12 Aug 2005 16:08:17 +0000 (16:08 +0000)]
2005-08-12  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-connection.c: (_lm_connection_failed_with_error):
- Set state to LM_CONNECTION_STATE_CLOSED if we failed to connect.
- Fixes LM-8.

18 years ago2005-08-12 Mikael Hallendal <micke@imendio.com>
hallski [Fri, 12 Aug 2005 09:51:26 +0000 (09:51 +0000)]
2005-08-12  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-connection.c:
(lm_connection_authenticate_and_block):
- Set state correctly.
- Fixes LM-7.
(lm_connection_send_with_reply_and_block):
- Check that connection is open before using it.
- Fixes LM-6.

18 years ago2005-07-30 Mikael Hallendal <micke@imendio.com>
hallski [Sat, 30 Jul 2005 19:54:02 +0000 (19:54 +0000)]
2005-07-30  Mikael Hallendal  <micke@imendio.com>

* autogen.sh:
* configure.in:
* loudmouth/lm-connection.c: (connection_add_watch):
- Gtk-doc fixes.

18 years ago* loudmouth/lm-connection.c (lm_connection_set_ssl):
mr [Sat, 9 Jul 2005 09:30:04 +0000 (09:30 +0000)]
* loudmouth/lm-connection.c (lm_connection_set_ssl):
- Error when trying to set up SSL knowing it is not supported.

18 years agoremoved c++ comment
hallski [Wed, 25 May 2005 09:43:05 +0000 (09:43 +0000)]
removed c++ comment

18 years ago2005-05-17 Mikael Hallendal <micke@imendio.com>
hallski [Mon, 16 May 2005 23:32:19 +0000 (23:32 +0000)]
2005-05-17  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-ssl.c:
* loudmouth/lm-connection.c:
* loudmouth/lm-proxy.c:
- Fixed some gcc 4.0 warnings.
* loudmouth/lm-ssl.[ch]: Made the API more consistent.
* examples/test-lm.c: Fixed some gcc 4.0 warnings.

18 years ago2005-05-13 Mikael Hallendal <micke@imendio.com>
hallski [Fri, 13 May 2005 19:27:54 +0000 (19:27 +0000)]
2005-05-13  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-ssl.c: (_lm_ssl_read):
- Try to fix LM-3 for real this time.

18 years ago2005-05-08 Mikael Hallendal <micke@imendio.com>
hallski [Sun, 8 May 2005 21:34:56 +0000 (21:34 +0000)]
2005-05-08  Mikael Hallendal  <micke@imendio.com>

* Release 0.90

* NEWS:
* configure.in:
- Updated for 0.90

18 years ago2005-05-05 Mikael Hallendal <micke@imendio.com>
hallski [Thu, 5 May 2005 19:12:31 +0000 (19:12 +0000)]
2005-05-05  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-connection.c:
(_lm_connection_succeeded):
- Don't unref io_channel here as well, already done in do_close.
- Fixes LM-5, reported by Daniel Lavalliere.
(connection_do_close):
- Set fd to -1 to be sure it's not used again.

18 years ago2005-05-05 Mikael Hallendal <micke@imendio.com>
hallski [Thu, 5 May 2005 19:07:15 +0000 (19:07 +0000)]
2005-05-05  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-ssl.c: (_lm_ssl_read):
- Don't accidently return a negative bytes_read.
- Fixes LM-3, reported by Daniel Lavalliere.

18 years ago2005-05-05 Mikael Hallendal <micke@imendio.com>
hallski [Thu, 5 May 2005 18:58:44 +0000 (18:58 +0000)]
2005-05-05  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-connection.c: (connection_free):
- Unref LmSSL when freeing connection. Reported by Daniel Lavalliere.
- Fixes LM-4.

19 years ago2005-04-24 Mikael Hallendal <micke@imendio.com>
hallski [Sun, 24 Apr 2005 11:47:48 +0000 (11:47 +0000)]
2005-04-24  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-connection.c: (connection_free):
- Free the incoming message queue, reported by Daniel Lavalliere.

19 years ago2005-04-24 Mikael Hallendal <micke@imendio.com>
hallski [Sun, 24 Apr 2005 11:40:16 +0000 (11:40 +0000)]
2005-04-24  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-connection.c: (_lm_connection_succeeded),
(_lm_connection_failed_with_error), (connection_connect_cb),
(connection_do_connect), (connection_do_close):
- Disconnect from the connect io-watch when connect is done.
- Based on a patch from Daniel Lavalliere.

19 years ago2005-04-18 Mikael Hallendal <micke@imendio.com>
hallski [Mon, 18 Apr 2005 16:44:25 +0000 (16:44 +0000)]
2005-04-18  Mikael Hallendal  <micke@imendio.com>

* loudmouth/lm-connection.c: (connection_free):
- Check if connection is opening as well and close it if it is.
- Fix suggested by Daniel Lavalliere.