From e0749025f259754aa031d997457a308686136909 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Sat, 19 Feb 2011 18:55:51 +0100 Subject: Improve protocol robustness and invoke user callbacks. All aborts are removed, as well as all asserts which aren't programming errors. When an invalid packet is received, the connection is closed, as per draft-ietf-radext-tcp-transport-08 (2.6.4). Use new rs_debug() macro rather than fprintf() for debug printouts. Coding style overhaul. --- lib/err.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/err.c') diff --git a/lib/err.c b/lib/err.c index d111115..a7ddeb9 100644 --- a/lib/err.c +++ b/lib/err.c @@ -21,12 +21,12 @@ static const char *_errtxt[] = { "bad hostname or port", /* 7 RSE_BADADDR */ "no peer configured", /* 8 RSE_NOPEER */ "libevent error", /* 9 RSE_EVENT */ - "connection error", /* 10 RSE_CONNERR */ + "socket error", /* 10 RSE_SOCKERR */ "invalid configuration file", /* 11 RSE_CONFIG */ "authentication failed", /* 12 RSE_BADAUTH */ "internal error", /* 13 RSE_INTERNAL */ "SSL error", /* 14 RSE_SSLERR */ - "ERR 15", /* RSE_ */ + "invalid packet", /* 15 RSE_INVALID_PKT */ "ERR 16", /* RSE_ */ "ERR 17", /* RSE_ */ "ERR 18", /* RSE_ */ -- cgit v1.1