On Tue, Apr 30, 2013, Indtiny s wrote:

> Hi,
> I have compiled libcurl with openssl , When I tried for some TLS handshake .
> 
> In the Clinet hello  .
> 
> Content Type: Handshake (22)*Version: TLS 1.0 (0x0301)*
> Handshake Protocol: Client Hello
> Handshake Type: Client Hello (1)
> Version: TLS 1.2 (0x0303)
> 
> Due to some requirment , server looks for the same  version as well, I need
> to send a Clinet hello as below
> 
> Content Type: Handshake (22)*Version: TLS 1.2 (0x0303)*
> Handshake Protocol: Client Hello
> Handshake Type: Client Hello (1)
> Version: TLS 1.2 (0x0303)
> 
> How to set the openssl to send a hello packet as above ..?

Currently you can't without modifying the source code.

When the first version of OpenSSL supporting TLS 1.2 was released a significant
number of servers would just "hang" on receiving the client hello. One
workaround was to use version 0x0301 in the initial client hello, this was
added to subsequent releases.

If you are using SSLv23_*method then you can change the code around line
793 of s23_clnt.c

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]

Reply via email to