version 1.48, 2020/04/03 02:26:56 |
version 1.49, 2020/04/03 04:43:24 |
|
|
|
|
/* Try to print in a KRL spec-compatible format */ |
/* Try to print in a KRL spec-compatible format */ |
format_timestamp(krl->generated_date, timestamp, sizeof(timestamp)); |
format_timestamp(krl->generated_date, timestamp, sizeof(timestamp)); |
fprintf(f, "# KRL version %lld\n", krl->krl_version); |
fprintf(f, "# KRL version %llu\n", krl->krl_version); |
fprintf(f, "# Generated at %s\n", timestamp); |
fprintf(f, "# Generated at %s\n", timestamp); |
if (krl->comment != NULL && *krl->comment != '\0') { |
if (krl->comment != NULL && *krl->comment != '\0') { |
r = INT_MAX; |
r = INT_MAX; |
|
|
} |
} |
RB_FOREACH(rs, revoked_serial_tree, &rc->revoked_serials) { |
RB_FOREACH(rs, revoked_serial_tree, &rc->revoked_serials) { |
if (rs->lo == rs->hi) |
if (rs->lo == rs->hi) |
fprintf(f, "serial: %lld\n", rs->lo); |
fprintf(f, "serial: %llu\n", rs->lo); |
else { |
else { |
fprintf(f, "serial: %lld-%lld\n", |
fprintf(f, "serial: %llu-%llu\n", |
rs->lo, rs->hi); |
rs->lo, rs->hi); |
} |
} |
} |
} |