Lines Matching defs:filename
225 * filename for a key file. '/', '\' and ':' are not allowed.
228 * Returns 0 if the filename would contain either '\', '/' or ':'
254 * Builds a key filename from the key name, it's id, and a
255 * suffix. '\', '/' and ':' are not allowed. fA filename is of the
260 * if the filename would be too long for space allotted
261 * if the filename would contain a '\', '/' or ':'
266 dst_s_build_filename(char *filename, const char *name, u_int16_t id,
270 if (filename == NULL)
272 memset(filename, 0, filename_length);
280 sprintf(filename, "K%s+%03d+%05d.%s", name, alg, my_id,
282 if (strrchr(filename, '/'))
284 if (strrchr(filename, '\\'))
286 if (strrchr(filename, ':'))
296 * filename File to open
304 dst_s_fopen(const char *filename, const char *mode, int perm)
309 if (strlen(filename) + strlen(dst_path) >= sizeof(pathname))
314 strcat(pathname, filename);
316 strcpy(pathname, filename);