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

Lines Matching defs:db

120 static int get_index(CA_DB *db, char *id, char type)
127 for (i = 0; i < sk_OPENSSL_PSTRING_num(db->db->data); i++) {
128 pp = sk_OPENSSL_PSTRING_value(db->db->data, i);
133 for (i = 0; i < sk_OPENSSL_PSTRING_num(db->db->data); i++) {
134 pp = sk_OPENSSL_PSTRING_value(db->db->data, i);
144 static void print_entry(CA_DB *db, BIO *bio, int indx, int verbose, char *s)
148 char **pp = sk_OPENSSL_PSTRING_value(db->db->data, indx);
156 static void print_index(CA_DB *db, BIO *bio, int indexindex, int verbose)
158 print_entry(db, bio, indexindex, verbose, "g N entry");
161 static void print_user(CA_DB *db, BIO *bio, int userindex, int verbose)
164 char **pp = sk_OPENSSL_PSTRING_value(db->db->data, userindex);
167 print_entry(db, bio, userindex, verbose, "User entry");
168 print_entry(db, bio, get_index(db, pp[DB_srpgN], 'I'), verbose,
175 static int update_index(CA_DB *db, BIO *bio, char **row)
192 if (!TXT_DB_insert(db->db, irow)) {
194 BIO_printf(bio, "TXT_DB error number %ld\n", db->db->error);
291 CA_DB *db = NULL;
511 db = load_index(dbfile, &db_attr);
512 if (db == NULL)
516 for (i = 0; i < sk_OPENSSL_PSTRING_num(db->db->data); i++) {
517 pp = sk_OPENSSL_PSTRING_value(db->db->data, i);
524 print_index(db, bio_err, i, verbose > 1);
531 gNrow = sk_OPENSSL_PSTRING_value(db->db->data, gNindex);
532 print_entry(db, bio_err, gNindex, verbose > 1, "Default g and N");
550 if ((userindex = get_index(db, user, 'U')) >= 0) {
551 print_user(db, bio_err, userindex, (verbose > 0) || list_user);
558 for (i = 0; i < sk_OPENSSL_PSTRING_num(db->db->data); i++) {
559 print_user(db, bio_err, i, 1);
571 sk_OPENSSL_PSTRING_value(db->db->data, userindex);
607 || !update_index(db, bio_err, row)) {
633 sk_OPENSSL_PSTRING_value(db->db->data, userindex);
650 get_index(db, row[DB_srpgN], DB_SRP_INDEX)) >= 0)
652 (char **)sk_OPENSSL_PSTRING_value(db->
653 db->data,
706 sk_OPENSSL_PSTRING_value(db->db->data, userindex);
726 for (i = 0; i < sk_OPENSSL_PSTRING_num(db->db->data); i++) {
727 pp = sk_OPENSSL_PSTRING_value(db->db->data, i);
731 print_user(db, bio_err, i, verbose);
736 if (!save_index(dbfile, "new", db))
760 if (db)
761 free_index(db);