Wilfried Mestdagh wrote:
> Hi,
> 
> This is my First SSL with THttpCli. This site requires a BASIC
> authentication but that is not importand here. The strange thing is I
> get a session closed with winsock error 10053.
> 
> Nothing is sent. If I put SocketSpy in between then I also have the
> 10053 "in" Socketspy immediately after the client connect. So I think
> there is something I forget. I have add the 2 DLL's into project
> folder, USE_SLL in project options. Do I have something else to do?
> 
> Note that this is a project in Delphi7 with ThttpCli version 1.93.
> ICSSSLLAY and ICSLIBEAY are both from 2006. So version period is same
> I think.
> I have IcsLogger log here. It seems the 10053 is with the
> StartSslHandshake.

You use a far too old version IMO. Anyway it looks like FSslEnable isn't
set for some reason so SSL is not used and the peer doesn't like that:

procedure TCustomSslWSocket.StartSslHandshake;
begin
{$IFNDEF NO_DEBUG_LOG}
    if CheckLogOptions(loSslInfo) then  { V5.21 }
        DebugLog(loSslInfo, _IntToHex(INT_PTR(Self), SizeOf(Pointer) * 2) +
                      ' StartSslHandshake ' + _IntToStr(FHSocket));
{$ENDIF}
    if not FSslEnable then <== Here **
        Exit;

My log (debug output) with latest and greatest on Server 2008:

Debug Output:
13:09:27:450 7 header lines to send
GET / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Connection: Keep-Alive
Accept-Language: en, fr
User-Agent: Mozilla/4.0 (compatible; ICS; MSIE 4.0)
Host: www.microsoft.com:443
Proxy-Connection: Keep-Alive

Process OverbyteIcsHttpsTst.exe (996)
Debug Output: 13:09:27:461 01F5CAC0 PutDataInSslBuffer 500 len 245  [1]  
Process OverbyteIcsHttpsTst.exe (996)
Debug Output: 13:09:27:461 01F5CAC0 SslTryToSend 500 Process 
OverbyteIcsHttpsTst.exe (996)
Debug Output: 13:09:27:461 SendRequest Done Process OverbyteIcsHttpsTst.exe 
(996)
Debug Output: 13:09:27:461 01F5CAC0 StartSslHandshake 500 Process 
OverbyteIcsHttpsTst.exe (996)
Module Load: LIBEAY32.dll. No Debug Info. Base Address: $10000000. Process 
OverbyteIcsHttpsTst.exe (996)
Module Load: SSLEAY32.dll. No Debug Info. Base Address: $04090000. Process 
OverbyteIcsHttpsTst.exe (996)
Debug Output: 13:09:27:481 InitCtx> OpenSSL version: OpenSSL 0.9.8r 8 Feb 2011 
Process OverbyteIcsHttpsTst.exe (996)
Module Load: NETAPI32.dll. No Debug Info. Base Address: $740E0000. Process 
OverbyteIcsHttpsTst.exe (996)
Module Load: netutils.dll. No Debug Info. Base Address: $740D0000. Process 
OverbyteIcsHttpsTst.exe (996)
Module Load: srvcli.dll. No Debug Info. Base Address: $744C0000. Process 
OverbyteIcsHttpsTst.exe (996)
Module Load: wkscli.dll. No Debug Info. Base Address: $740C0000. Process 
OverbyteIcsHttpsTst.exe (996)
Module Unload: NETAPI32.dll. Process OverbyteIcsHttpsTst.exe (996)
Module Unload: wkscli.dll. Process OverbyteIcsHttpsTst.exe (996)
Module Unload: srvcli.dll. Process OverbyteIcsHttpsTst.exe (996)
Module Unload: netutils.dll. Process OverbyteIcsHttpsTst.exe (996)
Module Load: CRYPTSP.dll. No Debug Info. Base Address: $74300000. Process 
OverbyteIcsHttpsTst.exe (996)
Module Load: RSAENH.dll. No Debug Info. Base Address: $74240000. Process 
OverbyteIcsHttpsTst.exe (996)
Debug Output: 13:09:27:872 01F5CAC0 InitSSLConnection 500 Process 
OverbyteIcsHttpsTst.exe (996)
Debug Output: 13:09:27:880 01F5CAC0 BIO_ctrl(sslbio, BIO_C_SET_SSL, 
BIO_NOCLOSE, 0x441D118) = 1   [2] Process OverbyteIcsHttpsTst.exe (996)
Debug Output: 13:09:27:888 ICB> SSL_CB_HANDSHAKE_START Process 
OverbyteIcsHttpsTst.exe (996)
Debug Output: 13:09:27:897 ICB> SSL_connect: before/connect initialization 
Process OverbyteIcsHttpsTst.exe (996)
Debug Output: 13:09:27:905 ICB> SSL_connect: SSLv2/v3 write client hello A 
Process OverbyteIcsHttpsTst.exe (996)
Debug Output: 13:09:27:912 ICB> SSL_connect: error in SSLv2/v3 read server 
hello A Process OverbyteIcsHttpsTst.exe (996)
[..]

-- 
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to