Lines Matching refs:bp

17 static int ocsp_certid_print(BIO *bp, OCSP_CERTID *a, int indent)  in ocsp_certid_print()  argument
19 BIO_printf(bp, "%*sCertificate ID:\n", indent, ""); in ocsp_certid_print()
21 BIO_printf(bp, "%*sHash Algorithm: ", indent, ""); in ocsp_certid_print()
22 i2a_ASN1_OBJECT(bp, a->hashAlgorithm.algorithm); in ocsp_certid_print()
23 BIO_printf(bp, "\n%*sIssuer Name Hash: ", indent, ""); in ocsp_certid_print()
24 i2a_ASN1_STRING(bp, &a->issuerNameHash, 0); in ocsp_certid_print()
25 BIO_printf(bp, "\n%*sIssuer Key Hash: ", indent, ""); in ocsp_certid_print()
26 i2a_ASN1_STRING(bp, &a->issuerKeyHash, 0); in ocsp_certid_print()
27 BIO_printf(bp, "\n%*sSerial Number: ", indent, ""); in ocsp_certid_print()
28 i2a_ASN1_INTEGER(bp, &a->serialNumber); in ocsp_certid_print()
29 BIO_printf(bp, "\n"); in ocsp_certid_print()
89 int OCSP_REQUEST_print(BIO *bp, OCSP_REQUEST *o, unsigned long flags) in OCSP_REQUEST_print() argument
98 if (BIO_write(bp, "OCSP Request Data:\n", 19) <= 0) in OCSP_REQUEST_print()
101 if (BIO_printf(bp, " Version: %lu (0x%lx)", l + 1, l) <= 0) in OCSP_REQUEST_print()
104 if (BIO_write(bp, "\n Requestor Name: ", 21) <= 0) in OCSP_REQUEST_print()
106 GENERAL_NAME_print(bp, inf->requestorName); in OCSP_REQUEST_print()
108 if (BIO_write(bp, "\n Requestor List:\n", 21) <= 0) in OCSP_REQUEST_print()
113 ocsp_certid_print(bp, cid, 8); in OCSP_REQUEST_print()
114 if (!X509V3_extensions_print(bp, in OCSP_REQUEST_print()
119 if (!X509V3_extensions_print(bp, "Request Extensions", in OCSP_REQUEST_print()
123 X509_signature_print(bp, &sig->signatureAlgorithm, sig->signature); in OCSP_REQUEST_print()
125 X509_print(bp, sk_X509_value(sig->certs, i)); in OCSP_REQUEST_print()
126 PEM_write_bio_X509(bp, sk_X509_value(sig->certs, i)); in OCSP_REQUEST_print()
134 int OCSP_RESPONSE_print(BIO *bp, OCSP_RESPONSE *o, unsigned long flags) in OCSP_RESPONSE_print() argument
147 if (BIO_puts(bp, "OCSP Response Data:\n") <= 0) in OCSP_RESPONSE_print()
150 if (BIO_printf(bp, " OCSP Response Status: %s (0x%lx)\n", in OCSP_RESPONSE_print()
155 if (BIO_puts(bp, " Response Type: ") <= 0) in OCSP_RESPONSE_print()
157 if (i2a_ASN1_OBJECT(bp, rb->responseType) <= 0) in OCSP_RESPONSE_print()
160 BIO_puts(bp, " (unknown response type)\n"); in OCSP_RESPONSE_print()
168 if (BIO_printf(bp, "\n Version: %lu (0x%lx)\n", l + 1, l) <= 0) in OCSP_RESPONSE_print()
170 if (BIO_puts(bp, " Responder Id: ") <= 0) in OCSP_RESPONSE_print()
176 X509_NAME_print_ex(bp, rid->value.byName, 0, XN_FLAG_ONELINE); in OCSP_RESPONSE_print()
179 i2a_ASN1_STRING(bp, rid->value.byKey, 0); in OCSP_RESPONSE_print()
183 if (BIO_printf(bp, "\n Produced At: ") <= 0) in OCSP_RESPONSE_print()
185 if (!ASN1_GENERALIZEDTIME_print(bp, rd->producedAt)) in OCSP_RESPONSE_print()
187 if (BIO_printf(bp, "\n Responses:\n") <= 0) in OCSP_RESPONSE_print()
194 if (ocsp_certid_print(bp, cid, 4) <= 0) in OCSP_RESPONSE_print()
197 if (BIO_printf(bp, " Cert Status: %s", in OCSP_RESPONSE_print()
202 if (BIO_printf(bp, "\n Revocation Time: ") <= 0) in OCSP_RESPONSE_print()
204 if (!ASN1_GENERALIZEDTIME_print(bp, rev->revocationTime)) in OCSP_RESPONSE_print()
208 if (BIO_printf(bp, in OCSP_RESPONSE_print()
214 if (BIO_printf(bp, "\n This Update: ") <= 0) in OCSP_RESPONSE_print()
216 if (!ASN1_GENERALIZEDTIME_print(bp, single->thisUpdate)) in OCSP_RESPONSE_print()
219 if (BIO_printf(bp, "\n Next Update: ") <= 0) in OCSP_RESPONSE_print()
221 if (!ASN1_GENERALIZEDTIME_print(bp, single->nextUpdate)) in OCSP_RESPONSE_print()
224 if (BIO_write(bp, "\n", 1) <= 0) in OCSP_RESPONSE_print()
226 if (!X509V3_extensions_print(bp, in OCSP_RESPONSE_print()
230 if (BIO_write(bp, "\n", 1) <= 0) in OCSP_RESPONSE_print()
233 if (!X509V3_extensions_print(bp, "Response Extensions", in OCSP_RESPONSE_print()
236 if (X509_signature_print(bp, &br->signatureAlgorithm, br->signature) <= 0) in OCSP_RESPONSE_print()
240 X509_print(bp, sk_X509_value(br->certs, i)); in OCSP_RESPONSE_print()
241 PEM_write_bio_X509(bp, sk_X509_value(br->certs, i)); in OCSP_RESPONSE_print()