Re: CPSignHash error 80090008

From: iandoll (iandoll_at_yahoo.com)
Date: 12/22/04


Date: 22 Dec 2004 07:02:16 -0800

Hi Laszlo,

I have done everything as you described. Instead of calling CryptoXXX
function,
I have loaded 'Microsoft RSA SChannel Cryptographic Provider', which is

rsaenh.dll (checked in registry)
A have created my own CSP_CONTEXT structure in which I keep pointers
on CPxxx functions and HCRYPTPROV of default provider and also I have
made all
CPxxx functions where I am calling appropriate CPxx function from DLL.

When I go to desired URL, CSP is loaded and all function from it is
called, but
function CPSignHash still generates error 80090008.
I you like I can send you complete project?

Do I need to make own structure for HCRYPTHASH as well?
And not to forward HCRYPTHASH which is created by default CSP.
I can make something like:
typedef struct CSP_HASH {
HCRYPTHASH hHash;
        } CSP_HASH, *PCSP_HASH;
        
Thanks,
Ian