comparison src/configfile.h @ 287:01755687c565 noffle

[svn] * src/configfile.c: Change snprintf() to Utl_cpyStr(); * src/configfile.c,src/fetch.c,src/fetchlist.c,src/protocol.c, src/server.c: Replace strcpy() with Utl_cpyStr() where appropriate. See Debian bug 168128. * src/client.c. Replace strcpy() here too. * src/configfile.h,src/configfile.c,docs/noffle.conf.5: Add noffle-user and noffle-group configs. * src/control.c,src/configfile.c,src/noffle.c: Replace [s]scanf("%s") with [s]scanf(MAXCHAR_FMT).
author bears
date Fri, 10 Jan 2003 23:11:43 +0000
parents 76460d98b2fb
children b0ee77fa24d4
comparison
equal deleted inserted replaced
286:6443163104a8 287:01755687c565
1 /* 1 /*
2 configfile.h 2 configfile.h
3 3
4 Common declarations and handling of the configuration file. 4 Common declarations and handling of the configuration file.
5 5
6 $Id: configfile.h 314 2001-10-30 13:16:40Z bears $ 6 $Id: configfile.h 419 2003-01-10 23:11:43Z bears $
7 */ 7 */
8 8
9 #ifndef CONFIGFILE_H 9 #ifndef CONFIGFILE_H
10 #define CONFIGFILE_H 10 #define CONFIGFILE_H
11 11
45 /* Prefer server earlier in config file. Known servers are always preferential 45 /* Prefer server earlier in config file. Known servers are always preferential
46 to unknown servers. */ 46 to unknown servers. */
47 Bool Cfg_servIsPreferential( const char *name1, const char *name2 ); 47 Bool Cfg_servIsPreferential( const char *name1, const char *name2 );
48 void Cfg_authInfo( const char *name, Str user, Str pass ); 48 void Cfg_authInfo( const char *name, Str user, Str pass );
49 49
50 Bool Cfg_needClientAuth( void );
51
50 /* Return expire period for named group. */ 52 /* Return expire period for named group. */
51 int Cfg_expire( const char *grp ); 53 int Cfg_expire( const char *grp );
52 54
53 /* Return default expire days. */ 55 /* Return default expire days. */
54 int Cfg_defaultExpire( void ); 56 int Cfg_defaultExpire( void );
65 /* Return domain for generated From: lines */ 67 /* Return domain for generated From: lines */
66 const char * Cfg_fromDomain( void ); 68 const char * Cfg_fromDomain( void );
67 69
68 /* Return default Organization: contents */ 70 /* Return default Organization: contents */
69 const char * Cfg_organization( void ); 71 const char * Cfg_organization( void );
72
73 /* Return the user Noffle should run as */
74 const char * Cfg_noffleUser( void );
75
76 /* Return the group Noffle should run as */
77 const char * Cfg_noffleGroup( void );
70 78
71 void Cfg_read( void ); 79 void Cfg_read( void );
72 80
73 /* Get a new iterator for get group patterns for the given server */ 81 /* Get a new iterator for get group patterns for the given server */
74 GroupEnum * 82 GroupEnum *