Lines Matching refs:ofname
92 FILE *createOutputFile(const char *ofname){ in createOutputFile() argument
95 if( ofname ){ in createOutputFile()
96 if( !(access(ofname,F_OK) || force_flag) ){ in createOutputFile()
97 fprintf( stderr, "File '%s' exist!", ofname ); in createOutputFile()
100 if( (ofd=fopen(ofname, "w+t")) == NULL ){ in createOutputFile()
101 fprintf( stderr, "Can't open file '%s': %s!", ofname, strerror(errno) ); in createOutputFile()
124 int writePasswords( s_fidoconfig *config, char * ofname ){ in writePasswords() argument
128 ofd = createOutputFile(ofname); in writePasswords()
152 int writeBinkdConfig( s_fidoconfig *config, const char *ofname ){ in writeBinkdConfig() argument
157 ofd = createOutputFile(ofname); in writeBinkdConfig()
221 char *ofname=NULL; /* output file name */ in main() local
234 ofname = sstrdup( argv[i] ); in main()
268 if( ofname ) /* if not defined output binkd config to stdout */ in main()
269 printf("Generate binkd %s file %s\n", passwords_list_only ? "passwords" : "config" , ofname); in main()
272 rc = writePasswords( config, ofname ); in main()
274 rc = writeBinkdConfig( config, ofname ); in main()