Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 2007 Pekka Riikonen
+ Copyright (C) 2007 - 2008 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
*/
-#include "silc.h"
+#include "silcruntime.h"
/* Get last error */
return;
}
- SILC_LOG_DEBUG(("Error: %s (%d)", silc_errno_string(error), error));
-
tls->error_reason[0] = '\0';
tls->error = error;
}
if (!tls)
return;
- SILC_LOG_DEBUG(("Error: %s (%d)", silc_errno_string(error), error));
-
tls->error_reason[0] = '\0';
tls->error = error;
}
silc_vsnprintf(tls->error_reason, sizeof(tls->error_reason), format, va);
va_end(va);
- SILC_LOG_DEBUG(("Error: %s (%d): %s", silc_errno_string(error), error,
- tls->error_reason));
-
tls->error = error;
}
silc_vsnprintf(tls->error_reason, sizeof(tls->error_reason), format, va);
va_end(va);
- SILC_LOG_DEBUG(("Error: %s (%d): %s", silc_errno_string(error), error,
- tls->error_reason));
-
tls->error = error;
}
"Interrupted",
"Not valid",
"Limit reached",
+ "Syntax error",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
"No such file or directory",
"Already exists",
"I/O error",
"Bad file descriptor",
"End of file",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
"Bad IP address",
"Unknown IP address",
"Address already in use",
"Network is down",
"End of stream",
-
- NULL
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+
+ "Badly placed parenthesis",
+ "Bad hexadecimal number",
+ "Bad match register number",
+ "Badly placed special character",
+ "Regular expression too complex",
+ "Bad regular expression opcode",
+ "Bad repeat value",
};
/* Map error to string */