Lines Matching refs:bp

92 int X509_print(BIO *bp, X509 *x)  in X509_print()  argument
94 return X509_print_ex(bp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT); in X509_print()
97 int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, unsigned long cflag) in X509_print_ex() argument
119 if (BIO_write(bp,"Certificate:\n",13) <= 0) goto err; in X509_print_ex()
120 if (BIO_write(bp," Data:\n",10) <= 0) goto err; in X509_print_ex()
125 if (BIO_printf(bp,"%8sVersion: %lu (0x%lx)\n","",l+1,l) <= 0) goto err; in X509_print_ex()
130 if (BIO_write(bp," Serial Number:",22) <= 0) goto err; in X509_print_ex()
143 if (BIO_printf(bp," %s%lu (%s0x%lx)\n",neg,l,neg,l) <= 0) in X509_print_ex()
149 if (BIO_printf(bp,"\n%12s%s","",neg) <= 0) goto err; in X509_print_ex()
153 if (BIO_printf(bp,"%02x%c",bs->data[i], in X509_print_ex()
163 if (X509_signature_print(bp, ci->signature, NULL) <= 0) in X509_print_ex()
169 if (BIO_printf(bp," Issuer:%c",mlch) <= 0) goto err; in X509_print_ex()
170 if (X509_NAME_print_ex(bp,X509_get_issuer_name(x),nmindent, nmflags) < 0) goto err; in X509_print_ex()
171 if (BIO_write(bp,"\n",1) <= 0) goto err; in X509_print_ex()
175 if (BIO_write(bp," Validity\n",17) <= 0) goto err; in X509_print_ex()
176 if (BIO_write(bp," Not Before: ",24) <= 0) goto err; in X509_print_ex()
177 if (!ASN1_TIME_print(bp,X509_get_notBefore(x))) goto err; in X509_print_ex()
178 if (BIO_write(bp,"\n Not After : ",25) <= 0) goto err; in X509_print_ex()
179 if (!ASN1_TIME_print(bp,X509_get_notAfter(x))) goto err; in X509_print_ex()
180 if (BIO_write(bp,"\n",1) <= 0) goto err; in X509_print_ex()
184 if (BIO_printf(bp," Subject:%c",mlch) <= 0) goto err; in X509_print_ex()
185 if (X509_NAME_print_ex(bp,X509_get_subject_name(x),nmindent, nmflags) < 0) goto err; in X509_print_ex()
186 if (BIO_write(bp,"\n",1) <= 0) goto err; in X509_print_ex()
190 if (BIO_write(bp," Subject Public Key Info:\n",33) <= 0) in X509_print_ex()
192 if (BIO_printf(bp,"%12sPublic Key Algorithm: ","") <= 0) in X509_print_ex()
194 if (i2a_ASN1_OBJECT(bp, ci->key->algor->algorithm) <= 0) in X509_print_ex()
196 if (BIO_puts(bp, "\n") <= 0) in X509_print_ex()
202 BIO_printf(bp,"%12sUnable to load Public Key\n",""); in X509_print_ex()
203 BIO_print_errors(bp); in X509_print_ex()
207 EVP_PKEY_print_public(bp, pkey, 16, NULL); in X509_print_ex()
216 if (BIO_printf(bp,"%8sIssuer Unique ID: ","") <= 0) in X509_print_ex()
218 if (!X509_signature_dump(bp, ci->issuerUID, 12)) in X509_print_ex()
223 if (BIO_printf(bp,"%8sSubject Unique ID: ","") <= 0) in X509_print_ex()
225 if (!X509_signature_dump(bp, ci->subjectUID, 12)) in X509_print_ex()
231 X509V3_extensions_print(bp, "X509v3 extensions", in X509_print_ex()
236 if(X509_signature_print(bp, x->sig_alg, x->signature) <= 0) goto err; in X509_print_ex()
240 if (!X509_CERT_AUX_print(bp, x->aux, 0)) goto err; in X509_print_ex()
248 int X509_ocspid_print (BIO *bp, X509 *x) in X509_ocspid_print() argument
258 if (BIO_printf(bp," Subject OCSP hash: ") <= 0) in X509_ocspid_print()
269 if (BIO_printf(bp,"%02X",SHA1md[i]) <= 0) goto err; in X509_ocspid_print()
276 if (BIO_printf(bp,"\n Public key OCSP hash: ") <= 0) in X509_ocspid_print()
285 if (BIO_printf(bp,"%02X",SHA1md[i]) <= 0) in X509_ocspid_print()
288 BIO_printf(bp,"\n"); in X509_ocspid_print()
296 int X509_signature_print(BIO *bp, X509_ALGOR *sigalg, ASN1_STRING *sig) in X509_signature_print() argument
299 if (BIO_puts(bp," Signature Algorithm: ") <= 0) return 0; in X509_signature_print()
300 if (i2a_ASN1_OBJECT(bp, sigalg->algorithm) <= 0) return 0; in X509_signature_print()
311 return ameth->sig_print(bp, sigalg, sig, 9, 0); in X509_signature_print()
315 return X509_signature_dump(bp, sig, 9); in X509_signature_print()
316 else if (BIO_puts(bp, "\n") <= 0) in X509_signature_print()
321 int ASN1_STRING_print(BIO *bp, const ASN1_STRING *v) in ASN1_STRING_print() argument
340 if (BIO_write(bp,buf,n) <= 0) in ASN1_STRING_print()
346 if (BIO_write(bp,buf,n) <= 0) in ASN1_STRING_print()
351 int ASN1_TIME_print(BIO *bp, const ASN1_TIME *tm) in ASN1_TIME_print() argument
353 if(tm->type == V_ASN1_UTCTIME) return ASN1_UTCTIME_print(bp, tm); in ASN1_TIME_print()
355 return ASN1_GENERALIZEDTIME_print(bp, tm); in ASN1_TIME_print()
356 BIO_write(bp,"Bad time value",14); in ASN1_TIME_print()
366 int ASN1_GENERALIZEDTIME_print(BIO *bp, const ASN1_GENERALIZEDTIME *tm) in ASN1_GENERALIZEDTIME_print() argument
404 if (BIO_printf(bp,"%s %2d %02d:%02d:%02d%.*s %d%s", in ASN1_GENERALIZEDTIME_print()
410 BIO_write(bp,"Bad time value",14); in ASN1_GENERALIZEDTIME_print()
414 int ASN1_UTCTIME_print(BIO *bp, const ASN1_UTCTIME *tm) in ASN1_UTCTIME_print() argument
440 if (BIO_printf(bp,"%s %2d %02d:%02d:%02d %d%s", in ASN1_UTCTIME_print()
446 BIO_write(bp,"Bad time value",14); in ASN1_UTCTIME_print()
450 int X509_NAME_print(BIO *bp, X509_NAME *name, int obase) in X509_NAME_print() argument
479 if (BIO_write(bp,c,i) != i) goto err; in X509_NAME_print()
483 if (BIO_write(bp,", ",2) != 2) goto err; in X509_NAME_print()