NAME
BIO_push, BIO_pop — add and remove BIOs from a chainDESCRIPTION
The BIO_push() function appends the BIO append to b and returns b.RETURN VALUES
BIO_push() returns the beginning of the chain, b.NOTES
The names of these functions are perhaps a little misleading. BIO_push() joins two BIO chains whereas BIO_pop() deletes a single BIO from a chain, the deleted BIO does not need to be at the end of a chain.EXAMPLES
For these examples suppose md1 and md2 are digest BIOs, b64 is a base64 BIO and f is a file BIO.BIO_push(b64, f);
BIO_push(md2, b64); BIO_push(md1, md2);
BIO_pop(md2);