Home
last modified time | relevance | path

Searched refs:dbfile (Results 1 – 3 of 3) sorted by relevance

/external/openssl/apps/
Dapps.c1681 CA_DB *load_index(char *dbfile, DB_ATTR *db_attr) in load_index() argument
1695 if (BIO_read_filename(in,dbfile) <= 0) in load_index()
1697 perror(dbfile); in load_index()
1698 BIO_printf(bio_err,"unable to open '%s'\n",dbfile); in load_index()
1708 BIO_snprintf(buf[0], sizeof buf[0], "%s.attr", dbfile); in load_index()
1710 BIO_snprintf(buf[0], sizeof buf[0], "%s-attr", dbfile); in load_index()
1787 int save_index(const char *dbfile, const char *suffix, CA_DB *db) in save_index() argument
1799 j = strlen(dbfile) + strlen(suffix); in save_index()
1807 j = BIO_snprintf(buf[2], sizeof buf[2], "%s.attr", dbfile); in save_index()
1809 j = BIO_snprintf(buf[2], sizeof buf[2], "%s-attr", dbfile); in save_index()
[all …]
Dapps.h326 CA_DB *load_index(char *dbfile, DB_ATTR *dbattr);
328 int save_index(const char *dbfile, const char *suffix, CA_DB *db);
329 int rotate_index(const char *dbfile, const char *new_suffix, const char *old_suffix);
Dca.c302 char *dbfile=NULL; in MAIN() local
706 if ((dbfile=NCONF_get_string(conf,section,ENV_DATABASE)) == NULL) in MAIN()
711 db = load_index(dbfile,&db_attr); in MAIN()
874 if ((dbfile=NCONF_get_string(conf,section,ENV_DATABASE)) == NULL) in MAIN()
879 db = load_index(dbfile, &db_attr); in MAIN()
950 dbfile); in MAIN()
965 if (!save_index(dbfile,"new",db)) goto err; in MAIN()
967 if (!rotate_index(dbfile,"new","old")) goto err; in MAIN()
1265 if (!save_index(dbfile, "new", db)) goto err; in MAIN()
1329 if (!rotate_index(dbfile,"new","old")) goto err; in MAIN()
[all …]