Lines Matching refs:row

1609     char *row[DB_NUMBER], **rrow = NULL, **irow = NULL;
1619 row[i] = NULL;
1834 row[DB_serial] = BUF_strdup("00");
1836 row[DB_serial] = BN_bn2hex(serial);
1837 if (row[DB_serial] == NULL) {
1843 rrow = TXT_DB_get_by_index(db->db, DB_name, row);
1847 row[DB_name]);
1851 rrow = TXT_DB_get_by_index(db->db, DB_serial, row);
1855 row[DB_serial]);
2072 row[DB_type] = (char *)OPENSSL_malloc(2);
2075 row[DB_exp_date] = (char *)OPENSSL_malloc(tm->length + 1);
2076 memcpy(row[DB_exp_date], tm->data, tm->length);
2077 row[DB_exp_date][tm->length] = '\0';
2079 row[DB_rev_date] = NULL;
2081 /* row[DB_serial] done already */
2082 row[DB_file] = (char *)OPENSSL_malloc(8);
2083 row[DB_name] = X509_NAME_oneline(X509_get_subject_name(ret), NULL, 0);
2085 if ((row[DB_type] == NULL) || (row[DB_exp_date] == NULL) ||
2086 (row[DB_file] == NULL) || (row[DB_name] == NULL)) {
2090 BUF_strlcpy(row[DB_file], "unknown", 8);
2091 row[DB_type][0] = 'V';
2092 row[DB_type][1] = '\0';
2101 irow[i] = row[i];
2102 row[i] = NULL;
2114 if (row[i] != NULL)
2115 OPENSSL_free(row[i]);
2316 char *row[DB_NUMBER], **rrow, **irow;
2322 row[i] = NULL;
2323 row[DB_name] = X509_NAME_oneline(X509_get_subject_name(x509), NULL, 0);
2326 row[DB_serial] = BUF_strdup("00");
2328 row[DB_serial] = BN_bn2hex(bn);
2330 if ((row[DB_name] == NULL) || (row[DB_serial] == NULL)) {
2338 rrow = TXT_DB_get_by_index(db->db, DB_serial, row);
2342 row[DB_serial], row[DB_name]);
2345 row[DB_type] = (char *)OPENSSL_malloc(2);
2348 row[DB_exp_date] = (char *)OPENSSL_malloc(tm->length + 1);
2349 memcpy(row[DB_exp_date], tm->data, tm->length);
2350 row[DB_exp_date][tm->length] = '\0';
2352 row[DB_rev_date] = NULL;
2354 /* row[DB_serial] done already */
2355 row[DB_file] = (char *)OPENSSL_malloc(8);
2357 /* row[DB_name] done already */
2359 if ((row[DB_type] == NULL) || (row[DB_exp_date] == NULL) ||
2360 (row[DB_file] == NULL)) {
2364 BUF_strlcpy(row[DB_file], "unknown", 8);
2365 row[DB_type][0] = 'V';
2366 row[DB_type][1] = '\0';
2376 irow[i] = row[i];
2377 row[i] = NULL;
2392 } else if (index_name_cmp((const char **)row, (const char **)rrow)) {
2393 BIO_printf(bio_err, "ERROR:name does not match %s\n", row[DB_name]);
2397 row[DB_serial]);
2413 if (row[i] != NULL)
2414 OPENSSL_free(row[i]);
2421 char *row[DB_NUMBER], **rrow;
2426 row[i] = NULL;
2429 row[DB_serial] = OPENSSL_malloc(strlen(serial) + 2);
2430 if (row[DB_serial] == NULL) {
2439 row[DB_serial][0] = '0';
2441 /* Copy String from serial to row[DB_serial] */
2442 memcpy(row[DB_serial] + 1, serial, strlen(serial));
2443 row[DB_serial][strlen(serial) + 1] = '\0';
2445 /* Copy String from serial to row[DB_serial] */
2446 memcpy(row[DB_serial], serial, strlen(serial));
2447 row[DB_serial][strlen(serial)] = '\0';
2451 for (i = 0; row[DB_serial][i] != '\0'; i++)
2452 row[DB_serial][i] = toupper(row[DB_serial][i]);
2457 rrow = TXT_DB_get_by_index(db->db, DB_serial, row);
2459 BIO_printf(bio_err, "Serial %s not present in db.\n", row[DB_serial]);
2464 row[DB_serial], rrow[DB_type][0]);
2468 row[DB_serial], rrow[DB_type][0]);
2472 row[DB_serial], rrow[DB_type][0]);
2476 row[DB_serial], rrow[DB_type][0]);
2480 row[DB_serial], rrow[DB_type][0]);
2485 if (row[i] != NULL)
2486 OPENSSL_free(row[i]);