« Return to Thread: Assertion error with SSL

Assertion error with SSL

by Mathias Spoerr :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hello,

 

I have one ore question regarding SSL:

I always get an assertion error for this line:

      retKey = cryptSetAttribute(cryptSession, CRYPT_SESSINFO_ACTIVE, 1);

 

Whole code:

      // Create the session

      retKey = cryptCreateSession(&cryptSession, CRYPT_UNUSED, CRYPT_SESSION_SSL);

      // Add the server name, user name, and password

      retKey = cryptSetAttributeString(cryptSession, CRYPT_SESSINFO_SERVER_NAME,

            adresse.c_str(), adresse.size());

      retKey = cryptSetAttribute(cryptSession, CRYPT_SESSINFO_SERVER_PORT, httpsPort);       

      // Activate the session

      retKey = cryptSetAttribute(cryptSession, CRYPT_SESSINFO_ACTIVE, 1);

 

Error:

File: .\cert\ext_rd.c

Line: 569

Expression: flag == ATTR_FLAG_NONE

 

Regards,

mspoerr

 

 


_______________________________________________
Cryptlib mailing list
Cryptlib@... via Mail: cryptlib-request@...
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.

 « Return to Thread: Assertion error with SSL