- Timestamp:
- 2011-12-24T18:02:39Z (13 years ago)
- Branches:
- master
- Children:
- 34ded90
- Parents:
- e306fbf (diff), 96f954d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
conf.c
re306fbf r164352e 67 67 conf->ft_listen = NULL; 68 68 conf->protocols = NULL; 69 conf->cafile = NULL; 69 70 proxytype = 0; 70 71 … … 177 178 fprintf( stderr, "Warning: Unable to read configuration file `%s'.\n", global.conf_file ); 178 179 180 if( conf->cafile && access( conf->cafile, R_OK ) != 0 ) 181 { 182 /* Let's treat this as a serious problem so people won't think 183 they're secure when in fact they're not. */ 184 fprintf( stderr, "Error: Could not read CA file %s: %s\n", conf->cafile, strerror( errno ) ); 185 return NULL; 186 } 187 179 188 return conf; 180 189 } … … 340 349 conf->protocols = g_strsplit_set( ini->value, " \t,;", -1 ); 341 350 } 351 else if( g_strcasecmp( ini->key, "cafile" ) == 0 ) 352 { 353 g_free( conf->cafile ); 354 conf->cafile = g_strdup( ini->value ); 355 } 342 356 else 343 357 {
Note: See TracChangeset
for help on using the changeset viewer.