Changeset 21872 for branches/gcc-kmk/src


Ignore:
Timestamp:
Dec 9, 2011, 6:11:09 PM (14 years ago)
Author:
dmik
Message:

Port CRYPT32 to GCC/kBuild.

Location:
branches/gcc-kmk/src
Files:
1 added
9 edited
1 moved

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/src/Makefile.kmk

    r21871 r21872  
    3636include $(PATH_SUB_CURRENT)/winspool/Makefile.kmk
    3737include $(PATH_SUB_CURRENT)/comdlg32/Makefile.kmk
     38include $(PATH_SUB_CURRENT)/crypt32/Makefile.kmk
    3839
    3940include $(FILE_KBUILD_SUB_FOOTER)
  • branches/gcc-kmk/src/crypt32/crypt32.def

    r21325 r21872  
    55EXPORTS
    66
    7 CertAddCRLContextToStore = _CertAddCRLContextToStore@16 @1
    8 CertAddCTLContextToStore = _CertAddCTLContextToStore@16 @2
    9 CertAddCertificateContextToStore = _CertAddCertificateContextToStore@16 @3
    10 CertAddEncodedCRLToStore = _CertAddEncodedCRLToStore@24 @4
    11 CertAddEncodedCTLToStore = _CertAddEncodedCTLToStore@24 @5
    12 CertAddEncodedCertificateToStore = _CertAddEncodedCertificateToStore@24 @6
     7CertAddCRLContextToStore = "_CertAddCRLContextToStore@16" @1
     8CertAddCTLContextToStore = "_CertAddCTLContextToStore@16" @2
     9CertAddCertificateContextToStore = "_CertAddCertificateContextToStore@16" @3
     10CertAddEncodedCRLToStore = "_CertAddEncodedCRLToStore@24" @4
     11CertAddEncodedCTLToStore = "_CertAddEncodedCTLToStore@24" @5
     12CertAddEncodedCertificateToStore = "_CertAddEncodedCertificateToStore@24" @6
    1313;CertAddEncodedCertificateToSystemStoreA = _CertAddEncodedCertificateToSystemStoreA @7
    1414;CertAddEncodedCertificateToSystemStoreW = _CertAddEncodedCertificateToSystemStoreW @8
    15 CertAddEnhancedKeyUsageIdentifier = _CertAddEnhancedKeyUsageIdentifier@8 @9
    16 CertAddSerializedElementToStore = _CertAddSerializedElementToStore@32 @10
    17 CertAddStoreToCollection = _CertAddStoreToCollection@16 @11
    18 CertAlgIdToOID = _CertAlgIdToOID@4 @12
    19 CertCloseStore = _CertCloseStore@8 @13
    20 CertCompareCertificate = _CertCompareCertificate@12 @14
    21 CertCompareCertificateName = _CertCompareCertificateName@12 @15
    22 CertCompareIntegerBlob = _CertCompareIntegerBlob@8 @16
    23 CertComparePublicKeyInfo = _CertComparePublicKeyInfo@12 @17
    24 CertControlStore = _CertControlStore@16 @18
    25 CertCreateCRLContext = _CertCreateCRLContext@12 @19
    26 CertCreateCTLContext = _CertCreateCTLContext@12 @20
    27 CertCreateCertificateChainEngine = _CertCreateCertificateChainEngine@8 @21
    28 CertCreateCertificateContext = _CertCreateCertificateContext@12 @22
    29 CertCreateSelfSignCertificate = _CertCreateSelfSignCertificate@32 @23
    30 CertDeleteCRLFromStore = _CertDeleteCRLFromStore@4 @24
    31 CertDeleteCTLFromStore = _CertDeleteCTLFromStore@4 @25
    32 CertDeleteCertificateFromStore = _CertDeleteCertificateFromStore@4 @26
    33 CertDuplicateCRLContext = _CertDuplicateCRLContext@4 @27
    34 CertDuplicateCTLContext = _CertDuplicateCTLContext@4 @28
    35 CertDuplicateCertificateChain = _CertDuplicateCertificateChain@4 @29
    36 CertDuplicateCertificateContext = _CertDuplicateCertificateContext@4 @30
    37 CertDuplicateStore = _CertDuplicateStore@4 @31
    38 CertEnumCRLContextProperties = _CertEnumCRLContextProperties@8 @32
    39 CertEnumCRLsInStore = _CertEnumCRLsInStore@8 @33
    40 CertEnumCTLContextProperties = _CertEnumCTLContextProperties@8 @34
    41 CertEnumCTLsInStore = _CertEnumCTLsInStore@8 @35
    42 CertEnumCertificateContextProperties = _CertEnumCertificateContextProperties@8 @36
    43 CertEnumCertificatesInStore = _CertEnumCertificatesInStore@8 @37
    44 CertEnumPhysicalStore = _CertEnumPhysicalStore@16 @38
    45 CertEnumSystemStore = _CertEnumSystemStore@16 @39
    46 CertFindAttribute = _CertFindAttribute@12 @40
    47 CertFindCRLInStore = _CertFindCRLInStore@24 @41
    48 CertFindCTLInStore = _CertFindCTLInStore@24 @42
    49 CertFindCertificateInStore = _CertFindCertificateInStore@24 @43
    50 CertFindCertificateInCRL = _CertFindCertificateInCRL@20 @44
    51 CertFindExtension = _CertFindExtension@12 @45
    52 CertFindRDNAttr = _CertFindRDNAttr@8 @46
     15CertAddEnhancedKeyUsageIdentifier = "_CertAddEnhancedKeyUsageIdentifier@8" @9
     16CertAddSerializedElementToStore = "_CertAddSerializedElementToStore@32" @10
     17CertAddStoreToCollection = "_CertAddStoreToCollection@16" @11
     18CertAlgIdToOID = "_CertAlgIdToOID@4" @12
     19CertCloseStore = "_CertCloseStore@8" @13
     20CertCompareCertificate = "_CertCompareCertificate@12" @14
     21CertCompareCertificateName = "_CertCompareCertificateName@12" @15
     22CertCompareIntegerBlob = "_CertCompareIntegerBlob@8" @16
     23CertComparePublicKeyInfo = "_CertComparePublicKeyInfo@12" @17
     24CertControlStore = "_CertControlStore@16" @18
     25CertCreateCRLContext = "_CertCreateCRLContext@12" @19
     26CertCreateCTLContext = "_CertCreateCTLContext@12" @20
     27CertCreateCertificateChainEngine = "_CertCreateCertificateChainEngine@8" @21
     28CertCreateCertificateContext = "_CertCreateCertificateContext@12" @22
     29CertCreateSelfSignCertificate = "_CertCreateSelfSignCertificate@32" @23
     30CertDeleteCRLFromStore = "_CertDeleteCRLFromStore@4" @24
     31CertDeleteCTLFromStore = "_CertDeleteCTLFromStore@4" @25
     32CertDeleteCertificateFromStore = "_CertDeleteCertificateFromStore@4" @26
     33CertDuplicateCRLContext = "_CertDuplicateCRLContext@4" @27
     34CertDuplicateCTLContext = "_CertDuplicateCTLContext@4" @28
     35CertDuplicateCertificateChain = "_CertDuplicateCertificateChain@4" @29
     36CertDuplicateCertificateContext = "_CertDuplicateCertificateContext@4" @30
     37CertDuplicateStore = "_CertDuplicateStore@4" @31
     38CertEnumCRLContextProperties = "_CertEnumCRLContextProperties@8" @32
     39CertEnumCRLsInStore = "_CertEnumCRLsInStore@8" @33
     40CertEnumCTLContextProperties = "_CertEnumCTLContextProperties@8" @34
     41CertEnumCTLsInStore = "_CertEnumCTLsInStore@8" @35
     42CertEnumCertificateContextProperties = "_CertEnumCertificateContextProperties@8" @36
     43CertEnumCertificatesInStore = "_CertEnumCertificatesInStore@8" @37
     44CertEnumPhysicalStore = "_CertEnumPhysicalStore@16" @38
     45CertEnumSystemStore = "_CertEnumSystemStore@16" @39
     46CertFindAttribute = "_CertFindAttribute@12" @40
     47CertFindCRLInStore = "_CertFindCRLInStore@24" @41
     48CertFindCTLInStore = "_CertFindCTLInStore@24" @42
     49CertFindCertificateInStore = "_CertFindCertificateInStore@24" @43
     50CertFindCertificateInCRL = "_CertFindCertificateInCRL@20" @44
     51CertFindExtension = "_CertFindExtension@12" @45
     52CertFindRDNAttr = "_CertFindRDNAttr@8" @46
    5353;CertFindSubjectInCTL = _CertFindSubjectInCTL @47
    54 CertFreeCRLContext = _CertFreeCRLContext@4 @48
    55 CertFreeCTLContext = _CertFreeCTLContext@4 @49
    56 CertFreeCertificateChain = _CertFreeCertificateChain@4 @50
    57 CertFreeCertificateChainEngine = _CertFreeCertificateChainEngine@4 @51
    58 CertFreeCertificateContext = _CertFreeCertificateContext@4 @52
    59 CertGetCRLContextProperty = _CertGetCRLContextProperty@16 @53
    60 CertGetCRLFromStore = _CertGetCRLFromStore@16 @54
    61 CertGetCTLContextProperty = _CertGetCTLContextProperty@16 @55
    62 CertGetCertificateChain = _CertGetCertificateChain@32 @56
    63 CertGetCertificateContextProperty = _CertGetCertificateContextProperty@16 @57
    64 CertGetEnhancedKeyUsage = _CertGetEnhancedKeyUsage@16 @58
     54CertFreeCRLContext = "_CertFreeCRLContext@4" @48
     55CertFreeCTLContext = "_CertFreeCTLContext@4" @49
     56CertFreeCertificateChain = "_CertFreeCertificateChain@4" @50
     57CertFreeCertificateChainEngine = "_CertFreeCertificateChainEngine@4" @51
     58CertFreeCertificateContext = "_CertFreeCertificateContext@4" @52
     59CertGetCRLContextProperty = "_CertGetCRLContextProperty@16" @53
     60CertGetCRLFromStore = "_CertGetCRLFromStore@16" @54
     61CertGetCTLContextProperty = "_CertGetCTLContextProperty@16" @55
     62CertGetCertificateChain = "_CertGetCertificateChain@32" @56
     63CertGetCertificateContextProperty = "_CertGetCertificateContextProperty@16" @57
     64CertGetEnhancedKeyUsage = "_CertGetEnhancedKeyUsage@16" @58
    6565;CertGetIntendedKeyUsage = _CertGetIntendedKeyUsage @59
    66 CertGetIssuerCertificateFromStore = _CertGetIssuerCertificateFromStore@16 @60
    67 CertGetNameStringA = _CertGetNameStringA@24 @61
    68 CertGetNameStringW = _CertGetNameStringW@24 @62
    69 CertGetPublicKeyLength = _CertGetPublicKeyLength@8 @63
    70 CertGetStoreProperty = _CertGetStoreProperty@16 @64
    71 CertGetSubjectCertificateFromStore = _CertGetSubjectCertificateFromStore@12 @65
    72 CertGetValidUsages = _CertGetValidUsages@20 @66
     66CertGetIssuerCertificateFromStore = "_CertGetIssuerCertificateFromStore@16" @60
     67CertGetNameStringA = "_CertGetNameStringA@24" @61
     68CertGetNameStringW = "_CertGetNameStringW@24" @62
     69CertGetPublicKeyLength = "_CertGetPublicKeyLength@8" @63
     70CertGetStoreProperty = "_CertGetStoreProperty@16" @64
     71CertGetSubjectCertificateFromStore = "_CertGetSubjectCertificateFromStore@12" @65
     72CertGetValidUsages = "_CertGetValidUsages@20" @66
    7373;CertIsRDNAttrsInCertificateName = _CertIsRDNAttrsInCertificateName @67
    74 CertIsValidCRLForCertificate = _CertIsValidCRLForCertificate@16 @68
    75 CertNameToStrA = _CertNameToStrA@20 @69
    76 CertNameToStrW = _CertNameToStrW@20 @70
    77 CertOIDToAlgId = _CertOIDToAlgId@4 @71
    78 CertOpenStore = _CertOpenStore@20 @72
    79 CertOpenSystemStoreA = _CertOpenSystemStoreA@8 @73
    80 CertOpenSystemStoreW = _CertOpenSystemStoreW@8 @74
    81 CertRDNValueToStrA = _CertRDNValueToStrA@16 @75
    82 CertRDNValueToStrW = _CertRDNValueToStrW@16 @76
    83 CertRemoveEnhancedKeyUsageIdentifier = _CertRemoveEnhancedKeyUsageIdentifier@8 @77
    84 CertRemoveStoreFromCollection = _CertRemoveStoreFromCollection@8 @78
    85 CertSaveStore = _CertSaveStore@24 @79
    86 CertSerializeCRLStoreElement = _CertSerializeCRLStoreElement@16 @80
    87 CertSerializeCTLStoreElement = _CertSerializeCTLStoreElement@16 @81
    88 CertSerializeCertificateStoreElement = _CertSerializeCertificateStoreElement@16 @82
    89 CertSetCRLContextProperty = _CertSetCRLContextProperty@16 @83
    90 CertSetCTLContextProperty = _CertSetCTLContextProperty@16 @84
    91 CertSetCertificateContextProperty = _CertSetCertificateContextProperty@16 @85
    92 CertSetEnhancedKeyUsage = _CertSetEnhancedKeyUsage@8 @86
    93 CertSetStoreProperty = _CertSetStoreProperty@16 @87
    94 CertStrToNameA = _CertStrToNameA@28 @88
    95 CertStrToNameW = _CertStrToNameW@28 @89
    96 CertVerifyCertificateChainPolicy = _CertVerifyCertificateChainPolicy@16 @90
    97 CertVerifyCRLRevocation = _CertVerifyCRLRevocation@16 @91
    98 CertVerifyCRLTimeValidity = _CertVerifyCRLTimeValidity@8 @92
    99 CertVerifyCTLUsage = _CertVerifyCTLUsage@28 @93
    100 CertVerifyRevocation = _CertVerifyRevocation@28 @94
    101 CertVerifySubjectCertificateContext = _CertVerifySubjectCertificateContext@12 @95
    102 CertVerifyTimeValidity = _CertVerifyTimeValidity@8 @96
    103 CertVerifyValidityNesting = _CertVerifyValidityNesting@8 @97
     74CertIsValidCRLForCertificate = "_CertIsValidCRLForCertificate@16" @68
     75CertNameToStrA = "_CertNameToStrA@20" @69
     76CertNameToStrW = "_CertNameToStrW@20" @70
     77CertOIDToAlgId = "_CertOIDToAlgId@4" @71
     78CertOpenStore = "_CertOpenStore@20" @72
     79CertOpenSystemStoreA = "_CertOpenSystemStoreA@8" @73
     80CertOpenSystemStoreW = "_CertOpenSystemStoreW@8" @74
     81CertRDNValueToStrA = "_CertRDNValueToStrA@16" @75
     82CertRDNValueToStrW = "_CertRDNValueToStrW@16" @76
     83CertRemoveEnhancedKeyUsageIdentifier = "_CertRemoveEnhancedKeyUsageIdentifier@8" @77
     84CertRemoveStoreFromCollection = "_CertRemoveStoreFromCollection@8" @78
     85CertSaveStore = "_CertSaveStore@24" @79
     86CertSerializeCRLStoreElement = "_CertSerializeCRLStoreElement@16" @80
     87CertSerializeCTLStoreElement = "_CertSerializeCTLStoreElement@16" @81
     88CertSerializeCertificateStoreElement = "_CertSerializeCertificateStoreElement@16" @82
     89CertSetCRLContextProperty = "_CertSetCRLContextProperty@16" @83
     90CertSetCTLContextProperty = "_CertSetCTLContextProperty@16" @84
     91CertSetCertificateContextProperty = "_CertSetCertificateContextProperty@16" @85
     92CertSetEnhancedKeyUsage = "_CertSetEnhancedKeyUsage@8" @86
     93CertSetStoreProperty = "_CertSetStoreProperty@16" @87
     94CertStrToNameA = "_CertStrToNameA@28" @88
     95CertStrToNameW = "_CertStrToNameW@28" @89
     96CertVerifyCertificateChainPolicy = "_CertVerifyCertificateChainPolicy@16" @90
     97CertVerifyCRLRevocation = "_CertVerifyCRLRevocation@16" @91
     98CertVerifyCRLTimeValidity = "_CertVerifyCRLTimeValidity@8" @92
     99CertVerifyCTLUsage = "_CertVerifyCTLUsage@28" @93
     100CertVerifyRevocation = "_CertVerifyRevocation@28" @94
     101CertVerifySubjectCertificateContext = "_CertVerifySubjectCertificateContext@12" @95
     102CertVerifyTimeValidity = "_CertVerifyTimeValidity@8" @96
     103CertVerifyValidityNesting = "_CertVerifyValidityNesting@8" @97
    104104;CreateFileU = _CreateFileU@28 @98
    105 CryptBinaryToStringA = _CryptBinaryToStringA@20 @99
     105CryptBinaryToStringA = "_CryptBinaryToStringA@20" @99
    106106;CryptBinaryToStringW # = _CryptBinaryToStringW #@20 @100
    107 CryptStringToBinaryA = _CryptStringToBinaryA@28 @101
     107CryptStringToBinaryA = "_CryptStringToBinaryA@28" @101
    108108;CryptStringToBinaryW # = _CryptStringToBinaryW #@28 @102
    109109;CryptAcquireContextU = _CryptAcquireContextU@20 @103
    110 CryptAcquireCertificatePrivateKey = _CryptAcquireCertificatePrivateKey@24 @104
     110CryptAcquireCertificatePrivateKey = "_CryptAcquireCertificatePrivateKey@24" @104
    111111;CryptCloseAsyncHandle = _CryptCloseAsyncHandle @105
    112112;CryptCreateAsyncHandle = _CryptCreateAsyncHandle @106
    113113;CryptDecodeMessage = _CryptDecodeMessage @107
    114 CryptDecodeObject = _CryptDecodeObject@28 @108
    115 CryptDecodeObjectEx = _CryptDecodeObjectEx@32 @109
     114CryptDecodeObject = "_CryptDecodeObject@28" @108
     115CryptDecodeObjectEx = "_CryptDecodeObjectEx@32" @109
    116116;CryptDecryptAndVerifyMessageSignature = _CryptDecryptAndVerifyMessageSignature @110
    117117;CryptDecryptMessage = _CryptDecryptMessage @111
    118 CryptEncodeObject = _CryptEncodeObject@20 @112
    119 CryptEncodeObjectEx = _CryptEncodeObjectEx@28 @113
     118CryptEncodeObject = "_CryptEncodeObject@20" @112
     119CryptEncodeObjectEx = "_CryptEncodeObjectEx@28" @113
    120120;CryptEncryptMessage = _CryptEncryptMessage @114
    121121;CryptEnumOIDFunction = _CryptEnumOIDFunction @115
    122 CryptEnumOIDInfo = _CryptEnumOIDInfo@16 @116
     122CryptEnumOIDInfo = "_CryptEnumOIDInfo@16" @116
    123123;CryptEnumProvidersU = _CryptEnumProvidersU @117
    124124;CryptExportPKCS8 = _CryptExportPKCS8 @118
    125 CryptExportPublicKeyInfo = _CryptExportPublicKeyInfo@20 @119
    126 CryptExportPublicKeyInfoEx = _CryptExportPublicKeyInfoEx@32 @120
    127 CryptFindLocalizedName = _CryptFindLocalizedName@4 @121
    128 CryptFindOIDInfo = _CryptFindOIDInfo@12 @122
    129 CryptFormatObject = _CryptFormatObject@36 @123
    130 CryptFreeOIDFunctionAddress = _CryptFreeOIDFunctionAddress@8 @124
     125CryptExportPublicKeyInfo = "_CryptExportPublicKeyInfo@20" @119
     126CryptExportPublicKeyInfoEx = "_CryptExportPublicKeyInfoEx@32" @120
     127CryptFindLocalizedName = "_CryptFindLocalizedName@4" @121
     128CryptFindOIDInfo = "_CryptFindOIDInfo@12" @122
     129CryptFormatObject = "_CryptFormatObject@36" @123
     130CryptFreeOIDFunctionAddress = "_CryptFreeOIDFunctionAddress@8" @124
    131131;CryptGetAsyncParam = _CryptGetAsyncParam @125
    132 CryptGetDefaultOIDDllList = _CryptGetDefaultOIDDllList@16 @126
    133 CryptGetDefaultOIDFunctionAddress = _CryptGetDefaultOIDFunctionAddress@24 @127
    134 CryptGetMessageCertificates = _CryptGetMessageCertificates@20 @128
    135 CryptGetMessageSignerCount = _CryptGetMessageSignerCount@12 @129
    136 CryptGetOIDFunctionAddress = _CryptGetOIDFunctionAddress@24 @130
    137 CryptGetOIDFunctionValue = _CryptGetOIDFunctionValue@28 @131
    138 CryptHashCertificate = _CryptHashCertificate@28 @132
    139 CryptHashMessage = _CryptHashMessage@36 @133
    140 CryptHashPublicKeyInfo = _CryptHashPublicKeyInfo@28 @134
    141 CryptHashToBeSigned = _CryptHashToBeSigned@24 @135
     132CryptGetDefaultOIDDllList = "_CryptGetDefaultOIDDllList@16" @126
     133CryptGetDefaultOIDFunctionAddress = "_CryptGetDefaultOIDFunctionAddress@24" @127
     134CryptGetMessageCertificates = "_CryptGetMessageCertificates@20" @128
     135CryptGetMessageSignerCount = "_CryptGetMessageSignerCount@12" @129
     136CryptGetOIDFunctionAddress = "_CryptGetOIDFunctionAddress@24" @130
     137CryptGetOIDFunctionValue = "_CryptGetOIDFunctionValue@28" @131
     138CryptHashCertificate = "_CryptHashCertificate@28" @132
     139CryptHashMessage = "_CryptHashMessage@36" @133
     140CryptHashPublicKeyInfo = "_CryptHashPublicKeyInfo@28" @134
     141CryptHashToBeSigned = "_CryptHashToBeSigned@24" @135
    142142;CryptImportPKCS8 = _CryptImportPKCS8 @136
    143 CryptImportPublicKeyInfo = _CryptImportPublicKeyInfo@16 @137
    144 CryptImportPublicKeyInfoEx = _CryptImportPublicKeyInfoEx@28 @138
    145 CryptInitOIDFunctionSet = _CryptInitOIDFunctionSet@8 @139
    146 CryptInstallOIDFunctionAddress = _CryptInstallOIDFunctionAddress@24 @140
     143CryptImportPublicKeyInfo = "_CryptImportPublicKeyInfo@16" @137
     144CryptImportPublicKeyInfoEx = "_CryptImportPublicKeyInfoEx@28" @138
     145CryptInitOIDFunctionSet = "_CryptInitOIDFunctionSet@8" @139
     146CryptInstallOIDFunctionAddress = "_CryptInstallOIDFunctionAddress@24" @140
    147147;CryptLoadSip = _CryptLoadSip @141
    148 CryptMemAlloc = _CryptMemAlloc@4 @142
    149 CryptMemFree = _CryptMemFree@4 @143
    150 CryptMemRealloc = _CryptMemRealloc@8 @144
     148CryptMemAlloc = "_CryptMemAlloc@4" @142
     149CryptMemFree = "_CryptMemFree@4" @143
     150CryptMemRealloc = "_CryptMemRealloc@8" @144
    151151;CryptMsgCalculateEncodedLength = _CryptMsgCalculateEncodedLength @145
    152 CryptMsgClose = _CryptMsgClose@4 @146
    153 CryptMsgControl = _CryptMsgControl@16 @147
     152CryptMsgClose = "_CryptMsgClose@4" @146
     153CryptMsgControl = "_CryptMsgControl@16" @147
    154154;CryptMsgCountersign = _CryptMsgCountersign @148
    155155;CryptMsgCountersignEncoded = _CryptMsgCountersignEncoded @149
    156 CryptMsgDuplicate = _CryptMsgDuplicate@4 @150
     156CryptMsgDuplicate =     "_CryptMsgDuplicate@4" @150
    157157;CryptMsgEncodeAndSignCTL = _CryptMsgEncodeAndSignCTL @151
    158 CryptMsgGetAndVerifySigner = _CryptMsgGetAndVerifySigner@24 @152
    159 CryptMsgGetParam = _CryptMsgGetParam@20 @153
    160 CryptMsgOpenToDecode = _CryptMsgOpenToDecode@24 @154
    161 CryptMsgOpenToEncode = _CryptMsgOpenToEncode@24 @155
     158CryptMsgGetAndVerifySigner = "_CryptMsgGetAndVerifySigner@24" @152
     159CryptMsgGetParam = "_CryptMsgGetParam@20" @153
     160CryptMsgOpenToDecode = "_CryptMsgOpenToDecode@24" @154
     161CryptMsgOpenToEncode = "_CryptMsgOpenToEncode@24" @155
    162162;CryptMsgSignCTL = _CryptMsgSignCTL @156
    163 CryptMsgUpdate = _CryptMsgUpdate@16 @157
     163CryptMsgUpdate = "_CryptMsgUpdate@16" @157
    164164;CryptMsgVerifyCountersignatureEncoded = _CryptMsgVerifyCountersignatureEncoded @158
    165 CryptMsgVerifyCountersignatureEncodedEx = _CryptMsgVerifyCountersignatureEncodedEx@40 @159
    166 CryptProtectData = _CryptProtectData@28 @160
    167 CryptQueryObject = _CryptQueryObject@44 @161
    168 CryptRegisterDefaultOIDFunction = _CryptRegisterDefaultOIDFunction@16 @162
    169 CryptRegisterOIDFunction = _CryptRegisterOIDFunction@20 @163
     165CryptMsgVerifyCountersignatureEncodedEx = "_CryptMsgVerifyCountersignatureEncodedEx@40" @159
     166CryptProtectData = "_CryptProtectData@28" @160
     167CryptQueryObject = "_CryptQueryObject@44" @161
     168CryptRegisterDefaultOIDFunction = "_CryptRegisterDefaultOIDFunction@16" @162
     169CryptRegisterOIDFunction = "_CryptRegisterOIDFunction@20" @163
    170170;CryptRegisterOIDInfo = _CryptRegisterOIDInfo @164
    171 CryptSIPAddProvider = _CryptSIPAddProvider@4 @165
    172 CryptSIPCreateIndirectData = _CryptSIPCreateIndirectData@12 @166
    173 CryptSIPGetSignedDataMsg = _CryptSIPGetSignedDataMsg@20 @167
    174 CryptSIPLoad = _CryptSIPLoad@12 @168
    175 CryptSIPPutSignedDataMsg = _CryptSIPPutSignedDataMsg@20 @169
    176 CryptSIPRemoveProvider = _CryptSIPRemoveProvider@4 @170
    177 CryptSIPRemoveSignedDataMsg = _CryptSIPRemoveSignedDataMsg@8 @171
    178 CryptSIPRetrieveSubjectGuid = _CryptSIPRetrieveSubjectGuid@12 @172
    179 CryptSIPVerifyIndirectData = _CryptSIPVerifyIndirectData@8 @173
     171CryptSIPAddProvider = "_CryptSIPAddProvider@4" @165
     172CryptSIPCreateIndirectData = "_CryptSIPCreateIndirectData@12" @166
     173CryptSIPGetSignedDataMsg = "_CryptSIPGetSignedDataMsg@20" @167
     174CryptSIPLoad = "_CryptSIPLoad@12" @168
     175CryptSIPPutSignedDataMsg = "_CryptSIPPutSignedDataMsg@20" @169
     176CryptSIPRemoveProvider = "_CryptSIPRemoveProvider@4" @170
     177CryptSIPRemoveSignedDataMsg = "_CryptSIPRemoveSignedDataMsg@8" @171
     178CryptSIPRetrieveSubjectGuid = "_CryptSIPRetrieveSubjectGuid@12" @172
     179CryptSIPVerifyIndirectData = "_CryptSIPVerifyIndirectData@8" @173
    180180;CryptSetAsyncParam = _CryptSetAsyncParam @174
    181 CryptSetOIDFunctionValue = _CryptSetOIDFunctionValue@28 @175
     181CryptSetOIDFunctionValue = "_CryptSetOIDFunctionValue@28" @175
    182182;CryptSetProviderU = _CryptSetProviderU @176
    183 CryptSignAndEncodeCertificate = _CryptSignAndEncodeCertificate@36 @177
     183CryptSignAndEncodeCertificate = "_CryptSignAndEncodeCertificate@36" @177
    184184;CryptSignAndEncryptMessage = _CryptSignAndEncryptMessage @178
    185 CryptSignCertificate = _CryptSignCertificate@36 @179
     185CryptSignCertificate = "_CryptSignCertificate@36" @179
    186186;CryptSignHashU = _CryptSignHashU @180
    187187;CryptSignMessage = _CryptSignMessage @181
    188188;CryptSignMessageWithKey = _CryptSignMessageWithKey @182
    189 CryptUnprotectData = _CryptUnprotectData@28 @183
    190 CryptUnregisterDefaultOIDFunction = _CryptUnregisterDefaultOIDFunction@12 @184
    191 CryptUnregisterOIDFunction = _CryptUnregisterOIDFunction@12 @185
     189CryptUnprotectData = "_CryptUnprotectData@28" @183
     190CryptUnregisterDefaultOIDFunction = "_CryptUnregisterDefaultOIDFunction@12" @184
     191CryptUnregisterOIDFunction = "_CryptUnregisterOIDFunction@12" @185
    192192;CryptUnregisterOIDInfo = _CryptUnregisterOIDInfo @186
    193 CryptVerifyCertificateSignature = _CryptVerifyCertificateSignature@20 @187
    194 CryptVerifyCertificateSignatureEx = _CryptVerifyCertificateSignatureEx@32 @188
    195 CryptVerifyDetachedMessageHash = _CryptVerifyDetachedMessageHash@32 @189
    196 CryptVerifyDetachedMessageSignature = _CryptVerifyDetachedMessageSignature@32 @190
    197 CryptVerifyMessageHash = _CryptVerifyMessageHash@28 @191
    198 CryptVerifyMessageSignature = _CryptVerifyMessageSignature@28 @192
     193CryptVerifyCertificateSignature = "_CryptVerifyCertificateSignature@20" @187
     194CryptVerifyCertificateSignatureEx = "_CryptVerifyCertificateSignatureEx@32" @188
     195CryptVerifyDetachedMessageHash = "_CryptVerifyDetachedMessageHash@32" @189
     196CryptVerifyDetachedMessageSignature = "_CryptVerifyDetachedMessageSignature@32" @190
     197CryptVerifyMessageHash = "_CryptVerifyMessageHash@28" @191
     198CryptVerifyMessageSignature = "_CryptVerifyMessageSignature@28" @192
    199199;CryptVerifyMessageSignatureWithKey = _CryptVerifyMessageSignatureWithKey @193
    200200;CryptVerifySignatureU = _CryptVerifySignatureU @194
    201 I_CertUpdateStore = _I_CertUpdateStore@16 @195
     201I_CertUpdateStore = "_I_CertUpdateStore@16" @195
    202202;I_CryptAllocTls = _I_CryptAllocTls@4 @196
    203 I_CryptCreateLruCache = _I_CryptCreateLruCache@8 @197
    204 I_CryptCreateLruEntry = _I_CryptCreateLruEntry@12 @198
    205 I_CryptDetachTls = _I_CryptDetachTls@4 @199
    206 I_CryptFindLruEntry = _I_CryptFindLruEntry@8 @200
    207 I_CryptFindLruEntryData = _I_CryptFindLruEntryData@12 @201
    208 I_CryptFlushLruCache = _I_CryptFlushLruCache@12 @202
    209 I_CryptFreeLruCache = _I_CryptFreeLruCache@12 @203
    210 I_CryptFreeTls = _I_CryptFreeTls@8 @204
    211 I_CryptGetAsn1Decoder = _I_CryptGetAsn1Decoder@4 @205
    212 I_CryptGetAsn1Encoder = _I_CryptGetAsn1Encoder@4 @206
    213 I_CryptGetDefaultCryptProv = _I_CryptGetDefaultCryptProv@4 @207
     203I_CryptCreateLruCache = "_I_CryptCreateLruCache@8" @197
     204I_CryptCreateLruEntry = "_I_CryptCreateLruEntry@12" @198
     205I_CryptDetachTls = "_I_CryptDetachTls@4" @199
     206I_CryptFindLruEntry = "_I_CryptFindLruEntry@8" @200
     207I_CryptFindLruEntryData = "_I_CryptFindLruEntryData@12" @201
     208I_CryptFlushLruCache = "_I_CryptFlushLruCache@12" @202
     209I_CryptFreeLruCache = "_I_CryptFreeLruCache@12" @203
     210I_CryptFreeTls = "_I_CryptFreeTls@8" @204
     211I_CryptGetAsn1Decoder = "_I_CryptGetAsn1Decoder@4" @205
     212I_CryptGetAsn1Encoder = "_I_CryptGetAsn1Encoder@4" @206
     213I_CryptGetDefaultCryptProv = "_I_CryptGetDefaultCryptProv@4" @207
    214214;I_CryptGetDefaultCryptProvForEncrypt = _I_CryptGetDefaultCryptProvForEncrypt @208
    215 I_CryptGetOssGlobal = _I_CryptGetOssGlobal@4 @209
    216 I_CryptGetTls = _I_CryptGetTls@4 @210
     215I_CryptGetOssGlobal = "_I_CryptGetOssGlobal@4" @209
     216I_CryptGetTls = "_I_CryptGetTls@4" @210
    217217;I_CryptInsertLruEntry = _I_CryptInsertLruEntry @211
    218 I_CryptInstallAsn1Module = _I_CryptInstallAsn1Module@12 @212
    219 I_CryptInstallOssGlobal = _I_CryptInstallOssGlobal@12 @213
    220 I_CryptReadTrustedPublisherDWORDValueFromRegistry = _I_CryptReadTrustedPublisherDWORDValueFromRegistry@8 @214
     218I_CryptInstallAsn1Module = "_I_CryptInstallAsn1Module@12" @212
     219I_CryptInstallOssGlobal = "_I_CryptInstallOssGlobal@12" @213
     220I_CryptReadTrustedPublisherDWORDValueFromRegistry = "_I_CryptReadTrustedPublisherDWORDValueFromRegistry@8" @214
    221221;I_CryptReleaseLruEntry = _I_CryptReleaseLruEntry @215
    222 I_CryptSetTls = _I_CryptSetTls@8 @216
    223 I_CryptUninstallAsn1Module = _I_CryptUninstallAsn1Module@4 @217
     222I_CryptSetTls = "_I_CryptSetTls@8" @216
     223I_CryptUninstallAsn1Module = "_I_CryptUninstallAsn1Module@4" @217
    224224;I_CryptUninstallOssGlobal = _I_CryptUninstallOssGlobal @218
    225225;PFXExportCertStore = _PFXExportCertStore @219
  • branches/gcc-kmk/src/crypt32/crypt32_private.h

    r21354 r21872  
    401401 */
    402402
    403 int vsnprintf (char *buf, int n, const char *fmt, va_list args);
    404 int snprintf (char *buf, int n, const char *fmt, ...);
     403int crypt32_vsnprintf (char *buf, int n, const char *fmt, va_list args);
     404int crypt32_snprintf (char *buf, int n, const char *fmt, ...);
    405405
    406406#endif
  • branches/gcc-kmk/src/crypt32/dbglocal.cpp

    r21311 r21872  
    1919USHORT DbgEnabledLvl2CRYPT32[DBG_MAXFILES] = {1};
    2020
    21 static char *DbgFileNames[DBG_MAXFILES] =
     21static const char *DbgFileNames[DBG_MAXFILES] =
    2222{
    2323"initterm",
  • branches/gcc-kmk/src/crypt32/decode.c

    r21720 r21872  
    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                }
  • branches/gcc-kmk/src/crypt32/encode.c

    r21354 r21872  
    33953395                    buf[0] = ASN_UTCTIME;
    33963396                    buf[1] = bytesNeeded - 2;
    3397                     snprintf(buf + 2, sizeof(buf) - 2,
     3397                    crypt32_snprintf(buf + 2, sizeof(buf) - 2,
    33983398                     "%02d%02d%02d%02d%02d%02dZ", sysTime.wYear >= 2000 ?
    33993399                     sysTime.wYear - 2000 : sysTime.wYear - 1900,
     
    34473447                buf[0] = ASN_GENERALTIME;
    34483448                buf[1] = bytesNeeded - 2;
    3449                 snprintf(buf + 2, sizeof(buf) - 2, "%04d%02d%02d%02d%02d%02dZ",
     3449                crypt32_snprintf(buf + 2, sizeof(buf) - 2, "%04d%02d%02d%02d%02d%02dZ",
    34503450                 sysTime.wYear, sysTime.wMonth, sysTime.wDay, sysTime.wHour,
    34513451                 sysTime.wMinute, sysTime.wSecond);
  • branches/gcc-kmk/src/crypt32/initterm.cpp

    r21842 r21872  
    1 /* $Id: initgdi32.cpp,v 1.16 2004/01/11 11:42:17 sandervl Exp $
     1/* $Id: initterm.cpp,v 1.17 2001/09/05 10:26:30 bird Exp $
    22 *
    3  * DLL entry point
     3 * CRYPT32 DLL entry point
    44 *
    55 * Copyright 1998 Sander van Leeuwen
    66 * Copyright 1998 Peter Fitzsimmons
    77 *
    8  *
    98 * Project Odin Software License can be found in LICENSE.TXT
    10  *
    119 */
    1210
    13 /*-------------------------------------------------------------*/
    14 /* INITERM.C -- Source for a custom dynamic link library       */
    15 /*              initialization and termination (_DLL_InitTerm) */
    16 /*              function.                                      */
    17 /*                                                             */
    18 /* When called to perform initialization, this sample function */
    19 /* gets storage for an array of integers, and initializes its  */
    20 /* elements with random integers.  At termination time, it     */
    21 /* frees the array.  Substitute your own special processing.   */
    22 /*-------------------------------------------------------------*/
    23 
    24 
    25 /* Include files */
    2611#define  INCL_DOSMODULEMGR
    2712#define  INCL_DOSPROCESS
     
    3823#include <initdll.h>
    3924
    40 extern "C" {
    41  //Win32 resource table (produced by wrc)
    42     extern DWORD crypt32_PEResTab;
    43     BOOL WINAPI Crypt32DllMain(HINSTANCE hInst, DWORD fdwReason, PVOID pvReserved);
    44 }
     25// Win32 resource table (produced by wrc)
     26extern DWORD crypt32_PEResTab;
     27
     28BOOL WINAPI Crypt32DllMain(HINSTANCE hInst, DWORD fdwReason, PVOID pvReserved);
    4529
    4630static HMODULE dllHandle = 0;
     
    4832static BOOL WINAPI OdinLibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
    4933{
    50    BOOL ret;
     34    BOOL ret;
    5135
    52    switch (fdwReason)
    53    {
    54    case DLL_PROCESS_ATTACH:
    55        return Crypt32DllMain(hinstDLL, fdwReason, fImpLoad);
     36    switch (fdwReason)
     37    {
     38    case DLL_PROCESS_ATTACH:
     39        return Crypt32DllMain(hinstDLL, fdwReason, fImpLoad);
    5640
    57    case DLL_THREAD_ATTACH:
    58    case DLL_THREAD_DETACH:
    59        return Crypt32DllMain(hinstDLL, fdwReason, fImpLoad);
     41    case DLL_THREAD_ATTACH:
     42    case DLL_THREAD_DETACH:
     43        return Crypt32DllMain(hinstDLL, fdwReason, fImpLoad);
    6044
    61    case DLL_PROCESS_DETACH:
    62        ret = Crypt32DllMain(hinstDLL, fdwReason, fImpLoad);
    63        return ret;
    64    }
    65    return FALSE;
     45    case DLL_PROCESS_DETACH:
     46        ret = Crypt32DllMain(hinstDLL, fdwReason, fImpLoad);
     47        return ret;
     48    }
     49    return FALSE;
    6650}
    6751
    68 /****************************************************************************/
    69 /* _DLL_InitTerm is the function that gets called by the operating system   */
    70 /* loader when it loads and frees this DLL for each process that accesses   */
    71 /* this DLL.  However, it only gets called the first time the DLL is loaded */
    72 /* and the last time it is freed for a particular process.  The system      */
    73 /* linkage convention MUST be used because the operating system loader is   */
    74 /* calling this function.                                                   */
    75 /****************************************************************************/
    76 ULONG APIENTRY inittermCrypt32(ULONG hModule, ULONG ulFlag)
     52ULONG SYSTEM DLL_InitCrypt32(ULONG hModule)
    7753{
    78    size_t i;
    79    APIRET rc;
     54    //CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    8055
    81    /*-------------------------------------------------------------------------*/
    82    /* If ulFlag is zero then the DLL is being loaded so initialization should */
    83    /* be performed.  If ulFlag is 1 then the DLL is being freed so            */
    84    /* termination should be performed.                                        */
    85    /*-------------------------------------------------------------------------*/
     56    if (!InitializeKernel32())
     57        return -1;
    8658
    87    switch (ulFlag) {
    88       case 0 :
     59    dllHandle = RegisterLxDll(hModule, OdinLibMain, (PVOID)&crypt32_PEResTab);
     60    if (dllHandle == 0)
     61           return -1;
    8962
    90          if (!InitializeKernel32())
    91              return 0;
     63    dprintf(("crypt32 init %s %s (%x)", __DATE__, __TIME__, DLL_InitCrypt32));
    9264
    93          //CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    94          dllHandle = RegisterLxDll(hModule, OdinLibMain, (PVOID)&crypt32_PEResTab);
    95          if(dllHandle == 0)
    96              return 0UL;
     65    return 0;
     66}
    9767
    98          dprintf(("crypt32 init %s %s (%x)", __DATE__, __TIME__, inittermCrypt32));
     68void SYSTEM DLL_TermCrypt32(ULONG hModule)
     69{
     70    if (dllHandle)
     71       UnregisterLxDll(dllHandle);
     72}
    9973
    100          break;
    101       case 1 :
    102          if(dllHandle) {
    103              UnregisterLxDll(dllHandle);
    104          }
    105          break;
    106       default  :
    107          return 0UL;
    108    }
     74ULONG SYSTEM DLL_Init(ULONG hModule)
     75{
     76    if (DLL_InitDefault(hModule) == -1)
     77        return -1;
     78    return DLL_InitCrypt32(hModule);
     79}
    10980
    110    /***********************************************************/
    111    /* A non-zero value must be returned to indicate success.  */
    112    /***********************************************************/
    113    return 1UL;
     81void SYSTEM DLL_Term(ULONG hModule)
     82{
     83    DLL_TermCrypt32(hModule);
     84    DLL_TermDefault(hModule);
    11485}
    115 //******************************************************************************
    116 //******************************************************************************
  • branches/gcc-kmk/src/crypt32/main.c

    r21354 r21872  
    388388}
    389389
    390 int vsnprintf (char *buf, int n, const char *fmt, va_list args)
     390int crypt32_vsnprintf (char *buf, int n, const char *fmt, va_list args)
    391391{
    392392    int count = 0;
     
    574574}
    575575
    576 int snprintf (char *buf, int n, const char *fmt, ...)
     576int crypt32_snprintf (char *buf, int n, const char *fmt, ...)
    577577{
    578578    va_list args;
     
    582582    va_start (args, fmt);
    583583   
    584     rc = vsnprintf (buf, n, fmt, args);
     584    rc = crypt32_vsnprintf (buf, n, fmt, args);
    585585
    586586    va_end (args);
  • branches/gcc-kmk/src/crypt32/oid.c

    r21354 r21872  
    175175    if (!HIWORD(pszOID))
    176176    {
    177         snprintf(numericOID, sizeof(numericOID), "#%d", LOWORD(pszOID));
     177        crypt32_snprintf(numericOID, sizeof(numericOID), "#%d", LOWORD(pszOID));
    178178        oid = numericOID;
    179179    }
  • branches/gcc-kmk/src/crypt32/rootstore.c

    r21354 r21872  
    164164
    165165    if (status & CERT_TRUST_IS_NOT_TIME_VALID)
    166         pos += snprintf(buf + pos, sizeof(buf) - pos, "\n\texpired");
     166        pos += crypt32_snprintf(buf + pos, sizeof(buf) - pos, "\n\texpired");
    167167    if (status & CERT_TRUST_IS_NOT_TIME_NESTED)
    168         pos += snprintf(buf + pos, sizeof(buf) - pos, "\n\tbad time nesting");
     168        pos += crypt32_snprintf(buf + pos, sizeof(buf) - pos, "\n\tbad time nesting");
    169169    if (status & CERT_TRUST_IS_REVOKED)
    170         pos += snprintf(buf + pos, sizeof(buf) - pos, "\n\trevoked");
     170        pos += crypt32_snprintf(buf + pos, sizeof(buf) - pos, "\n\trevoked");
    171171    if (status & CERT_TRUST_IS_NOT_SIGNATURE_VALID)
    172         pos += snprintf(buf + pos, sizeof(buf) - pos, "\n\tbad signature");
     172        pos += crypt32_snprintf(buf + pos, sizeof(buf) - pos, "\n\tbad signature");
    173173    if (status & CERT_TRUST_IS_NOT_VALID_FOR_USAGE)
    174         pos += snprintf(buf + pos, sizeof(buf) - pos, "\n\tbad usage");
     174        pos += crypt32_snprintf(buf + pos, sizeof(buf) - pos, "\n\tbad usage");
    175175    if (status & CERT_TRUST_IS_UNTRUSTED_ROOT)
    176         pos += snprintf(buf + pos, sizeof(buf) - pos, "\n\tuntrusted root");
     176        pos += crypt32_snprintf(buf + pos, sizeof(buf) - pos, "\n\tuntrusted root");
    177177    if (status & CERT_TRUST_REVOCATION_STATUS_UNKNOWN)
    178         pos += snprintf(buf + pos, sizeof(buf) - pos,
     178        pos += crypt32_snprintf(buf + pos, sizeof(buf) - pos,
    179179         "\n\tunknown revocation status");
    180180    if (status & CERT_TRUST_IS_CYCLIC)
    181         pos += snprintf(buf + pos, sizeof(buf) - pos, "\n\tcyclic chain");
     181        pos += crypt32_snprintf(buf + pos, sizeof(buf) - pos, "\n\tcyclic chain");
    182182    if (status & CERT_TRUST_INVALID_EXTENSION)
    183         pos += snprintf(buf + pos, sizeof(buf) - pos,
     183        pos += crypt32_snprintf(buf + pos, sizeof(buf) - pos,
    184184         "\n\tunsupported critical extension");
    185185    if (status & CERT_TRUST_INVALID_POLICY_CONSTRAINTS)
    186         pos += snprintf(buf + pos, sizeof(buf) - pos, "\n\tbad policy");
     186        pos += crypt32_snprintf(buf + pos, sizeof(buf) - pos, "\n\tbad policy");
    187187    if (status & CERT_TRUST_INVALID_BASIC_CONSTRAINTS)
    188         pos += snprintf(buf + pos, sizeof(buf) - pos,
     188        pos += crypt32_snprintf(buf + pos, sizeof(buf) - pos,
    189189         "\n\tbad basic constraints");
    190190    if (status & CERT_TRUST_INVALID_NAME_CONSTRAINTS)
    191         pos += snprintf(buf + pos, sizeof(buf) - pos,
     191        pos += crypt32_snprintf(buf + pos, sizeof(buf) - pos,
    192192         "\n\tbad name constraints");
    193193    if (status & CERT_TRUST_HAS_NOT_SUPPORTED_NAME_CONSTRAINT)
    194         pos += snprintf(buf + pos, sizeof(buf) - pos,
     194        pos += crypt32_snprintf(buf + pos, sizeof(buf) - pos,
    195195         "\n\tunsuported name constraint");
    196196    if (status & CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT)
    197         pos += snprintf(buf + pos, sizeof(buf) - pos,
     197        pos += crypt32_snprintf(buf + pos, sizeof(buf) - pos,
    198198         "\n\tundefined name constraint");
    199199    if (status & CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT)
    200         pos += snprintf(buf + pos, sizeof(buf) - pos,
     200        pos += crypt32_snprintf(buf + pos, sizeof(buf) - pos,
    201201         "\n\tdisallowed name constraint");
    202202    if (status & CERT_TRUST_HAS_EXCLUDED_NAME_CONSTRAINT)
    203         pos += snprintf(buf + pos, sizeof(buf) - pos,
     203        pos += crypt32_snprintf(buf + pos, sizeof(buf) - pos,
    204204         "\n\texcluded name constraint");
    205205    if (status & CERT_TRUST_IS_OFFLINE_REVOCATION)
    206         pos += snprintf(buf + pos, sizeof(buf) - pos,
     206        pos += crypt32_snprintf(buf + pos, sizeof(buf) - pos,
    207207         "\n\trevocation server offline");
    208208    if (status & CERT_TRUST_NO_ISSUANCE_CHAIN_POLICY)
    209         pos += snprintf(buf + pos, sizeof(buf) - pos,
     209        pos += crypt32_snprintf(buf + pos, sizeof(buf) - pos,
    210210         "\n\tno issuance policy");
    211211    return buf;
     
    341341                if (strcmp(entry->d_name, ".") && strcmp(entry->d_name, ".."))
    342342                {
    343                     snprintf(filebuf, bufsize, "%s/%s", path, entry->d_name);
     343                    crypt32_snprintf(filebuf, bufsize, "%s/%s", path, entry->d_name);
    344344                    if (import_certs_from_path(filebuf, store, FALSE) && !ret)
    345345                        ret = TRUE;
Note: See TracChangeset for help on using the changeset viewer.