Lines Matching refs:bp
17 static int ocsp_certid_print(BIO *bp, OCSP_CERTID *a, int indent)
19 BIO_printf(bp, "%*sCertificate ID:\n", indent, "");
21 BIO_printf(bp, "%*sHash Algorithm: ", indent, "");
22 i2a_ASN1_OBJECT(bp, a->hashAlgorithm.algorithm);
23 BIO_printf(bp, "\n%*sIssuer Name Hash: ", indent, "");
24 i2a_ASN1_STRING(bp, &a->issuerNameHash, 0);
25 BIO_printf(bp, "\n%*sIssuer Key Hash: ", indent, "");
26 i2a_ASN1_STRING(bp, &a->issuerKeyHash, 0);
27 BIO_printf(bp, "\n%*sSerial Number: ", indent, "");
28 i2a_ASN1_INTEGER(bp, &a->serialNumber);
29 BIO_printf(bp, "\n");
87 int OCSP_REQUEST_print(BIO *bp, OCSP_REQUEST *o, unsigned long flags)
96 if (BIO_write(bp, "OCSP Request Data:\n", 19) <= 0)
99 if (BIO_printf(bp, " Version: %lu (0x%lx)", l + 1, l) <= 0)
102 if (BIO_write(bp, "\n Requestor Name: ", 21) <= 0)
104 GENERAL_NAME_print(bp, inf->requestorName);
106 if (BIO_write(bp, "\n Requestor List:\n", 21) <= 0)
111 ocsp_certid_print(bp, cid, 8);
112 if (!X509V3_extensions_print(bp,
117 if (!X509V3_extensions_print(bp, "Request Extensions",
121 X509_signature_print(bp, &sig->signatureAlgorithm, sig->signature);
123 X509_print(bp, sk_X509_value(sig->certs, i));
124 PEM_write_bio_X509(bp, sk_X509_value(sig->certs, i));
132 int OCSP_RESPONSE_print(BIO *bp, OCSP_RESPONSE *o, unsigned long flags)
145 if (BIO_puts(bp, "OCSP Response Data:\n") <= 0)
148 if (BIO_printf(bp, " OCSP Response Status: %s (0x%lx)\n",
153 if (BIO_puts(bp, " Response Type: ") <= 0)
155 if (i2a_ASN1_OBJECT(bp, rb->responseType) <= 0)
158 BIO_puts(bp, " (unknown response type)\n");
166 if (BIO_printf(bp, "\n Version: %lu (0x%lx)\n", l + 1, l) <= 0)
168 if (BIO_puts(bp, " Responder Id: ") <= 0)
174 X509_NAME_print_ex(bp, rid->value.byName, 0, XN_FLAG_ONELINE);
177 i2a_ASN1_STRING(bp, rid->value.byKey, 0);
181 if (BIO_printf(bp, "\n Produced At: ") <= 0)
183 if (!ASN1_GENERALIZEDTIME_print(bp, rd->producedAt))
185 if (BIO_printf(bp, "\n Responses:\n") <= 0)
192 if (ocsp_certid_print(bp, cid, 4) <= 0)
195 if (BIO_printf(bp, " Cert Status: %s",
200 if (BIO_printf(bp, "\n Revocation Time: ") <= 0)
202 if (!ASN1_GENERALIZEDTIME_print(bp, rev->revocationTime))
206 if (BIO_printf(bp,
212 if (BIO_printf(bp, "\n This Update: ") <= 0)
214 if (!ASN1_GENERALIZEDTIME_print(bp, single->thisUpdate))
217 if (BIO_printf(bp, "\n Next Update: ") <= 0)
219 if (!ASN1_GENERALIZEDTIME_print(bp, single->nextUpdate))
222 if (BIO_write(bp, "\n", 1) <= 0)
224 if (!X509V3_extensions_print(bp,
228 if (BIO_write(bp, "\n", 1) <= 0)
231 if (!X509V3_extensions_print(bp, "Response Extensions",
234 if (X509_signature_print(bp, &br->signatureAlgorithm, br->signature) <= 0)
238 X509_print(bp, sk_X509_value(br->certs, i));
239 PEM_write_bio_X509(bp, sk_X509_value(br->certs, i));