Re: Plug-n-Play PKI

Ed Curren <[email protected]>
Newsgroups gmane.comp.encryption.cryptlib
Message-ID <[email protected]>
Hey Peter,
I have tracked down where the error is occuring (kinda).  When the CMP client connects to the CMP server, the line of code that activates the CMP server session returns an error code of CRYPT_ERROR_NOTFOUND (-43).  The next line of code I call is to get the CRYPT_ATTRIBUTE_ERRORMESSAGE from the session, which returns a -2.  The next line of code I call is to get the attribute string CRYPT_ATTRIBUTE_ERRORMESSAGE.  The cryptGetAttributeString function returns a -1 and there isn't a text string to give me more information.
 
I have attached 3 files to this email with debugging information for each consisting of the console output and the files used in running the code, (attached to save space in the email). 
 
Step 1 is the setup of the CA and adding a PKI user to the CA.
Step 2 is starting the CMP server
Step 3 is starting the CMP client.
 
Thanks very much Peter.
Ed
 
> From: [email protected]
> To: [email protected]
> Subject: Re: Plug-n-Play PKI
> Date: Mon, 13 Dec 2010 04:46:05 +1300
> 
> Edward Curren <[email protected]> writes:
> 
> >The extended error information call returns a -2.
> 
> From reading the CRYPT_ATTRIBUTE_ERRORMESSAGE? That should return a string
> value.
> 
> >Another piece of interesting information, (well interesting to me anyway) is
> >the first time I run the code the return code from
> >
> >result = cryptSetAttribute( cryptSession, CRYPT_SESSINFO_ACTIVE, TRUE );
> >
> >the result code is -15. After that the return code is -40.
> 
> Can you build cryptlib in debug mode and run that? That'll throw a debug
> exception when it hits the first error.
> 
> Peter.
>

_______________________________________________
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.
Step1.zip (application/x-zip-compressed, 4.8 KB) - not displayed
Step2.zip (application/x-zip-compressed, 6.2 KB) - not displayed
Step3.zip (application/x-zip-compressed, 7.4 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.