[xmlsec] signing under win98

Luka Por luka at zrcalo.si
Sun Oct 9 13:54:13 PDT 2005


Hello

Some time ago i wrote about a leak in verify function.
With libxml 2.2-6-20 the leak was fixed, just for info.

Now i am using the latest xmlsec with mscrypto and signing failed under 
win98.
I found the problem in unit digest.c in function 
xmlSecMSCryptoDigestInitialize.

In that function you call

if (!CryptAcquireContext(&ctx->provider, NULL, MS_PROV_STRONG, 
PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {

an that function fails but when i replace that with

if (!CryptAcquireContext(&ctx->provider, NULL, NULL, PROV_RSA_FULL,
CRYPT_VERIFYCONTEXT)) {

It works yust fine.


Luka Por



More information about the xmlsec mailing list