Searched refs:dbfile (Results 1 - 4 of 4) sorted by relevance

/freebsd-10-stable/crypto/openssl/apps/
H A Dapps.c1737 CA_DB *load_index(char *dbfile, DB_ATTR *db_attr) argument
1750 if (BIO_read_filename(in, dbfile) <= 0) {
1751 perror(dbfile);
1752 BIO_printf(bio_err, "unable to open '%s'\n", dbfile);
1759 BIO_snprintf(buf[0], sizeof buf[0], "%s.attr", dbfile);
1761 BIO_snprintf(buf[0], sizeof buf[0], "%s-attr", dbfile);
1832 int save_index(const char *dbfile, const char *suffix, CA_DB *db) argument
1843 j = strlen(dbfile) + strlen(suffix);
1849 j = BIO_snprintf(buf[2], sizeof buf[2], "%s.attr", dbfile);
1851 j = BIO_snprintf(buf[2], sizeof buf[2], "%s-attr", dbfile);
1895 rotate_index(const char *dbfile, const char *new_suffix, const char *old_suffix) argument
[all...]
H A Dsrp.c290 char *dbfile = NULL; local
333 dbfile = *(++argv);
379 if (dbfile && configfile) {
381 "-dbfile and -configfile cannot be specified together.\n");
423 if (!dbfile) {
497 if ((dbfile = NCONF_get_string(conf, section, ENV_DATABASE)) == NULL) {
509 dbfile);
511 db = load_index(dbfile, &db_attr);
736 if (!save_index(dbfile, "new", db))
740 if (!rotate_index(dbfile, "ne
[all...]
H A Dapps.h303 CA_DB *load_index(char *dbfile, DB_ATTR *dbattr);
305 int save_index(const char *dbfile, const char *suffix, CA_DB *db);
306 int rotate_index(const char *dbfile, const char *new_suffix,
H A Dca.c304 char *dbfile = NULL; local
683 if ((dbfile = NCONF_get_string(conf, section, ENV_DATABASE)) == NULL) {
687 db = load_index(dbfile, &db_attr);
834 if ((dbfile = NCONF_get_string(conf, section, ENV_DATABASE)) == NULL) {
838 db = load_index(dbfile, &db_attr);
904 BIO_printf(bio_err, "Updating %s ...\n", dbfile);
914 if (!save_index(dbfile, "new", db))
917 if (!rotate_index(dbfile, "new", "old"))
1217 if (!save_index(dbfile, "new", db))
1278 if (!rotate_index(dbfile, "ne
[all...]

Completed in 116 milliseconds