Home | History | Annotate | Download | only in ocsp

Lines Matching refs:bp

69 static int ocsp_certid_print(BIO *bp, OCSP_CERTID* a, int indent)
71 BIO_printf(bp, "%*sCertificate ID:\n", indent, "");
73 BIO_printf(bp, "%*sHash Algorithm: ", indent, "");
74 i2a_ASN1_OBJECT(bp, a->hashAlgorithm->algorithm);
75 BIO_printf(bp, "\n%*sIssuer Name Hash: ", indent, "");
76 i2a_ASN1_STRING(bp, a->issuerNameHash, V_ASN1_OCTET_STRING);
77 BIO_printf(bp, "\n%*sIssuer Key Hash: ", indent, "");
78 i2a_ASN1_STRING(bp, a->issuerKeyHash, V_ASN1_OCTET_STRING);
79 BIO_printf(bp, "\n%*sSerial Number: ", indent, "");
80 i2a_ASN1_INTEGER(bp, a->serialNumber);
81 BIO_printf(bp, "\n");
135 int OCSP_REQUEST_print(BIO *bp, OCSP_REQUEST* o, unsigned long flags)
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)
151 GENERAL_NAME_print(bp, inf->requestorName);
153 if (BIO_write(bp,"\n Requestor List:\n",21) <= 0) goto err;
158 ocsp_certid_print(bp, cid, 8);
159 if (!X509V3_extensions_print(bp,
164 if (!X509V3_extensions_print(bp, "Request Extensions",
169 X509_signature_print(bp, sig->signatureAlgorithm, sig->signature);
172 X509_print(bp, sk_X509_value(sig->certs,i));
173 PEM_write_bio_X509(bp,sk_X509_value(sig->certs,i));
181 int OCSP_RESPONSE_print(BIO *bp, OCSP_RESPONSE* o, unsigned long flags)
195 if (BIO_puts(bp,"OCSP Response Data:\n") <= 0) goto err;
197 if (BIO_printf(bp," OCSP Response Status: %s (0x%lx)\n",
200 if (BIO_puts(bp," Response Type: ") <= 0)
202 if(i2a_ASN1_OBJECT(bp, rb->responseType) <= 0)
206 BIO_puts(bp," (unknown response type)\n");
215 if (BIO_printf(bp,"\n Version: %lu (0x%lx)\n",
217 if (BIO_puts(bp," Responder Id: ") <= 0) goto err;
223 X509_NAME_print_ex(bp, rid->value.byName, 0, XN_FLAG_ONELINE);
226 i2a_ASN1_STRING(bp, rid->value.byKey, V_ASN1_OCTET_STRING);
230 if (BIO_printf(bp,"\n Produced At: ")<=0) goto err;
231 if (!ASN1_GENERALIZEDTIME_print(bp, rd->producedAt)) goto err;
232 if (BIO_printf(bp,"\n Responses:\n") <= 0) goto err;
238 if(ocsp_certid_print(bp, cid, 4) <= 0) goto err;
240 if (BIO_printf(bp," Cert Status: %s",
246 if (BIO_printf(bp, "\n Revocation Time: ") <= 0)
248 if (!ASN1_GENERALIZEDTIME_print(bp,
254 if (BIO_printf(bp,
260 if (BIO_printf(bp,"\n This Update: ") <= 0) goto err;
261 if (!ASN1_GENERALIZEDTIME_print(bp, single->thisUpdate))
265 if (BIO_printf(bp,"\n Next Update: ") <= 0)goto err;
266 if (!ASN1_GENERALIZEDTIME_print(bp,single->nextUpdate))
269 if (BIO_write(bp,"\n",1) <= 0) goto err;
270 if (!X509V3_extensions_print(bp,
274 if (BIO_write(bp,"\n",1) <= 0) goto err;
276 if (!X509V3_extensions_print(bp, "Response Extensions",
279 if(X509_signature_print(bp, br->signatureAlgorithm, br->signature) <= 0)
284 X509_print(bp, sk_X509_value(br->certs,i));
285 PEM_write_bio_X509(bp,sk_X509_value(br->certs,i));