Re: Cryptlib test and proxy
David Pierre <[email protected]> Thu, 17 Jan 2013 03:04:08 -0800 (PST)
| Newsgroups | gmane.comp.encryption.cryptlib |
|---|---|
| Message-ID | <[email protected]> |
Hi, I performed other tests without success. When i tried my exe on another PC connecting without proxy, my tests work. To bypass proxy problem, i duplicated the project to do a server part and a client part. My server part is : status = getPrivateKey( &privateKey, USER_PRIVKEY_FILE, USER_PRIVKEY_LABEL, TEST_PRIVKEY_PASSWORD ); status = cryptCreateSession( &cryptSession, CRYPT_UNUSED, CRYPT_SESSION_SSL_SERVER ); status = cryptSetAttribute( cryptSession, CRYPT_SESSINFO_PRIVATEKEY, privateKey ); status = cryptSetAttribute( cryptSession, CRYPT_SESSINFO_ACTIVE, 1 ); I just wrote this code in testlib.c, commenting out other tests. I started the exe, no problem, the server part worked, wainting for connection. My client part is : status = cryptCreateSession( &cryptSession, CRYPT_UNUSED, CRYPT_SESSION_SSL ); status = cryptSetAttributeString( cryptSession, CRYPT_SESSINFO_SERVER_NAME, TEXT( "localhost" ), 9 ); status = cryptSetAttribute( cryptSession, CRYPT_SESSINFO_ACTIVE, 1 ); I started my client part (server still running), but i got the same error on activation, a -40 error code. Did i miss something ? I also tried with proxy on client part, result was the same. -- View this message in context: http://old.nabble.com/Cryptlib-test-and-proxy-tp34907779p34912705.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.