curl-library
SSL routines:SSL3_GET_RECORD:wrong version number
Date: Sat, 02 Jun 2007 04:26:49 +0000
Hi,
Using the code below I get a "SSL routines:SSL3_GET_RECORD:wrong version
number" error:
"
Curl.GlobalInit((int)CURLinitFlag.CURL_GLOBAL_ALL);
Easy easy = new Easy();
Easy.DebugFunction df = new Easy.DebugFunction(OnDebug);
easy.SetOpt(CURLoption.CURLOPT_DEBUGFUNCTION, df);
easy.SetOpt(CURLoption.CURLOPT_VERBOSE, true);
Easy.WriteFunction wf = new Easy.WriteFunction(OnWriteData);
easy.SetOpt(CURLoption.CURLOPT_WRITEFUNCTION, wf);
Easy.SSLContextFunction sf = new
Easy.SSLContextFunction(OnSSLContext);
easy.SetOpt(CURLoption.CURLOPT_SSL_CTX_FUNCTION, sf);
easy.SetOpt(CURLoption.CURLOPT_URL, "ftps://127.0.0.1:221");
easy.SetOpt(CURLoption.CURLOPT_USERPWD,
"username:password");
easy.SetOpt(CURLoption.CURLOPT_FTPSSLAUTH,
CURLftpAuth.CURLFTPAUTH_TLS);
easy.SetOpt(CURLoption.CURLOPT_SSLVERSION,
CURLsslVersion.CURL_SSLVERSION_TLSv1);
This is the error. Any idea what I'm doing wrong? I know the server works
fine since I can connect with a ftp client.
"About to connect() to 127.0.0.1 port 5001
Trying 127.0.0.1...
connected
Connected to 127.0.0.1 (127.0.0.1) port 5001
SSLv3, TLS handshake, Client hello (1):
☺ ]♥☺F`í'úànY▌§¶êÜ, O"z←←Mm'º~EZO 6
9 8 5 ▬ ‼
3 2 / f ♣ ♦ c b a § ↕ e d ` ¶ ♠
♥☺
SSLv?, Unknown (2):
☻F
error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
Closing connection #0"
_________________________________________________________________
Make every IM count. Download Messenger and join the i’m Initiative now.
It’s free. http://im.live.com/messenger/im/home/?source=TAGHM_June07
Received on 2007-06-02