Mercurial > noffle
diff src/protocol.h @ 281:5eece4dfd945 noffle
[svn] * src/log.c,src/log.h: Add Log_fatal() for reporting fatal errors
and exiting, Log_gdbm_fatal() for the the same but specifically as
a GDBM error reporting function, and a new log debug level AUTH for
a forthcoming authentication mechanism.
* src/database.c,src/group.c: Provide new gdbm error function to all
gdbm opens.
* src/noffle.c: Add atexit() to always close databases on a program-
inspired exit.
* src/content.c,src/dynamicstring.c,src/fetchlist.c,src/filter.c,
src/itemlist.c,src/log.c,src/log.h,src/over.c,src/protocol.h,
src/request.c,src/util.c: Use Log_fatal where appropriate.
author | bears |
---|---|
date | Fri, 27 Dec 2002 21:48:25 +0000 |
parents | 24d4cd032da5 |
children | baa6408d1bbc |
line wrap: on
line diff
--- a/src/protocol.h Tue Dec 24 09:08:59 2002 +0000 +++ b/src/protocol.h Fri Dec 27 21:48:25 2002 +0000 @@ -4,7 +4,7 @@ Functions related with the NNTP protocol which are useful for both the server and the client. - $Id: protocol.h 316 2001-10-31 11:44:53Z bears $ + $Id: protocol.h 413 2002-12-27 21:48:25Z bears $ */ #ifndef PRT_H @@ -33,11 +33,10 @@ #define STAT_OVERS_FOLLOW 224 #define STAT_NEW_GRP_FOLLOW 231 #define STAT_POST_OK 240 -#define STAT_AUTH_ACCEPTED 250 -#define STAT_AUTH_ACCEPTED_DEPREC 281 +#define STAT_AUTH_ACCEPTED 281 #define STAT_SEND_ART 340 -#define STAT_MORE_AUTH_REQUIRED_DEPREC 381 +#define STAT_MORE_AUTH_REQUIRED 381 #define STAT_NO_SUCH_GRP 411 #define STAT_NO_GRP_SELECTED 412 @@ -48,16 +47,20 @@ #define STAT_NO_SUCH_ID 430 #define STAT_ART_REJECTED 437 #define STAT_POST_FAILED 441 -#define STAT_AUTH_REQUIRED 450 -#define STAT_AUTH_REJECTED 452 -#define STAT_AUTH_REQUIRED_DEPREC 480 -#define STAT_AUTH_REJECTED_DEPREC 482 +#define STAT_AUTH_REQUIRED 480 +#define STAT_AUTH_REJECTED 482 #define STAT_NO_SUCH_CMD 500 #define STAT_SYNTAX_ERR 501 #define STAT_NO_PERMISSION 502 #define STAT_PROGRAM_FAULT 503 +/* Statuses from AUTHINFO SIMPLE - deprecated */ +#define STAT_AUTH_ACCEPTED_DEPREC 250 +#define STAT_AUTH_REQUIRED_DEPREC 450 +#define STAT_AUTH_REJECTED_DEPREC 452 +#define STAT_MORE_AUTH_REQUIRED_DEPREC 350 + /* Read next line from f into Str, up to "\n" or "\r\n". Don't save "\n" or "\r\n" in line. Terminate with '\0'.