Ignore:
Timestamp:
Dec 18, 2011, 10:28:22 PM (14 years ago)
Author:
dmik
Message:

Merge branch gcc-kmk to trunk.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1 bin
        2 Makefile.inc
         1env.cmd
         2LocalConfig.kmk
    • Property svn:mergeinfo set to
      /branches/gcc-kmkmergedeligible
  • trunk/src/crypt32/decode.c

    r21354 r21916  
    4848#include "winnls.h"
    4949#include "snmp.h"
    50 #include "wine\debug.h"
    51 #include "wine\exception.h"
     50#include "wine/debug.h"
     51#include "wine/exception.h"
    5252#include "crypt32_private.h"
    5353
     
    784784        BYTE lenBytes = GET_LEN_BYTES(pbEncoded[1]);
    785785        DWORD bytesNeeded = sizeof(CRYPT_DER_BLOB);
    786        
     786
    787787        if (!(dwFlags & CRYPT_DECODE_NOCOPY_FLAG))
    788788            bytesNeeded += 1 + lenBytes + dataLen;
     
    12321232            const BYTE *ptr;
    12331233
    1234             snprintf(firstTwo, sizeof(firstTwo), "%d.%d",
     1234            crypt32_snprintf(firstTwo, sizeof(firstTwo), "%d.%d",
    12351235             pbEncoded[1 + lenBytes] / 40,
    12361236             pbEncoded[1 + lenBytes] - (pbEncoded[1 + lenBytes] / 40)
     
    12611261                    val <<= 7;
    12621262                    val |= *ptr++;
    1263                     snprintf(str, sizeof(str), ".%d", val);
     1263                    crypt32_snprintf(str, sizeof(str), ".%d", val);
    12641264                    bytesNeeded += strlen(str);
    12651265                }
     
    15621562
    15631563                    value->Value.cbData = MultiByteToWideChar(CP_UTF8, 0,
    1564                      (LPCSTR)pbEncoded + 1 + lenBytes, dataLen, 
     1564                     (LPCSTR)pbEncoded + 1 + lenBytes, dataLen,
    15651565                     str, bytesNeeded - sizeof(CERT_NAME_VALUE)) * 2;
    15661566                    break;
     
    27412741       offsetof(CRYPT_ALGORITHM_IDENTIFIER, pszObjId), 0 },
    27422742     { 0, offsetof(CRYPT_ALGORITHM_IDENTIFIER, Parameters),
    2743        CRYPT_AsnDecodeCopyBytes, sizeof(CRYPT_OBJID_BLOB), TRUE, TRUE, 
     2743       CRYPT_AsnDecodeCopyBytes, sizeof(CRYPT_OBJID_BLOB), TRUE, TRUE,
    27442744       offsetof(CRYPT_ALGORITHM_IDENTIFIER, Parameters.pbData), 0 },
    27452745    };
     
    34213421        struct AsnDecodeSequenceItem items[] = {
    34223422         { 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,
    34243424           offsetof(CERT_BASIC_CONSTRAINTS_INFO, SubjectType.pbData), 0 },
    34253425         { ASN_INTEGER, offsetof(CERT_BASIC_CONSTRAINTS_INFO,
Note: See TracChangeset for help on using the changeset viewer.