Lines Matching refs:new_bio
867 BIO *ret = NULL, *eoc = NULL, *bio, *new_bio; in BIO_dup_chain() local
870 if ((new_bio = BIO_new(bio->method)) == NULL) in BIO_dup_chain()
873 new_bio->callback = bio->callback; in BIO_dup_chain()
875 new_bio->callback_ex = bio->callback_ex; in BIO_dup_chain()
876 new_bio->cb_arg = bio->cb_arg; in BIO_dup_chain()
877 new_bio->init = bio->init; in BIO_dup_chain()
878 new_bio->shutdown = bio->shutdown; in BIO_dup_chain()
879 new_bio->flags = bio->flags; in BIO_dup_chain()
882 new_bio->num = bio->num; in BIO_dup_chain()
884 if (BIO_dup_state(bio, (char *)new_bio) <= 0) { in BIO_dup_chain()
885 BIO_free(new_bio); in BIO_dup_chain()
890 if (!CRYPTO_dup_ex_data(CRYPTO_EX_INDEX_BIO, &new_bio->ex_data, in BIO_dup_chain()
892 BIO_free(new_bio); in BIO_dup_chain()
897 eoc = new_bio; in BIO_dup_chain()
900 BIO_push(eoc, new_bio); in BIO_dup_chain()
901 eoc = new_bio; in BIO_dup_chain()