71 BIO_printf(bp,
"%*sCertificate ID:\n", indent,
"");
73 BIO_printf(bp,
"%*sHash Algorithm: ", indent,
"");
75 BIO_printf(bp,
"\n%*sIssuer Name Hash: ", indent,
"");
77 BIO_printf(bp,
"\n%*sIssuer Key Hash: ", indent,
"");
79 BIO_printf(bp,
"\n%*sSerial Number: ", indent,
"");
91 static const char *table2string(
long s,
const OCSP_TBLSTR *ts,
int len)
94 for (p=ts; p < ts +
len; p++)
109 return table2string(s, rstat_tbl, 6);
118 return table2string(s, cstat_tbl, 3);
132 return table2string(s, reason_tbl, 8);
144 if (
BIO_write(bp,
"OCSP Request Data:\n",19) <= 0)
goto err;
146 if (
BIO_printf(bp,
" Version: %lu (0x%lx)",l+1,l) <= 0)
goto err;
149 if (
BIO_write(bp,
"\n Requestor Name: ",21) <= 0)
153 if (
BIO_write(bp,
"\n Requestor List:\n",21) <= 0)
goto err;
158 ocsp_certid_print(bp, cid, 8);
160 "Request Single Extensions",
161 one->singleRequestExtensions, flags, 8))
165 inf->requestExtensions, flags, 4))
194 if (
BIO_puts(bp,
"OCSP Response Data:\n") <= 0)
goto err;
196 if (
BIO_printf(bp,
" OCSP Response Status: %s (0x%lx)\n",
198 if (rb == NULL)
return 1;
199 if (
BIO_puts(bp,
" Response Type: ") <= 0)
205 BIO_puts(bp,
" (unknown response type)\n");
213 if (
BIO_printf(bp,
"\n Version: %lu (0x%lx)\n",
214 l+1,l) <= 0)
goto err;
215 if (
BIO_puts(bp,
" Responder Id: ") <= 0)
goto err;
228 if (
BIO_printf(bp,
"\n Produced At: ")<=0)
goto err;
230 if (
BIO_printf(bp,
"\n Responses:\n") <= 0)
goto err;
236 if(ocsp_certid_print(bp, cid, 4) <= 0)
goto err;
244 if (
BIO_printf(bp,
"\n Revocation Time: ") <= 0)
253 "\n Revocation Reason: %s (0x%lx)",
258 if (
BIO_printf(bp,
"\n This Update: ") <= 0)
goto err;
263 if (
BIO_printf(bp,
"\n Next Update: ") <= 0)
goto err;
269 "Response Single Extensions",
270 single->singleExtensions, flags, 8))
275 rd->responseExtensions, flags, 4))
288 OCSP_BASICRESP_free(br);