SSL client-hello, message body structure -


i'm trying work ssl manually without using libs openssl etc... , have fault on 1st step hello message client.

from technet:

it must consist of: clientversion 3,1 clientrandom[32] sessionid: none (new session) suggested cipher suites:    tls_rsa_with_3des_ede_cbc_sha    tls_rsa_with_des_cbc_sha suggested compression algorithm: none 

in code ( c/c++ ), have created message on way:

char *request = "clientversion 3,1\r\nclientrandom[32]\r\n sessionid: none (new session)\r\n suggested cipher suites:\r\n tls_rsa_with_3des_ede_cbc_sha\r\n tls_rsa_with_des_cbc_sha\r\n suggested compression algorithm: none\r\n"; 

but after recv() functions, i've got 0 in result, what's wrong in message structure?

ps in http-proto there place, when must double \r\n ( splits headers , body message ), may be, there must or not?

you need take @ rfc 2246, rather making things up. example newlines between elements of message figment of imagination.

but why think can work ssl 'manually' mystery. can't, , don't need to. reimplementing ssl major task , don't have resources it. use library: openssl, jsse, etc.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -