Home | History | Annotate | Download | only in x509

Lines Matching refs:bp

94 int X509_print(BIO *bp, X509 *x)
96 return X509_print_ex(bp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT);
99 int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags,
121 if (BIO_write(bp, "Certificate:\n", 13) <= 0)
123 if (BIO_write(bp, " Data:\n", 10) <= 0)
128 if (BIO_printf(bp, "%8sVersion: %lu (0x%lx)\n", "", l + 1, l) <= 0)
133 if (BIO_write(bp, " Serial Number:", 22) <= 0)
145 if (BIO_printf(bp, " %s%lu (%s0x%lx)\n", neg, l, neg, l) <= 0)
149 if (BIO_printf(bp, "\n%12s%s", "", neg) <= 0)
153 if (BIO_printf(bp, "%02x%c", bs->data[i],
162 if (X509_signature_print(bp, ci->signature, NULL) <= 0)
167 if (BIO_printf(bp, " Issuer:%c", mlch) <= 0)
169 if (X509_NAME_print_ex(bp, X509_get_issuer_name(x), nmindent, nmflags)
172 if (BIO_write(bp, "\n", 1) <= 0)
176 if (BIO_write(bp, " Validity\n", 17) <= 0)
178 if (BIO_write(bp, " Not Before: ", 24) <= 0)
180 if (!ASN1_TIME_print(bp, X509_get_notBefore(x)))
182 if (BIO_write(bp, "\n Not After : ", 25) <= 0)
184 if (!ASN1_TIME_print(bp, X509_get_notAfter(x)))
186 if (BIO_write(bp, "\n", 1) <= 0)
190 if (BIO_printf(bp, " Subject:%c", mlch) <= 0)
193 (bp, X509_get_subject_name(x), nmindent, nmflags) < 0)
195 if (BIO_write(bp, "\n", 1) <= 0)
199 if (BIO_write(bp, " Subject Public Key Info:\n", 33) <= 0)
201 if (BIO_printf(bp, "%12sPublic Key Algorithm: ", "") <= 0)
203 if (i2a_ASN1_OBJECT(bp, ci->key->algor->algorithm) <= 0)
205 if (BIO_puts(bp, "\n") <= 0)
210 BIO_printf(bp, "%12sUnable to load Public Key\n", "");
211 ERR_print_errors(bp);
213 EVP_PKEY_print_public(bp, pkey, 16, NULL);
220 if (BIO_printf(bp, "%8sIssuer Unique ID: ", "") <= 0)
222 if (!X509_signature_dump(bp, ci->issuerUID, 12))
226 if (BIO_printf(bp, "%8sSubject Unique ID: ", "") <= 0)
228 if (!X509_signature_dump(bp, ci->subjectUID, 12))
234 X509V3_extensions_print(bp, "X509v3 extensions",
238 if (X509_signature_print(bp, x->sig_alg, x->signature) <= 0)
242 if (!X509_CERT_AUX_print(bp, x->aux, 0))
252 int X509_ocspid_print(BIO *bp, X509 *x)
263 if (BIO_printf(bp, " Subject OCSP hash: ") <= 0)
273 if (BIO_printf(bp, "%02X", SHA1md[i]) <= 0)
282 if (BIO_printf(bp, "\n Public key OCSP hash: ") <= 0)
290 if (BIO_printf(bp, "%02X", SHA1md[i]) <= 0)
293 BIO_printf(bp, "\n");
302 int X509_signature_print(BIO *bp, const X509_ALGOR *sigalg,
305 if (BIO_puts(bp, " Signature Algorithm: ") <= 0)
307 if (i2a_ASN1_OBJECT(bp, sigalg->algorithm) <= 0)
313 !x509_print_rsa_pss_params(bp, sigalg, 9, 0)) {
318 return X509_signature_dump(bp, sig, 9);
319 else if (BIO_puts(bp, "\n") <= 0)
324 int ASN1_STRING_print(BIO *bp, const ASN1_STRING *v)
342 if (BIO_write(bp, buf, n) <= 0)
348 if (BIO_write(bp, buf, n) <= 0)
353 int ASN1_TIME_print(BIO *bp, const ASN1_TIME *tm)
356 return ASN1_UTCTIME_print(bp, tm);
358 return ASN1_GENERALIZEDTIME_print(bp, tm);
359 BIO_write(bp, "Bad time value", 14);
368 int ASN1_GENERALIZEDTIME_print(BIO *bp, const ASN1_GENERALIZEDTIME *tm)
409 if (BIO_printf(bp, "%s %2d %02d:%02d:%02d%.*s %d%s",
416 BIO_write(bp, "Bad time value", 14);
447 int ASN1_UTCTIME_print(BIO *bp, const ASN1_UTCTIME *tm) {
492 return BIO_printf(bp, "%s %2d %02d:%02d:%02d %d%s", mon[M - 1], D, h, m, s, Y,
496 BIO_write(bp, "Bad time value", 14);
500 int X509_NAME_print(BIO *bp, X509_NAME *name, int obase)
525 if (BIO_write(bp, c, i) != i)
529 if (BIO_write(bp, ", ", 2) != 2)