Mike Blumenkrantz
75b958531d
compile fixes for sun compiler
...
SVN revision: 52877
2010-09-29 04:06:28 +00:00
Mike Blumenkrantz
f5f8a3c45d
DBG output
...
SVN revision: 52875
2010-09-29 03:52:32 +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
a46d1d564c
attempt to rehandshake more frequently to avoid unnecessary looping
...
SVN revision: 52713
2010-09-25 04:22:10 +00:00
Mike Blumenkrantz
0d535058a9
implement ssl rehandshakes
...
convert bool variable to bool
fix bug where ssl read/write could improperly result in disconnect
SVN revision: 52710
2010-09-25 03:02:10 +00:00
Mike Blumenkrantz
da4dcea34f
fix events for async handshaking
...
SVN revision: 52672
2010-09-24 05:57:03 +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
Vincent Torri
3fd0a6fb08
remove whitespaces
...
SVN revision: 52569
2010-09-22 08:03:38 +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
ad3ecd489a
ecore_con_url_destroy -> ecore_con_url_free
...
also some small function rearranging
SVN revision: 52534
2010-09-21 06:49:07 +00:00
Mike Blumenkrantz
fdadea7eca
ecore_con_server_connected_get now returns Eina_Bool
...
SVN revision: 52525
2010-09-21 01:48:46 +00:00
Mike Blumenkrantz
e56789f77e
This is the Doxygen Police! If you committed any of these lines, accept your public shaming!
...
SVN revision: 52513
2010-09-20 20:52:15 +00:00
Mike Blumenkrantz
40396f6867
doxy todo--
...
SVN revision: 52509
2010-09-20 20:12:17 +00:00
Mike Blumenkrantz
c578a955ae
fix obscure error case where CLIENT_DEL event is not generated after a client ssl pings ecore's server and disconnects immediately after handshake
...
SVN revision: 52504
2010-09-20 19:32:37 +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
d28a6dd5d6
formatting, switch lost_client to bool
...
SVN revision: 52501
2010-09-20 18:52:52 +00:00
Mike Blumenkrantz
5775219503
check return of ssl_server_prepare
...
SVN revision: 52423
2010-09-18 19:29:43 +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
f8d56a023f
a loooooooot of outdents and reformatting
...
SVN revision: 52397
2010-09-18 06:06:05 +00:00
Mike Blumenkrantz
3736856f82
stop the indenting and line wrapping madness!!!!!!!
...
SVN revision: 52394
2010-09-18 05:30:16 +00:00
Mike Blumenkrantz
8cd87afb04
outdent for readability
...
SVN revision: 52393
2010-09-18 04:59:11 +00:00
Mike Blumenkrantz
8db37b8518
formatting
...
SVN revision: 52390
2010-09-18 01:20:25 +00:00
Mike Blumenkrantz
833c0d19a9
doxy clarification
...
SVN revision: 51694
2010-08-28 10:01:20 +00:00
Nicholas Hughart
7afd0b7173
Add the following functions to Ecore_Con API:
...
ecore_con_server_name_get
ecore_con_server_port_get
SVN revision: 51670
2010-08-27 05:16:00 +00:00
Lucas De Marchi
5a8a8c9014
Convert (hopefully) all comparisons to NULL
...
Apply badzero.cocci, badnull.coci and badnull2.cocci
This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:
code before patch ||code after patch
===============================================================
return a == NULL; return !a;
return a != NULL; return !!a;
func(a == NULL); func(!a);
func(a != NULL); func(!!a);
b = a == NULL; b = !a;
b = a != NULL; b = !!a;
b = a == NULL ? c : d; b = !a ? c : d;
b = a != NULL ? c : d; b = a ? c : d;
other cases:
a == NULL !a
a != NULL a
SVN revision: 51487
2010-08-21 13:52:25 +00:00
Lucas De Marchi
0a4617ae38
FORMATTING
...
* Remove vim modelines:
find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;
* Remove leading blank lines:
find . -name '*.[cxh]' -exec sed -i '/./,$!d'
If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0
SVN revision: 50816
2010-08-04 16:57:32 +00:00
Mike Blumenkrantz
5d52fce3f6
rrrrrrrrrrrrrr stupid enum!
...
SVN revision: 50689
2010-07-30 17:03:34 +00:00
Mike Blumenkrantz
21a7365572
dropping my life to fix previously broken mess so people will stop complaining
...
SVN revision: 50663
2010-07-29 23:42:32 +00:00
Mike Blumenkrantz
fae76ddd77
correctly use & to detect server type instead of ==
...
SVN revision: 50630
2010-07-29 01:42:43 +00:00
Mike Blumenkrantz
c39514b9be
reorder functions, redo doxy, make a not so obvious null pointer more obvious for future readers
...
SVN revision: 50627
2010-07-29 00:27:15 +00:00
Mike Blumenkrantz
920c508d86
these functions return a const char *, so they should actually return a const char *
...
SVN revision: 50622
2010-07-28 22:32:39 +00:00
Mike Blumenkrantz
1b41ba0fb1
forgot to put some doxy in groups
...
SVN revision: 50620
2010-07-28 22:23:14 +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
Mike Blumenkrantz
021fe34df8
big doxy update
...
SVN revision: 50526
2010-07-27 01:00:24 +00:00
Mike Blumenkrantz
3e3c256e0d
doxy fixes grrrrrrrrrrrrrrrrrrrrrr
...
SVN revision: 50525
2010-07-27 00:10:40 +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
Carsten Haitzler
194fc4c4ac
fix cedric b0rk
...
SVN revision: 49569
2010-06-08 11:31:15 +00:00
Cedric BAIL
f3457b3bdf
* ecore_con: close connection when other side end it.
...
SVN revision: 49567
2010-06-08 11:08:43 +00:00
Carsten Haitzler
bba7aaba2a
quick - limit # of tries for reading... this means 1000% cpu usage...
...
but at least things dont hang.
SVN revision: 49566
2010-06-08 11:02:57 +00:00
Cedric BAIL
d76f881898
* ecore_con: improve error detection.
...
SVN revision: 49551
2010-06-07 13:05:49 +00:00
Carsten Haitzler
79f1448682
CEEEEEEEEEEEEEEEEEEEEEEEEDRIC! *spank*
...
SVN revision: 48907
2010-05-16 03:04:18 +00:00
Vincent Torri
f7b7217437
remove ecore_con_dns
...
SVN revision: 47077
2010-03-09 12:57:38 +00:00
Gustavo Sverzut Barbieri
dba2a95572
warnings--
...
Ecore now goes clean on -Wall -Wextra :-)
SVN revision: 46672
2010-02-28 23:27:47 +00:00
Vincent Torri
4d11d31e3d
* instead of including headers wrt to the OS, include them if
...
they are available
* compilation on Windows XP minimum only
SVN revision: 46338
2010-02-20 19:12:52 +00:00
Vincent Torri
3499767ddb
First steps towards the Windows port of ecore_con.
...
ecore_con_dns will be hard to port (fork+exec).
SVN revision: 46337
2010-02-20 18:01:50 +00:00
Boris Faure
fc415b4776
fix ecore_con on posix systems
...
SVN revision: 45866
2010-02-04 10:34:08 +00:00
Cedric BAIL
b7c8d2848a
* ecore_con: Fix ecore_con_client_ip_get with TCP and IPv6.
...
SVN revision: 45752
2010-01-31 11:58:37 +00:00