Lines Matching refs:bp

43 int X509_print(BIO *bp, X509 *x)
45 return X509_print_ex(bp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT);
48 int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags,
69 if (BIO_write(bp, "Certificate:\n", 13) <= 0)
71 if (BIO_write(bp, " Data:\n", 10) <= 0)
77 if (BIO_printf(bp, "%8sVersion: %ld (0x%lx)\n", "", l + 1, (unsigned long)l) <= 0)
80 if (BIO_printf(bp, "%8sVersion: Unknown (%ld)\n", "", l) <= 0)
87 if (BIO_write(bp, " Serial Number:", 22) <= 0)
106 if (BIO_printf(bp, " %s%lu (%s0x%lx)\n", neg, ul, neg, ul) <= 0)
110 if (BIO_printf(bp, "\n%12s%s", "", neg) <= 0)
114 if (BIO_printf(bp, "%02x%c", bs->data[i],
125 if (BIO_puts(bp, " ") <= 0)
127 if (X509_signature_print(bp, tsig_alg, NULL) <= 0)
132 if (BIO_printf(bp, " Issuer:%c", mlch) <= 0)
134 if (X509_NAME_print_ex(bp, X509_get_issuer_name(x), nmindent, nmflags)
137 if (BIO_write(bp, "\n", 1) <= 0)
141 if (BIO_write(bp, " Validity\n", 17) <= 0)
143 if (BIO_write(bp, " Not Before: ", 24) <= 0)
145 if (ossl_asn1_time_print_ex(bp, X509_get0_notBefore(x), ASN1_DTFLGS_RFC822) == 0)
147 if (BIO_write(bp, "\n Not After : ", 25) <= 0)
149 if (ossl_asn1_time_print_ex(bp, X509_get0_notAfter(x), ASN1_DTFLGS_RFC822) == 0)
151 if (BIO_write(bp, "\n", 1) <= 0)
155 if (BIO_printf(bp, " Subject:%c", mlch) <= 0)
158 (bp, X509_get_subject_name(x), nmindent, nmflags) < printok)
160 if (BIO_write(bp, "\n", 1) <= 0)
167 if (BIO_write(bp, " Subject Public Key Info:\n", 33) <= 0)
169 if (BIO_printf(bp, "%12sPublic Key Algorithm: ", "") <= 0)
171 if (i2a_ASN1_OBJECT(bp, xpoid) <= 0)
173 if (BIO_puts(bp, "\n") <= 0)
178 BIO_printf(bp, "%12sUnable to load Public Key\n", "");
179 ERR_print_errors(bp);
181 EVP_PKEY_print_public(bp, pkey, 16, NULL);
189 if (BIO_printf(bp, "%8sIssuer Unique ID: ", "") <= 0)
191 if (!X509_signature_dump(bp, iuid, 12))
195 if (BIO_printf(bp, "%8sSubject Unique ID: ", "") <= 0)
197 if (!X509_signature_dump(bp, suid, 12))
203 && !X509V3_extensions_print(bp, "X509v3 extensions",
211 if (X509_signature_print(bp, sig_alg, sig) <= 0)
215 if (!X509_aux_print(bp, x, 0))
224 int X509_ocspid_print(BIO *bp, X509 *x)
235 if (x == NULL || bp == NULL)
240 if (BIO_printf(bp, " Subject OCSP hash: ") <= 0)
256 if (BIO_printf(bp, "%02X", SHA1md[i]) <= 0)
265 if (BIO_printf(bp, "\n Public key OCSP hash: ") <= 0)
277 if (BIO_printf(bp, "%02X", SHA1md[i]) <= 0)
280 BIO_printf(bp, "\n");
290 int X509_signature_dump(BIO *bp, const ASN1_STRING *sig, int indent)
299 if (i > 0 && BIO_write(bp, "\n", 1) <= 0)
301 if (BIO_indent(bp, indent, indent) <= 0)
304 if (BIO_printf(bp, "%02x%s", s[i], ((i + 1) == n) ? "" : ":") <= 0)
307 if (BIO_write(bp, "\n", 1) != 1)
313 int X509_signature_print(BIO *bp, const X509_ALGOR *sigalg,
318 if (BIO_printf(bp, "%*sSignature Algorithm: ", indent, "") <= 0)
320 if (i2a_ASN1_OBJECT(bp, sigalg->algorithm) <= 0)
323 if (sig && BIO_printf(bp, "\n%*sSignature Value:", indent, "") <= 0)
332 return ameth->sig_print(bp, sigalg, sig, indent + 4, 0);
335 if (BIO_write(bp, "\n", 1) != 1)
338 return X509_signature_dump(bp, sig, indent + 4);