Re: Error while enrolling a digital certificate with our custom CS
From: Doug Barlow (soft_pedal_at_hotmail.com)
Date: 12/29/04
- Next message: Valery Pryamikov: "Re: CryptoAPI and private key /not public/ encryption with CryptEncrypt - can not use CryptHash* functions"
- Previous message: Alun Jones [MSFT]: "Re: CryptoAPI and private key /not public/ encryption with CryptEncrypt - can not use CryptHash* functions"
- In reply to: shiva: "Re: Error while enrolling a digital certificate with our custom CS"
- Next in thread: David Cross [MS]: "Re: Error while enrolling a digital certificate with our custom CS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 29 Dec 2004 17:03:40 GMT
That error code 0x57 is the general error returned when an exception of any
sort occured in the CSP code. That can include bad pointers, arithmetic
overflows, debugging breakpoints, and of course, not properly saving the
value of ESP across a function call.
Do you have libraries or external DLLs you call in your CSP? Verify you are
using the correct calling conventions for each of them. Try running IE
under the debugger when enrolling a certificate, to see if it can catch the
location of the exception.
Doug Barlow
The Soft Pedal Shop
CSP Design & Development Consulting
http://www.SoftPedal.net
-- "shiva" <shiva@discussions.microsoft.com> wrote in message news:06548EBB-24EB-4A03-8190-563438EDCFC1@microsoft.com... > Hi Doug Barlow > > Thanks for ur immediate response. > But still iam finding the same problem,while enrolling the certificate > after > i changed all the entry points declared using "WINAPI" > Actually when i tried testing a csp by writing a exe its showing error as > Acquirecontext failed error:0x57 > > will u please tell me how to proceed further > > Thanks in Advance > > shiva > > > > "Doug Barlow" wrote: > >> All CSP entry points should be declared using the "WINAPI" calling >> convention. For example, >> >> EXTERN_C BOOL WINAPI >> CPAcquireContext(...) >> >> Doug Barlow >> The Soft Pedal Shop >> CSP Design & Development Consulting >> http://www.SoftPedal.net >> >> -- >> "shiva" <shiva@discussions.microsoft.com> wrote in message >> news:48F1E417-70C4-4F7B-860E-204CA7DEC1A2@microsoft.com... >> >I am involved in Custom CSP creation... and I need to be clarified >> > i had succesfully created the my csp.dll and registered that >> > successfully >> > in >> > the registry. >> > when iam trying to enroll a digital certificate using that custom csp >> > iam >> > getting the follwing error >> > >> > DEBUG ERROR! >> > >> > Program:c:\Program Files\InternetExplorer\iexplore.exe >> > Module: >> > File:i386\chkesp.c >> > Line:42 >> > >> > The Value of ESP was not properly saved across a function call .This is >> > usually a result of calling a function declared with one calling >> > convention >> > with a function pointer declared with a different calling convention >> > >> > when i ignore this error it showing >> > >> > Error:5 >> > >> > Please help in this to resolve >> > >> > >> > >> > >> >> >>
- Next message: Valery Pryamikov: "Re: CryptoAPI and private key /not public/ encryption with CryptEncrypt - can not use CryptHash* functions"
- Previous message: Alun Jones [MSFT]: "Re: CryptoAPI and private key /not public/ encryption with CryptEncrypt - can not use CryptHash* functions"
- In reply to: shiva: "Re: Error while enrolling a digital certificate with our custom CS"
- Next in thread: David Cross [MS]: "Re: Error while enrolling a digital certificate with our custom CS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|