> I'm currently implementing a server using overlapped I/O completion ports > (Async socket), and I am using 2 BIOs (network/internal) to take care of > encrypted/decrypted data. In my server, I need to know when the packet > begins and ends so that I can executed accordingly. Is there a > way to find > out the length of a packet (for example reading a header first and then > read the rest of the packet) or am I way off? > Thank you in advance for your help.
You should not care. If you find that you care, you are most likely doing something wrong. SSL operates over TCP. It provides a TCP-compatible interface for the encrypted side and a nearly-TCP-compatible interface for the unencrypted side. TCP has no notion of record boundaries and therefore SSL's input and output sides don't either. Look at the BIO-pair example code. DS ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]