Rename most 'package' to 'message'.
[libradsec.git] / lib / err.c
index e318047..19e1f33 100644 (file)
--- a/lib/err.c
+++ b/lib/err.c
@@ -1,5 +1,5 @@
 /* Copyright 2010, 2011 NORDUnet A/S. All rights reserved.
-   See the file COPYING for licensing information.  */
+   See LICENSE for licensing information.  */
 
 #if defined HAVE_CONFIG_H
 #include <config.h>
@@ -28,7 +28,7 @@ static const char *_errtxt[] = {
   "authentication failed",                     /* 12 RSE_BADAUTH */
   "internal error",                            /* 13 RSE_INTERNAL */
   "SSL error",                                 /* 14 RSE_SSLERR */
-  "invalid packet",                            /* 15 RSE_INVALID_PKT */
+  "invalid message",                           /* 15 RSE_INVALID_MSG */
   "connect timeout",                           /* 16 RSE_TIMEOUT_CONN */
   "invalid argument",                          /* 17 RSE_INVAL */
   "I/O timeout",                               /* 18 RSE_TIMEOUT_IO */
@@ -56,6 +56,8 @@ static const char *_errtxt[] = {
   "response from the wrong source address",    /* 40 RSE_INVALID_RESPONSE_SRC */
   "no packet data",                            /* 41 RSE_NO_PACKET_DATA */
   "vendor is unknown",                         /* 42 RSE_VENDOR_UNKNOWN */
+  "invalid credentials",                        /* 43 RSE_CRED */
+  "certificate validation error",               /* 44 RSE_CERT */
 };
 #define ERRTXT_SIZE (sizeof(_errtxt) / sizeof(*_errtxt))