Hi all,
I have 2 READ BIOs and I want concatenate it. Because this BIOs are large
copy one BIO to other is too slow. In some case is possible, that this two
BIOs are different type. I found this function but nothing get.
I think this will be good function for example open certificates files and
put it into one BIO and call one function which work with this.
I will use this for this:
user call function   SendData(BIO *bio);

I in my library must add before this bio some header data and all this data
send through other OpenSSL function, now I copy data from bio to another and
this I put into OpenSSL function.
SendData(BIO *bio)
{
    BIO myBio =  BIO_new();
.....
    BIO_write(myBio, some data);
    BIO_copy(myBio, bio); // copy one bio to another
    // switch myBio from write to read (if it is memory!)
    ....
    PKCS7_sign(....., myBio, ....); // or other function
}


Martin

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to