crypt32: Trace a few more items when decoding.

This commit is contained in:
Juan Lang 2007-07-25 18:14:25 -07:00 committed by Alexandre Julliard
parent c58cb379eb
commit b8ab462100
1 changed files with 6 additions and 2 deletions

View File

@ -366,6 +366,8 @@ static BOOL CRYPT_AsnDecodeSequenceItems(DWORD dwCertEncodingType,
items[i].size % sizeof(DWORD); items[i].size % sizeof(DWORD);
ptr += 1 + nextItemLenBytes + nextItemLen; ptr += 1 + nextItemLenBytes + nextItemLen;
decoded += 1 + nextItemLenBytes + nextItemLen; decoded += 1 + nextItemLenBytes + nextItemLen;
TRACE("item %d: decoded %d bytes\n", i,
1 + nextItemLenBytes + nextItemLen);
} }
else if (items[i].optional && else if (items[i].optional &&
GetLastError() == CRYPT_E_ASN1_BADTAG) GetLastError() == CRYPT_E_ASN1_BADTAG)
@ -381,6 +383,8 @@ static BOOL CRYPT_AsnDecodeSequenceItems(DWORD dwCertEncodingType,
} }
else else
{ {
TRACE("item %d: decoded %d bytes\n", i,
1 + nextItemLenBytes + nextItemLen);
ptr += 1 + nextItemLenBytes + nextItemLen; ptr += 1 + nextItemLenBytes + nextItemLen;
decoded += 1 + nextItemLenBytes + nextItemLen; decoded += 1 + nextItemLenBytes + nextItemLen;
items[i].size = items[i].minSize; items[i].size = items[i].minSize;
@ -393,8 +397,8 @@ static BOOL CRYPT_AsnDecodeSequenceItems(DWORD dwCertEncodingType,
} }
else else
{ {
TRACE("tag %02x doesn't match expected %02x\n", TRACE("item %d: tag %02x doesn't match expected %02x\n",
ptr[0], items[i].tag); i, ptr[0], items[i].tag);
SetLastError(CRYPT_E_ASN1_BADTAG); SetLastError(CRYPT_E_ASN1_BADTAG);
ret = FALSE; ret = FALSE;
} }