On Fri, May 15, 2009 at 05:22:16PM -0400, Animesh Chowdhury wrote:

> ok. That sounds good. But, what I'm seeing is that the SSL client hangs when
> the message size is more than 16KB.
> Do I need to break this large message up in smaller chunks or can I use
> SSL_write to send the whole message in one shot?

You need to find source code for a working SSL client and server,
and adapt it to your needs without breaking it. You can start with the
source code for s_client and s_server in the OpenSSL source distribution,
or look at various other open source SSL clients to learn how they use
SSL. Don't copy the code into your own project unless you understand
and are willing to accept the license...

SSL clients and/or servers:

        - s_client, s_server

        - curl, wget, ... other command-line HTTPS clients

        - stunnel and any other TLS proxies

        - Postfix, Sendmail, ... other TLS enabled MTAs

        - ...

Eric Rescorla's book may also be a good starting point.

-- 
        Viktor.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to