Add RSE_INVAL.
authorLinus Nordberg <linus@nordu.net>
Mon, 28 Feb 2011 23:40:56 +0000 (00:40 +0100)
committerLinus Nordberg <linus@nordu.net>
Mon, 28 Feb 2011 23:40:56 +0000 (00:40 +0100)
lib/err.c
lib/include/radsec/radsec.h

index 1ad76a6..fe79040 100644 (file)
--- a/lib/err.c
+++ b/lib/err.c
@@ -28,7 +28,7 @@ static const char *_errtxt[] = {
   "SSL error",                 /* 14 RSE_SSLERR */
   "invalid packet",            /* 15 RSE_INVALID_PKT */
   "I/O timeout",               /* 16 RSE_IOTIMEOUT */
-  "ERR 17",                    /*  RSE_ */
+  "invalid argument",          /* 17 RSE_INVAL */
   "ERR 18",                    /*  RSE_ */
   "ERR 19",                    /*  RSE_ */
   "ERR 20",                    /*  RSE_ */
index 125d5cd..7fa5741 100644 (file)
@@ -22,6 +22,7 @@ enum rs_err_code {
     RSE_SSLERR = 14,           /* OpenSSL error.  */
     RSE_INVALID_PKT = 15,
     RSE_IOTIMEOUT = 16,
+    RSE_INVAL = 17,
     RSE_SOME_ERROR = 21,  /* Unspecified error.  Shouldn't happen.  */
 };