Lines Matching refs:bp

48 int X509_print(BIO *bp, X509 *x)  in X509_print()  argument
50 return X509_print_ex(bp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT); in X509_print()
53 int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, in X509_print_ex() argument
71 if (BIO_write(bp, "Certificate:\n", 13) <= 0) in X509_print_ex()
73 if (BIO_write(bp, " Data:\n", 10) <= 0) in X509_print_ex()
79 if (BIO_printf(bp, "%8sVersion: %ld (0x%lx)\n", "", l + 1, (unsigned long)l) <= 0) in X509_print_ex()
82 if (BIO_printf(bp, "%8sVersion: Unknown (%ld)\n", "", l) <= 0) in X509_print_ex()
89 if (BIO_write(bp, " Serial Number:", 22) <= 0) in X509_print_ex()
91 if (ossl_serial_number_print(bp, bs, 12) != 0) in X509_print_ex()
93 if (BIO_puts(bp, "\n") <= 0) in X509_print_ex()
100 if (BIO_puts(bp, " ") <= 0) in X509_print_ex()
102 if (X509_signature_print(bp, tsig_alg, NULL) <= 0) in X509_print_ex()
107 if (BIO_printf(bp, " Issuer:%c", mlch) <= 0) in X509_print_ex()
109 if (X509_NAME_print_ex(bp, X509_get_issuer_name(x), nmindent, nmflags) in X509_print_ex()
112 if (BIO_write(bp, "\n", 1) <= 0) in X509_print_ex()
116 if (BIO_write(bp, " Validity\n", 17) <= 0) in X509_print_ex()
118 if (BIO_write(bp, " Not Before: ", 24) <= 0) in X509_print_ex()
120 if (ossl_asn1_time_print_ex(bp, X509_get0_notBefore(x), ASN1_DTFLGS_RFC822) == 0) in X509_print_ex()
122 if (BIO_write(bp, "\n Not After : ", 25) <= 0) in X509_print_ex()
124 if (ossl_asn1_time_print_ex(bp, X509_get0_notAfter(x), ASN1_DTFLGS_RFC822) == 0) in X509_print_ex()
126 if (BIO_write(bp, "\n", 1) <= 0) in X509_print_ex()
130 if (BIO_printf(bp, " Subject:%c", mlch) <= 0) in X509_print_ex()
133 (bp, X509_get_subject_name(x), nmindent, nmflags) < printok) in X509_print_ex()
135 if (BIO_write(bp, "\n", 1) <= 0) in X509_print_ex()
142 if (BIO_write(bp, " Subject Public Key Info:\n", 33) <= 0) in X509_print_ex()
144 if (BIO_printf(bp, "%12sPublic Key Algorithm: ", "") <= 0) in X509_print_ex()
146 if (i2a_ASN1_OBJECT(bp, xpoid) <= 0) in X509_print_ex()
148 if (BIO_puts(bp, "\n") <= 0) in X509_print_ex()
153 BIO_printf(bp, "%12sUnable to load Public Key\n", ""); in X509_print_ex()
154 ERR_print_errors(bp); in X509_print_ex()
156 EVP_PKEY_print_public(bp, pkey, 16, NULL); in X509_print_ex()
164 if (BIO_printf(bp, "%8sIssuer Unique ID: ", "") <= 0) in X509_print_ex()
166 if (!X509_signature_dump(bp, iuid, 12)) in X509_print_ex()
170 if (BIO_printf(bp, "%8sSubject Unique ID: ", "") <= 0) in X509_print_ex()
172 if (!X509_signature_dump(bp, suid, 12)) in X509_print_ex()
178 && !X509V3_extensions_print(bp, "X509v3 extensions", in X509_print_ex()
186 if (X509_signature_print(bp, sig_alg, sig) <= 0) in X509_print_ex()
190 if (!X509_aux_print(bp, x, 0)) in X509_print_ex()
198 int X509_ocspid_print(BIO *bp, X509 *x) in X509_ocspid_print() argument
209 if (x == NULL || bp == NULL) in X509_ocspid_print()
214 if (BIO_printf(bp, " Subject OCSP hash: ") <= 0) in X509_ocspid_print()
230 if (BIO_printf(bp, "%02X", SHA1md[i]) <= 0) in X509_ocspid_print()
239 if (BIO_printf(bp, "\n Public key OCSP hash: ") <= 0) in X509_ocspid_print()
251 if (BIO_printf(bp, "%02X", SHA1md[i]) <= 0) in X509_ocspid_print()
254 BIO_printf(bp, "\n"); in X509_ocspid_print()
264 int X509_signature_dump(BIO *bp, const ASN1_STRING *sig, int indent) in X509_signature_dump() argument
273 if (i > 0 && BIO_write(bp, "\n", 1) <= 0) in X509_signature_dump()
275 if (BIO_indent(bp, indent, indent) <= 0) in X509_signature_dump()
278 if (BIO_printf(bp, "%02x%s", s[i], ((i + 1) == n) ? "" : ":") <= 0) in X509_signature_dump()
281 if (BIO_write(bp, "\n", 1) != 1) in X509_signature_dump()
287 int X509_signature_print(BIO *bp, const X509_ALGOR *sigalg, in X509_signature_print() argument
292 if (BIO_printf(bp, "%*sSignature Algorithm: ", indent, "") <= 0) in X509_signature_print()
294 if (i2a_ASN1_OBJECT(bp, sigalg->algorithm) <= 0) in X509_signature_print()
297 if (sig && BIO_printf(bp, "\n%*sSignature Value:", indent, "") <= 0) in X509_signature_print()
306 return ameth->sig_print(bp, sigalg, sig, indent + 4, 0); in X509_signature_print()
309 if (BIO_write(bp, "\n", 1) != 1) in X509_signature_print()
312 return X509_signature_dump(bp, sig, indent + 4); in X509_signature_print()