Lines Matching refs:row
95 static int update_index(CA_DB *db, char **row) in update_index() argument
102 irow[i] = row[i]; in update_index()
440 char **row = in srp_main() local
443 row[DB_srptype][0] = 'V'; in srp_main()
447 char *row[DB_NUMBER]; in srp_main() local
449 row[DB_srpverifier] = NULL; in srp_main()
450 row[DB_srpsalt] = NULL; in srp_main()
451 row[DB_srpinfo] = NULL; in srp_main()
454 srp_create_user(user, &(row[DB_srpverifier]), in srp_main()
455 &(row[DB_srpsalt]), in srp_main()
465 row[DB_srpid] = OPENSSL_strdup(user); in srp_main()
466 row[DB_srptype] = OPENSSL_strdup("v"); in srp_main()
467 row[DB_srpgN] = OPENSSL_strdup(gNid); in srp_main()
469 if ((row[DB_srpid] == NULL) in srp_main()
470 || (row[DB_srpgN] == NULL) in srp_main()
471 || (row[DB_srptype] == NULL) in srp_main()
472 || (row[DB_srpverifier] == NULL) in srp_main()
473 || (row[DB_srpsalt] == NULL) in srp_main()
475 && ((row[DB_srpinfo] = OPENSSL_strdup(userinfo)) == NULL)) in srp_main()
476 || !update_index(db, row)) { in srp_main()
477 OPENSSL_free(row[DB_srpid]); in srp_main()
478 OPENSSL_free(row[DB_srpgN]); in srp_main()
479 OPENSSL_free(row[DB_srpinfo]); in srp_main()
480 OPENSSL_free(row[DB_srptype]); in srp_main()
481 OPENSSL_free(row[DB_srpverifier]); in srp_main()
482 OPENSSL_free(row[DB_srpsalt]); in srp_main()
495 char **row = in srp_main() local
497 char type = row[DB_srptype][0]; in srp_main()
506 if (row[DB_srptype][0] == 'V') { in srp_main()
514 get_index(db, row[DB_srpgN], DB_SRP_INDEX)) >= 0) in srp_main()
520 (user, row[DB_srpverifier], row[DB_srpsalt], in srp_main()
521 irow ? irow[DB_srpsalt] : row[DB_srpgN], in srp_main()
537 srp_create_user(user, &(row[DB_srpverifier]), in srp_main()
538 &(row[DB_srpsalt]), in srp_main()
549 row[DB_srptype][0] = 'v'; in srp_main()
550 row[DB_srpgN] = OPENSSL_strdup(gNid); in srp_main()
552 if (row[DB_srpid] == NULL in srp_main()
553 || row[DB_srpgN] == NULL in srp_main()
554 || row[DB_srptype] == NULL in srp_main()
555 || row[DB_srpverifier] == NULL in srp_main()
556 || row[DB_srpsalt] == NULL in srp_main()
558 && ((row[DB_srpinfo] = OPENSSL_strdup(userinfo)) in srp_main()