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 At this point, i have a good connection i believe. Next, a bio is created from the file descriptor of the socket with m_pBio = BIO_new_socket(m_fd, BIO_NOCLOSE); We get an ssl pointer from the context and bind the bio to it by calling SSL_set_bio(m_pSSL, m_pBio, m_pBio) these two calls follow 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. Everything works fine if i connect directly to ssl server. Any help, idea, truely appreciated