Lines Matching defs:serialfile
1124 load_serial(char *serialfile, int create, ASN1_INTEGER **retai)
1139 if (BIO_read_filename(in, serialfile) <= 0) {
1141 perror(serialfile);
1151 serialfile);
1174 save_serial(char *serialfile, char *suffix, BIGNUM *serial,
1183 n = strlcpy(serialpath, serialfile, sizeof serialpath);
1186 serialfile, suffix);
1197 perror(serialfile);
1220 rotate_serial(char *serialfile, char *new_suffix, char *old_suffix)
1224 if (snprintf(npath, sizeof npath, "%s.%s", serialfile,
1230 if (snprintf(opath, sizeof opath, "%s.%s", serialfile,
1236 if (rename(serialfile, opath) == -1 &&
1239 serialfile, opath);
1245 if (rename(npath, serialfile) == -1) {
1247 npath, serialfile);
1249 if (rename(opath, serialfile) == -1) {
1251 opath, serialfile);