On Mon, Jul 13, 2009, Chris Bare wrote: > 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? >
That's not something I planned for during the implementation. If you want to log the data you're about to send then that's easy enough, just call BIO_get_mem_data() after the first call. Steve. -- Dr Stephen N. Henson. OpenSSL project core developer. Commercial tech support now available see: http://www.openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [email protected]
