Cryptlib test and proxy
David Pierre <[email protected]> Thu, 17 Jan 2013 00:03:41 -0800 (PST)
| Newsgroups | gmane.comp.encryption.cryptlib |
|---|---|
| Message-ID | <[email protected]> |
Hi, I try to use cryptlib, particularly the SSL/TSL part. I read a good part of the manual, and i downloaded the project. In Visual Studio 2008, it compiled fine, but when i ran test, i got issues. I commented out tests i do not want, and i got these traces : Initialising cryptlib...done. Testing session URL parsing... Session URL parsing succeeded. Testing TLS session... Remote host: https://www.paypal.com. Attempt to activate TLS session failed with error code -40, line 1035. No extended error information available. (Server could be down, faking it and continuing...) I got same error message for TLS 1.1 and 1.2. So I looked for a solution, and I read in manual the paragraph about proxy. I can't access the internet without this proxy, so i tried to apply manual advices. Shutting down the firewall, result was the same. I looked in the code, and i found in ssl.c this part : #if 0 /* Optional proxy for net access */ status = cryptSetAttributeString( CRYPT_UNUSED, CRYPT_OPTION_NET_HTTP_PROXY, "[Autodetect]", 12 ); #endif /* 0 */ So i changed 0 to 1, to enable proxy. The error remains the same. I tried to debug, cryptSetAttributeString worked fine (returns 0), the test always fails on : status = cryptSetAttribute( cryptSession, CRYPT_SESSINFO_ACTIVE, TRUE ); As far as i understand the code, it is when it tried to establish the connection. It always returns -40 error code. I also tried to move cryptSetAttributeString just behind cryptCreateSession, but it doesn't change anything. In an other way, i changed cryptSetAttributeString "CRYPT_UNUSED" parameter by "cryptSession", but this time i got a -2 error code. I don't understand, because i saw in code that cryptSetAttributeString was used with "cryptSession" as first parameter. How could i have a working solution ? I will try to do a simplier test, but i think it will not work if the official one doesn't work. PS : i forgot, i'm on Windows XP, with Visual Studio 2008 and Cryptlib 3.4.2 -- View this message in context: http://old.nabble.com/Cryptlib-test-and-proxy-tp34907779p34907779.html Sent from the Cryptlib mailing list archive at Nabble.com. _______________________________________________ Cryptlib mailing list [email protected] via Mail: [email protected] Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/ http://news.gmane.org/gmane.comp.encryption.cryptlib Posts from non-subscribed addresses are blocked to prevent spam, please subscribe in order to post messages.