RE: How to debug a custom CSP?
From: lelteto (lelteto_at_discussions.microsoft.com)
Date: 02/03/05
- Next message: lelteto: "RE: Problems with public key decryption with RSA"
- Previous message: Benjy: "Automatic TGT request"
- In reply to: Phoebe: "How to debug a custom CSP?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 3 Feb 2005 00:47:02 -0800
When you say 'signed the CSP" I assume it's not signed by Microsoft but
test-signed (by you). In newer Windows versions that will not help, ie.
Windows will not load your CSP - unless a Kernel debugger is loaded on your
system. Note that it is not required to USE the kernel debugger - you can use
your app-level debugger - only that it is present on your system.
An alternative solution is to patch advapi32.dll to disable this checking.
Search for posts in this forum with keyword "advapi32" and you will find
posts for various versions of that dll to be patched for CSP testing.
Laszlo Elteto
SafeNet, Inc.
"Phoebe" wrote:
> I am writing a custom CSP in Visual C++ win2k sp4. I want to debug the DLL
> under VC++ environment. How do I do it?
>
> I have tried the following steps, but they don't work at all. Do I need to
> use Kernel debugger to debug CSP DLL?
> 1. sign the csp.dll
> 2. Right click the project, in the project properties page dialog
> Choose "Configuration Properties\Debugging", and input the client EXE name
> in the "Command" edit box.
> 3. Set a breakpoint in the function CPAcquireContext in csp.dll
> 4. Right click the project again. Select Debug->start new instance. The
> client EXE is running. The CryptAcquireContext is called in the client EXE.
> 5. However the breakpoint in CPAcquireContext of csp.dll never get hit.
>
> Could you shed some lights how to debug CSP dll? Thank you very much
>
> Phoebe
>
>
>
- Next message: lelteto: "RE: Problems with public key decryption with RSA"
- Previous message: Benjy: "Automatic TGT request"
- In reply to: Phoebe: "How to debug a custom CSP?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|