• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl/apps/

Lines Matching defs:dbfile

1842 CA_DB *load_index(char *dbfile, DB_ATTR *db_attr)
1855 if (BIO_read_filename(in, dbfile) <= 0) {
1856 perror(dbfile);
1857 BIO_printf(bio_err, "unable to open '%s'\n", dbfile);
1864 BIO_snprintf(buf[0], sizeof buf[0], "%s.attr", dbfile);
1866 BIO_snprintf(buf[0], sizeof buf[0], "%s-attr", dbfile);
1937 int save_index(const char *dbfile, const char *suffix, CA_DB *db)
1948 j = strlen(dbfile) + strlen(suffix);
1954 j = BIO_snprintf(buf[2], sizeof buf[2], "%s.attr", dbfile);
1956 j = BIO_snprintf(buf[2], sizeof buf[2], "%s-attr", dbfile);
1959 j = BIO_snprintf(buf[1], sizeof buf[1], "%s.attr.%s", dbfile, suffix);
1961 j = BIO_snprintf(buf[1], sizeof buf[1], "%s-attr-%s", dbfile, suffix);
1964 j = BIO_snprintf(buf[0], sizeof buf[0], "%s.%s", dbfile, suffix);
1966 j = BIO_snprintf(buf[0], sizeof buf[0], "%s-%s", dbfile, suffix);
1972 perror(dbfile);
1973 BIO_printf(bio_err, "unable to open '%s'\n", dbfile);
2000 int rotate_index(const char *dbfile, const char *new_suffix,
2006 i = strlen(dbfile) + strlen(old_suffix);
2007 j = strlen(dbfile) + strlen(new_suffix);
2015 j = BIO_snprintf(buf[4], sizeof buf[4], "%s.attr", dbfile);
2017 j = BIO_snprintf(buf[4], sizeof buf[4], "%s-attr", dbfile);
2020 j = BIO_snprintf(buf[2], sizeof buf[2], "%s.attr.%s", dbfile, new_suffix);
2022 j = BIO_snprintf(buf[2], sizeof buf[2], "%s-attr-%s", dbfile, new_suffix);
2025 j = BIO_snprintf(buf[0], sizeof buf[0], "%s.%s", dbfile, new_suffix);
2027 j = BIO_snprintf(buf[0], sizeof buf[0], "%s-%s", dbfile, new_suffix);
2030 j = BIO_snprintf(buf[1], sizeof buf[1], "%s.%s", dbfile, old_suffix);
2032 j = BIO_snprintf(buf[1], sizeof buf[1], "%s-%s", dbfile, old_suffix);
2035 j = BIO_snprintf(buf[3], sizeof buf[3], "%s.attr.%s", dbfile, old_suffix);
2037 j = BIO_snprintf(buf[3], sizeof buf[3], "%s-attr-%s", dbfile, old_suffix);
2040 BIO_printf(bio_err, "DEBUG: renaming \"%s\" to \"%s\"\n", dbfile, buf[1]);
2042 if (rename(dbfile, buf[1]) < 0 && errno != ENOENT
2047 BIO_printf(bio_err, "unable to rename %s to %s\n", dbfile, buf[1]);
2052 BIO_printf(bio_err, "DEBUG: renaming \"%s\" to \"%s\"\n", buf[0], dbfile);
2054 if (rename(buf[0], dbfile) < 0) {
2055 BIO_printf(bio_err, "unable to rename %s to %s\n", buf[0], dbfile);
2057 rename(buf[1], dbfile);
2070 rename(dbfile, buf[0]);
2071 rename(buf[1], dbfile);
2081 rename(dbfile, buf[0]);
2082 rename(buf[1], dbfile);