Lines Matching defs:bio
96 BIO *bio;
110 if ((bio = BIO_new(BIO_s_mem())) == NULL) {
118 X509_NAME_print_ex(bio, X509_get_subject_name(cert), 0, flags);
119 n = BIO_read(bio, subject, min(BIO_pending(bio), BUFSIZ - 1));
122 BIO_flush(bio);
124 X509_NAME_print_ex(bio, X509_get_issuer_name(cert), 0, flags);
125 n = BIO_read(bio, issuer, min(BIO_pending(bio), BUFSIZ - 1));
128 BIO_flush(bio);
130 i2a_ASN1_INTEGER(bio, X509_get_serialNumber(cert));
131 n = BIO_read(bio, serial, min(BIO_pending(bio), BUFSIZ - 1));
134 BIO_flush(bio);
136 BIO_free(bio);