I'm trying to log the exact data I am sending to the server by doing this:

        if (!i2d_CMS_bio_stream (server, cms, mem, flags))
                // error
        BIO_reset(mem);
        if (!i2d_CMS_bio_stream (logfile, cms, mem, flags))
                // err

I get no error for the second call to i2d_CMS_bio_stream, but I also get 0
bytes output to the file. If I comment out the first call, it works fine.

Is there something else I need to reset, or once it's sent, do I have to start
all over with a new cms object?

-- 
Chris Bare
[email protected]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to