Mercurial > noffle
comparison src/configfile.c @ 290:f35a7d45efd5 noffle
[svn] * docs/noffle.1,docs/noffle.conf.5: Correct footer date, add new RFCs,
update Markus's email again.
* docs/noffle.conf.5,src/configfile.c: Only recognise authenticate-client
config if authentication of one or other sort is built in.
* TODO: Update.
author | bears |
---|---|
date | Sat, 11 Jan 2003 09:30:05 +0000 |
parents | 01755687c565 |
children | b0ee77fa24d4 |
comparison
equal
deleted
inserted
replaced
289:0eaad46e56e2 | 290:f35a7d45efd5 |
---|---|
4 The following macros must be set, when compiling this file: | 4 The following macros must be set, when compiling this file: |
5 CONFIGFILE | 5 CONFIGFILE |
6 SPOOLDIR | 6 SPOOLDIR |
7 VERSION | 7 VERSION |
8 | 8 |
9 $Id: configfile.c 419 2003-01-10 23:11:43Z bears $ | 9 $Id: configfile.c 422 2003-01-11 09:30:05Z bears $ |
10 */ | 10 */ |
11 | 11 |
12 #if HAVE_CONFIG_H | 12 #if HAVE_CONFIG_H |
13 #include <config.h> | 13 #include <config.h> |
14 #endif | 14 #endif |
953 else if ( strcmp( "hostname", name ) == 0 ) | 953 else if ( strcmp( "hostname", name ) == 0 ) |
954 /* use line, do not change to lowercase */ | 954 /* use line, do not change to lowercase */ |
955 getStr( config.hostnameMsgId, line ); | 955 getStr( config.hostnameMsgId, line ); |
956 else if ( strcmp( "post-locally", name ) == 0 ) | 956 else if ( strcmp( "post-locally", name ) == 0 ) |
957 getBool( &config.postLocal, p ); | 957 getBool( &config.postLocal, p ); |
958 #if USE_AUTH | |
959 /* | |
960 * Don't recognise this unless we have some sort of auth | |
961 * built in. A small sanity check on the config. | |
962 */ | |
958 else if ( strcmp( "authenticate-client", name ) == 0 ) | 963 else if ( strcmp( "authenticate-client", name ) == 0 ) |
959 getBool( &config.clientAuth, p ); | 964 getBool( &config.clientAuth, p ); |
965 #endif | |
960 else if ( strcmp( "default-auto-subscribe-mode", name ) == 0 ) | 966 else if ( strcmp( "default-auto-subscribe-mode", name ) == 0 ) |
961 { | 967 { |
962 getStr( s, p ); | 968 getStr( s, p ); |
963 if ( ! isValidAutoSubscribeMode( s ) ) | 969 if ( ! isValidAutoSubscribeMode( s ) ) |
964 { | 970 { |