Lines Matching refs:new_bio
700 BIO *ret = NULL, *eoc = NULL, *bio, *new_bio; in BIO_dup_chain() local
703 if ((new_bio = BIO_new(bio->method)) == NULL) in BIO_dup_chain()
705 new_bio->callback = bio->callback; in BIO_dup_chain()
706 new_bio->callback_ex = bio->callback_ex; in BIO_dup_chain()
707 new_bio->cb_arg = bio->cb_arg; in BIO_dup_chain()
708 new_bio->init = bio->init; in BIO_dup_chain()
709 new_bio->shutdown = bio->shutdown; in BIO_dup_chain()
710 new_bio->flags = bio->flags; in BIO_dup_chain()
713 new_bio->num = bio->num; in BIO_dup_chain()
715 if (!BIO_dup_state(bio, (char *)new_bio)) { in BIO_dup_chain()
716 BIO_free(new_bio); in BIO_dup_chain()
721 if (!CRYPTO_dup_ex_data(CRYPTO_EX_INDEX_BIO, &new_bio->ex_data, in BIO_dup_chain()
723 BIO_free(new_bio); in BIO_dup_chain()
728 eoc = new_bio; in BIO_dup_chain()
731 BIO_push(eoc, new_bio); in BIO_dup_chain()
732 eoc = new_bio; in BIO_dup_chain()