Lines Matching refs:bio
43 static nxt_cert_t *nxt_cert_bio(nxt_task_t *task, BIO *bio);
60 BIO *bio; in nxt_cert_mem() local
63 bio = BIO_new_mem_buf(mbuf->pos, nxt_buf_mem_used_size(mbuf)); in nxt_cert_mem()
64 if (nxt_slow_path(bio == NULL)) { in nxt_cert_mem()
69 cert = nxt_cert_bio(task, bio); in nxt_cert_mem()
71 BIO_free(bio); in nxt_cert_mem()
80 BIO *bio; in nxt_cert_fd() local
83 bio = BIO_new_fd(fd, 0); in nxt_cert_fd()
84 if (nxt_slow_path(bio == NULL)) { in nxt_cert_fd()
89 cert = nxt_cert_bio(task, bio); in nxt_cert_fd()
91 BIO_free(bio); in nxt_cert_fd()
98 nxt_cert_bio(nxt_task_t *task, BIO *bio) in nxt_cert_bio() argument
120 ret = PEM_read_bio(bio, &type, &header, &data, &length); in nxt_cert_bio()
494 BIO *bio; in nxt_cert_details() local
588 bio = BIO_new(BIO_s_mem()); in nxt_cert_details()
589 if (nxt_slow_path(bio == NULL)) { in nxt_cert_details()
595 ret = ASN1_TIME_print(bio, asn1_time); in nxt_cert_details()
598 str.length = BIO_get_mem_data(bio, &str.start); in nxt_cert_details()
605 BIO_free(bio); in nxt_cert_details()
611 bio = BIO_new(BIO_s_mem()); in nxt_cert_details()
612 if (nxt_slow_path(bio == NULL)) { in nxt_cert_details()
618 ret = ASN1_TIME_print(bio, asn1_time); in nxt_cert_details()
621 str.length = BIO_get_mem_data(bio, &str.start); in nxt_cert_details()
628 BIO_free(bio); in nxt_cert_details()