Mike Blumenkrantz
39467c29b6
giant patch refactoring ecore-con-url from bluezery <opowel@gmail.com>
...
will it blend?!
SVN revision: 65888
2011-12-05 06:08:46 +00:00
Mike Blumenkrantz
6ec1250a4d
redo ecore-con shutdown to fix crashes if people are stupid and call ecore_con_shutdown() while servers exist and main loop is still running
...
SVN revision: 65036
2011-11-11 02:44:16 +00:00
Cedric BAIL
05d8a9cf3c
ecore: improve ecore_con speed by using mempool.
...
SVN revision: 64814
2011-11-06 12:26:00 +00:00
Mike Blumenkrantz
48bb4c6252
url of ecore-con-url is now stringshared
...
SVN revision: 61607
2011-07-23 03:17:57 +00:00
Mike Blumenkrantz
9d235b3fc7
switch over all buffers to use binbufs
...
SVN revision: 61423
2011-07-16 13:07:39 +00:00
Mike Blumenkrantz
58d3ee0924
unify more event handling, fix a little formatting
...
SVN revision: 61025
2011-07-05 00:06:27 +00:00
Mike Blumenkrantz
3bde9147fb
apparently SSL_set_verify with SSL_VERIFY_PEER is NOT sufficient for validating a certificate as its man page implies. good thing the correct way is properly docu...right. openssl. riiiiiiiiiggghhht.
...
+ecore_con_ssl_server_verify_basic for checking a cert against its hostname
SVN revision: 60673
2011-06-25 08:39:07 +00:00
Mike Blumenkrantz
d932f0b0c5
ecore_con_server_timeout_g/set now apply to client-type servers
...
CAN'T SLEEP
MUST HACK
SVN revision: 60445
2011-06-17 11:16:50 +00:00
Mike Blumenkrantz
64731e1dc9
+ecore_con_ssl_server_upgrade
...
+ecore_con_ssl_client_upgrade
+ECORE_CON_EVENT_SERVER_UPGRADE
+ECORE_CON_EVENT_CLIENT_UPGRADE
new functions for upgrading an existing plaintext connection to SSL/TLS, as seen in STARTTLS and my nightmares
SVN revision: 60359
2011-06-15 18:58:34 +00:00
Vincent Torri
3e9bc8fddd
Ecore: ecore_con : make ecore_con work on Windows
...
The ecore_con module needed a port of the local connections
with named pipes. The other connections (TCP, UDP) are using
BSD sockets, which are also used on Windows.
No abstract sockets on Windows.
NB: Should I backport that commit to 1.0 ?
SVN revision: 59385
2011-05-14 17:52:30 +00:00
Mike Blumenkrantz
daafddb571
implement full event-driven error messaging api for all non-curl ecore_con
...
docs are in the header, happy birthday cedric
SVN revision: 56894
2011-02-10 08:49:23 +00:00
Carsten Haitzler
dca85251b0
dns async lookup fix - if u del svr before dns lookup done
...
SVN revision: 56254
2011-01-21 10:01:04 +00:00
Mike Blumenkrantz
2747a8a86b
optimization pass #1 : 5% server speed increase
...
only get client ip addr when ecore_con_client_ip_get() is called, always stringshare ip addresses
SVN revision: 54612
2010-11-16 21:32:50 +00:00
Cedric BAIL
515f06978b
* ecore: time to cleanup ecore_con_url time.
...
Patch by Patch by Raphael Kubo da Costa <kubo@profusion.mobi>
As discussed on the development mailing list, we should accept a
double instead of a time_t for consistency with the rest of the API.
Some apidox has been added too, and as a result
ECORE_CON_URL_TIME_LASTMOD has been removed, since it does not make
much sense (it is an HTTP response header).
SVN revision: 53572
2010-10-18 16:39:12 +00:00
Cedric BAIL
7100d4ac62
* ecore: remove now useless structure.
...
Patch by Raphael Kubo da Costa <kubo@profusion.mobi>
SVN revision: 53570
2010-10-18 13:49:06 +00:00
Mike Blumenkrantz
abad9a5eb3
clear out the _try series of functions because they're useless
...
SVN revision: 52985
2010-10-02 21:13:56 +00:00
Mike Blumenkrantz
b64b0b3ac9
first part of ssl rerererewrite: split functions, move stuff out of prepare(), and add verification for gnutls clients
...
SVN revision: 52837
2010-09-28 03:16:08 +00:00
Mike Blumenkrantz
da50c7b57d
add session ticket support for gnutls, also add extremely detailed handshake error messages
...
SVN revision: 52675
2010-09-24 06:54:49 +00:00
Mike Blumenkrantz
60b4269b5f
yet another ecore_con overhaul!
...
*internal function rename
*******finally fix ssl handshaking to be non-blocking
SVN revision: 52665
2010-09-24 04:15:42 +00:00
Mike Blumenkrantz
f617346761
finally. fix. openssl. again.
...
SVN revision: 52613
2010-09-23 00:16:42 +00:00
Mike Blumenkrantz
74d035df0b
prefer stronger anonymous client encryption
...
also some progress on openssl that does nothing except make servers take forever to start
SVN revision: 52606
2010-09-22 22:06:49 +00:00
Mike Blumenkrantz
fb977d72c4
implement functions to time out client connections to our server
...
*set/get default idle timeout of clients*
+ecore_con_server_timeout_set
+ecore_con_server_timeout_get
*set/get idle timeout of a client*
+ecore_con_client_timeout_set
+ecore_con_client_timeout_get
*get connection uptime of a client/server*
+ecore_con_client_uptime_get
+ecore_con_server_uptime_get
*fix giant ssl server memory leak*
SVN revision: 52564
2010-09-22 04:48:09 +00:00
Mike Blumenkrantz
38188213cf
!@#$ it, just going to rewrite the whole damn thing:
...
*fix gnutls client/server implementations to use correct ciphers and free memory properly
*prevent lots of segvs
this message brought to you by gnu dicks
SVN revision: 52559
2010-09-22 00:10:10 +00:00
Mike Blumenkrantz
137da6826d
add cl->client_count member to prevent segv when counting a list that is actually null but hasn't been nulled
...
SVN revision: 52503
2010-09-20 19:31:11 +00:00
Mike Blumenkrantz
d1db6f1cf4
gnutls cleanup: only create diffie hellman bits on server init instead of for each client
...
overhead/blocking--
speed++
SVN revision: 52468
2010-09-19 19:25:47 +00:00
Mike Blumenkrantz
4239d5d67f
giant cleanups/rewrites which are unnoticeable to users:
...
*client->server renamed client->host_server to clarify ambiguity
*ecore_con_ssl_client_prepare.* killed off because it was useless and wrong
*openssl generates only one SSL_CTX per server now instead of a new one for each client, which is broken/unnecessary/wasteful
**as a result, certificate loading is now only done once
**additionally this will save a very large amount of memory and avoid unnecessary/broken refcounting
*ecore_con_ssl_server_prepare.* rewritten to actually be useful instead of just a lazy way to null pointers
**all SSL_CTX code now goes here^
*some formatting fixes
*internal function renames
SVN revision: 52422
2010-09-18 19:26:05 +00:00
Mike Blumenkrantz
f62bcf1ff1
switch private struct members from char bitfields to Eina_Bool bitfields
...
no noticeable difference
SVN revision: 52399
2010-09-18 06:30:13 +00:00
Mike Blumenkrantz
0bbca7c75d
fix cert support, split functions for client/server
...
note: crl checking and cert verification do not currently function
SVN revision: 50603
2010-07-28 18:25:46 +00:00
Mike Blumenkrantz
f0053045e4
add full ssl certificate support to ecore_con: call ecore_con_ssl_cert_add("/path/to/cert.pem") and then create the server object with the ECORE_CON_LOAD_CERT flag
...
also may have accidentally ruined the formatting on a couple files and started an hour-long discussion over efl formatting scripts to conceal the fact that I used uncrustify to reformat everything
SVN revision: 50529
2010-07-27 06:30:27 +00:00
Cedric BAIL
7726478790
* ecore: add ecore_con_lookup for dns request retrieval.
...
NOTE: ecore_con_info_get is now private has it can't be used outside of Ecore_Con.
SVN revision: 50425
2010-07-22 11:32:55 +00:00
Cedric BAIL
fbe9064310
* ecore: Ecore callback really should return Eina_Bool.
...
SVN revision: 49829
2010-06-24 16:15:56 +00:00
Hannes Janetzek
9dc6c78922
added fuction to send httposts created with curl formadd.
...
SVN revision: 48651
2010-05-06 20:18:39 +00:00
Vincent Torri
f7b7217437
remove ecore_con_dns
...
SVN revision: 47077
2010-03-09 12:57:38 +00:00
Cedric BAIL
534777a65a
* ecore_con: Fix UDP server when receiving both IPv4 and IPV6 packet.
...
SVN revision: 45663
2010-01-28 15:35:29 +00:00
Sebastian Dransfeld
8007e73077
Patch from Mathieu Taillefumier
...
I modified some hearder file in ecore to ease the cleanup of the private
header files in ecore. Each module has now a private header with its own
log color (eina_log related). I also created two private header files
for ecore_sdl and ecore_input for this purpose and corrected some typos
in the xlib_xcb private header file.
SVN revision: 44933
2010-01-07 00:30:05 +00:00
Vincent Torri
a2506a70f6
* put local code in its own file. It will be better
...
when i'll add the Windows XP code, rather than
plenty #ifdef in te code
* remove some extra EAPI in code and useless Ecore_Data.h
I've tested and it seems to work. If you see problems with
local connections, please report in that thread
SVN revision: 44888
2010-01-04 19:35:21 +00:00
Cedric BAIL
d8e1895350
* ecore: Use eina_log.
...
Patch from Mathieu Taillefumier.
SVN revision: 44637
2009-12-21 17:32:19 +00:00
Cedric BAIL
a8efb6d90d
* ecore_con: Fix use of ecore_con_client_data_{get/set} with UDP and
...
MCAST connexion.
Note: Please report any problem with Ecore_Con regarding UDP and
MCAST after this patch.
SVN revision: 44014
2009-11-27 14:36:43 +00:00
Cedric BAIL
8d908436c6
* ecore_con_url: Add a way to retrieve request response headers.
...
Patch from Andre Dieb <andre.martins@ee.ufcg.edu.br>.
SVN revision: 41951
2009-08-24 09:41:07 +00:00
Cedric BAIL
c7f13ac781
* ecore_con_url: Patch from Andre Dieb with a few modification.
...
SVN revision: 41699
2009-08-12 09:47:04 +00:00
Sebastian Dransfeld
48202c24bc
Misc cleanup.
...
- Don't use EAPI for internal functions.
- Add prototypes to header.
- Some compiler warnings.
SVN revision: 38150
2008-12-15 17:59:19 +00:00
Cedric BAIL
642d8686de
Remove ecore_hash and eina_hash use from ecore.
...
SVN revision: 38105
2008-12-11 13:55:47 +00:00
Cedric BAIL
6d2ca9c036
Add support for GNU TLS in ecore_con.
...
SVN revision: 37329
2008-10-30 15:26:11 +00:00
Sebastian Dransfeld
f0783945d9
* Declare function ecore_con_info_udp_listen in private header
...
* Remove unused variables
* Add paranthesis to remove ambiguity
SVN revision: 37157
2008-10-26 16:32:45 +00:00
Cedric BAIL
9ff9555cc7
Make IPv6 work.
...
Patch from Arnaud de Turckheim.
SVN revision: 36612
2008-10-13 11:24:52 +00:00
Cedric BAIL
632615fd1f
Fix entrance and perhaps exquisite too.
...
SVN revision: 36545
2008-10-09 12:30:19 +00:00
Carsten Haitzler
cad561706f
go back to svnrev 36473 for ecore_con - these ipv6 changes broke exquisite on boot - so unix sockets have been compromised somehow in the changes. cannot debug because system is stuck in boot and wont continue. narrowed down break to this change
...
SVN revision: 36540
2008-10-09 00:46:29 +00:00
Cedric BAIL
f3ace08723
More cleanup and export a replacement for ecore_con_dns_lookup.
...
SVN revision: 36497
2008-10-07 12:41:36 +00:00
Cedric BAIL
554ad88eff
Starting work for IPv6 support of ecore_con. Use getaddrinfo and getnameinfo instead of gethostbyname.
...
Patch from Arnaud de Turckheim.
SVN revision: 36475
2008-10-06 09:41:39 +00:00
Cedric BAIL
fb90b057e8
Patch from Quarium. Ecore_Con handle in progress connection with it.
...
SVN revision: 36380
2008-10-01 15:27:52 +00:00