Re: Error while enrolling a digital certificate with our custom CS

From: Doug Barlow (soft_pedal_at_hotmail.com)
Date: 12/29/04


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
>> >
>> >
>> >
>> >
>>
>>
>> 


Relevant Pages

  • Re: Error while enrolling a digital certificate with our custom CSP
    ... All CSP entry points should be declared using the "WINAPI" calling ... convention. ... EXTERN_C BOOL WINAPI ... CSP Design & Development Consulting ...
    (microsoft.public.platformsdk.security)
  • Re: Error while enrolling a digital certificate with our custom CS
    ... This tool may help you test your CSP: ... CSP test suite: ... Windows Server 2003 web enrollment and troubleshooting guide: ... >>> All CSP entry points should be declared using the "WINAPI" calling>> convention. ...
    (microsoft.public.platformsdk.security)
  • Re: single dot prefix for hyperlinks
    ... "Test.asp" is found in the same folder as the target page calling the ... hyperlink "Last Image"? ... One is "csp" ... Otherwise the resolution of the URLs ought to point to the same ...
    (alt.html)
  • Re: Outlook Sequence of CSP procedure call
    ... "Doug Barlow" wrote: ... Since the handle to the session key is from your CSP, ... message since the symetric key for encription should be used by theDEFAULT ... OUTLOOK is calling our CSP to decrypt and encrypt the message apart also ...
    (microsoft.public.platformsdk.security)
  • Re: Sign CSP in Win XP
    ... Do you mean you want to deploy your CSP to your users? ... you need to apply to Microsoft to get it officially signed, ... Doug Barlow ... The Soft Pedal Shop ...
    (microsoft.public.platformsdk.security)