>       From: owner-openssl-us...@openssl.org On Behalf Of Selçuk Cihan
>       Sent: Friday, 12 June, 2009 05:22
        
>       Hi, i use openssl-0.9.8k on windows vista. i set up a local http
proxy 
> for development purposes.
>       
>       i need to be able to have ssl communication from a client that is
behind http proxy.
>       Socket creation and connecting to the local proxy server is
fine(using winsock2)
>       Then, from what i have grabbed wandering through this mailing list, 
> i send "CONNECT host:port HTTP/1.0" message over the connection, with two
CRLF appended.
>       I read the response (until i get two CRLF), which says http 200,
everything is fine
        
>       m_pBio = BIO_new_socket(m_fd, BIO_NOCLOSE);

>       SSL_set_bio(m_pSSL, m_pBio, m_pBio)

>           SSL_set_mode(m_pSSL, SSL_MODE_AUTO_RETRY);
>           BIO_set_nbio(m_pBio, 0);
>       and finally i call code = SSL_connect(m_pSSL); which fails
>       SSL_connect returns 0, and when i call SSL_get_error i get
SSL_ERROR_SYSCALL
>       i call WSAGetLastError() of winsock, it returns 0.

These seem to indicate that the local (client to proxy) TCP connection 
was closed gracefully at TCP level, but it shouldn't have been. 
Do you get any logging or console output from the proxy? 
Does it have tracing or debug options you can use?
Or can you put tcpdump or ssldump or similar on it?

Can you see with netstat or similar that a connection exists 
1) before CONNECT: from client to proxy
2) after CONNECT: client-proxy also proxy-server
3) after SSL_connect: NOT client-proxy? what about proxy-server?



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to