Hi Dave, Thanks for your reply. I was able to fix it a while ago. And your guess is correct. My port number was getting messed up. And extra thinks for the tip on the libraries. :)
On Mon, Jul 27, 2009 at 1:31 PM, Dave Thompson<dave.thomp...@princetonpayments.com> wrote: >> From: owner-openssl-us...@openssl.org On Behalf Of Rij >> Sent: Thursday, 23 July, 2009 21:17 > >> I have a simple client operating in blocking mode. When I try >> to connect to the server, I get the error: >> error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol >> > Sounds like your server is not responding with valid SSL. > Are you sure you are connecting to the correct server and port? > > Can you try connecting with openssl s_client -debug? > Does it get data that looks like some other protocol > (at best, a readable one)? Maybe the server requires > STARTTLS or similar interaction BEFORE starting TLS? > >> Anybody aware of this error? I had previously written both a >> blocking and non-blocking client with help of people from >> this forum (most notably David). Now, the code doesn't run. >> Here's a snapshot of the code. >> >> SSL_library_init(); >> ERR_load_BIO_strings(); >> SSL_load_error_strings(); >> OpenSSL_add_all_algorithms(); > > Asides: BIO errstrings are (also) loaded by SSL_load_error_strings, > and if you're (only) doing SSL you shouldn't need any algorithms > not included by SSL_library_init. But these (should) do no harm. > > > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List openssl-us...@openssl.org > Automated List Manager majord...@openssl.org > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org