Changeset 21916 for trunk/src/crypt32/decode.c
- Timestamp:
- Dec 18, 2011, 10:28:22 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 bin 2 Makefile.inc 1 env.cmd 2 LocalConfig.kmk
-
-
Property svn:mergeinfo
set to
/branches/gcc-kmk merged eligible
- Property svn:ignore
-
trunk/src/crypt32/decode.c
r21354 r21916 48 48 #include "winnls.h" 49 49 #include "snmp.h" 50 #include "wine \debug.h"51 #include "wine \exception.h"50 #include "wine/debug.h" 51 #include "wine/exception.h" 52 52 #include "crypt32_private.h" 53 53 … … 784 784 BYTE lenBytes = GET_LEN_BYTES(pbEncoded[1]); 785 785 DWORD bytesNeeded = sizeof(CRYPT_DER_BLOB); 786 786 787 787 if (!(dwFlags & CRYPT_DECODE_NOCOPY_FLAG)) 788 788 bytesNeeded += 1 + lenBytes + dataLen; … … 1232 1232 const BYTE *ptr; 1233 1233 1234 snprintf(firstTwo, sizeof(firstTwo), "%d.%d",1234 crypt32_snprintf(firstTwo, sizeof(firstTwo), "%d.%d", 1235 1235 pbEncoded[1 + lenBytes] / 40, 1236 1236 pbEncoded[1 + lenBytes] - (pbEncoded[1 + lenBytes] / 40) … … 1261 1261 val <<= 7; 1262 1262 val |= *ptr++; 1263 snprintf(str, sizeof(str), ".%d", val);1263 crypt32_snprintf(str, sizeof(str), ".%d", val); 1264 1264 bytesNeeded += strlen(str); 1265 1265 } … … 1562 1562 1563 1563 value->Value.cbData = MultiByteToWideChar(CP_UTF8, 0, 1564 (LPCSTR)pbEncoded + 1 + lenBytes, dataLen, 1564 (LPCSTR)pbEncoded + 1 + lenBytes, dataLen, 1565 1565 str, bytesNeeded - sizeof(CERT_NAME_VALUE)) * 2; 1566 1566 break; … … 2741 2741 offsetof(CRYPT_ALGORITHM_IDENTIFIER, pszObjId), 0 }, 2742 2742 { 0, offsetof(CRYPT_ALGORITHM_IDENTIFIER, Parameters), 2743 CRYPT_AsnDecodeCopyBytes, sizeof(CRYPT_OBJID_BLOB), TRUE, TRUE, 2743 CRYPT_AsnDecodeCopyBytes, sizeof(CRYPT_OBJID_BLOB), TRUE, TRUE, 2744 2744 offsetof(CRYPT_ALGORITHM_IDENTIFIER, Parameters.pbData), 0 }, 2745 2745 }; … … 3421 3421 struct AsnDecodeSequenceItem items[] = { 3422 3422 { ASN_BITSTRING, offsetof(CERT_BASIC_CONSTRAINTS_INFO, SubjectType), 3423 CRYPT_AsnDecodeBitsInternal, sizeof(CRYPT_BIT_BLOB), FALSE, TRUE, 3423 CRYPT_AsnDecodeBitsInternal, sizeof(CRYPT_BIT_BLOB), FALSE, TRUE, 3424 3424 offsetof(CERT_BASIC_CONSTRAINTS_INFO, SubjectType.pbData), 0 }, 3425 3425 { ASN_INTEGER, offsetof(CERT_BASIC_CONSTRAINTS_INFO,
Note:
See TracChangeset
for help on using the changeset viewer.