Lines Matching defs:row

1492     OPENSSL_STRING row[DB_NUMBER];
1499 row[i] = NULL;
1791 row[DB_name] = X509_NAME_oneline(X509_get_subject_name(ret), NULL, 0);
1792 if (row[DB_name] == NULL) {
1798 row[DB_serial] = OPENSSL_strdup("00");
1800 row[DB_serial] = BN_bn2hex(serial);
1801 if (row[DB_serial] == NULL) {
1806 if (row[DB_name][0] == '\0') {
1812 OPENSSL_free(row[DB_name]);
1813 row[DB_name] = OPENSSL_strdup(row[DB_serial]);
1814 if (row[DB_name] == NULL) {
1821 OPENSSL_STRING *crow = row;
1827 row[DB_name]);
1831 rrow = TXT_DB_get_by_index(db->db, DB_serial, row);
1835 row[DB_serial]);
1920 row[DB_type] = OPENSSL_strdup("V");
1922 row[DB_exp_date] = app_malloc(tm->length + 1, "row expdate");
1923 memcpy(row[DB_exp_date], tm->data, tm->length);
1924 row[DB_exp_date][tm->length] = '\0';
1925 row[DB_rev_date] = NULL;
1926 row[DB_file] = OPENSSL_strdup("unknown");
1927 if ((row[DB_type] == NULL) || (row[DB_file] == NULL)
1928 || (row[DB_name] == NULL)) {
1933 irow = app_malloc(sizeof(*irow) * (DB_NUMBER + 1), "row space");
1935 irow[i] = row[i];
1948 OPENSSL_free(row[i]);
2113 char *row[DB_NUMBER], **rrow, **irow;
2119 row[i] = NULL;
2120 row[DB_name] = X509_NAME_oneline(X509_get_subject_name(x509), NULL, 0);
2125 row[DB_serial] = OPENSSL_strdup("00");
2127 row[DB_serial] = BN_bn2hex(bn);
2129 if (row[DB_name] != NULL && row[DB_name][0] == '\0') {
2131 OPENSSL_free(row[DB_name]);
2132 row[DB_name] = OPENSSL_strdup(row[DB_serial]);
2134 if ((row[DB_name] == NULL) || (row[DB_serial] == NULL)) {
2142 rrow = TXT_DB_get_by_index(db->db, DB_serial, row);
2146 row[DB_serial], row[DB_name]);
2149 row[DB_type] = OPENSSL_strdup("V");
2151 row[DB_exp_date] = app_malloc(tm->length + 1, "row exp_data");
2152 memcpy(row[DB_exp_date], tm->data, tm->length);
2153 row[DB_exp_date][tm->length] = '\0';
2154 row[DB_rev_date] = NULL;
2155 row[DB_file] = OPENSSL_strdup("unknown");
2157 if (row[DB_type] == NULL || row[DB_file] == NULL) {
2162 irow = app_malloc(sizeof(*irow) * (DB_NUMBER + 1), "row ptr");
2164 irow[i] = row[i];
2175 row[i] = NULL;
2186 } else if (index_name_cmp_noconst(row, rrow)) {
2187 BIO_printf(bio_err, "ERROR:name does not match %s\n", row[DB_name]);
2191 row[DB_serial]);
2195 row[DB_serial]);
2211 OPENSSL_free(row[i]);
2217 char *row[DB_NUMBER], **rrow;
2223 row[i] = NULL;
2226 row[DB_serial] = app_malloc(serial_len + 2, "row serial#");
2232 row[DB_serial][0] = '0';
2234 /* Copy String from serial to row[DB_serial] */
2235 memcpy(row[DB_serial] + 1, serial, serial_len);
2236 row[DB_serial][serial_len + 1] = '\0';
2238 /* Copy String from serial to row[DB_serial] */
2239 memcpy(row[DB_serial], serial, serial_len);
2240 row[DB_serial][serial_len] = '\0';
2244 make_uppercase(row[DB_serial]);
2249 rrow = TXT_DB_get_by_index(db->db, DB_serial, row);
2251 BIO_printf(bio_err, "Serial %s not present in db.\n", row[DB_serial]);
2256 row[DB_serial], rrow[DB_type][0]);
2260 row[DB_serial], rrow[DB_type][0]);
2264 row[DB_serial], rrow[DB_type][0]);
2268 row[DB_serial], rrow[DB_type][0]);
2272 row[DB_serial], rrow[DB_type][0]);
2277 OPENSSL_free(row[i]);