aboutsummaryrefslogtreecommitdiffstats
path: root/libglouglou
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2012-11-29 22:59:31 +0100
committerLaurent Ghigonis <laurent@p1sec.com>2012-11-29 22:59:31 +0100
commit8e7e92c1f5a771d21e4069b4aef4de0fc24dcd46 (patch)
tree9c719ca6e04087c64b66b24cc770974c99cf9090 /libglouglou
parentdon't go into packet decoding if the user did not set a handle_packet callback. (diff)
downloadglouglou-8e7e92c1f5a771d21e4069b4aef4de0fc24dcd46.tar.xz
glouglou-8e7e92c1f5a771d21e4069b4aef4de0fc24dcd46.zip
add security mention when starting server or creating a client :
"for security, do not set handle_packet if you don't need it"
Diffstat (limited to 'libglouglou')
-rw-r--r--libglouglou/libglouglou.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libglouglou/libglouglou.c b/libglouglou/libglouglou.c
index 275e033..ce23e1a 100644
--- a/libglouglou/libglouglou.c
+++ b/libglouglou/libglouglou.c
@@ -33,6 +33,7 @@ int pkt_getsize(struct gg_packet *);
/*
* start a server
+ * for security, do not set handle_packet if you don't need it.
*/
struct gg_server *
gg_server_start(struct event_base *ev_base, char *ip, int port,
@@ -225,6 +226,7 @@ user_send(struct gg_user *usr, void *data, int size)
/*
* connect to a server
+ * for security, do not set handle_packet if you don't need it.
*/
struct gg_client *
gg_client_connect(struct event_base *ev_base, char *ip, int port,