Definition at line 144 of file oid.c.
Referenced by CRYPT_GetDefaultOIDKey(), CRYPT_GetFuncFromReg(), CryptGetDefaultOIDDllList(), CryptGetOIDFunctionValue(), CryptRegisterOIDFunction(), CryptSetOIDFunctionValue(), and CryptUnregisterOIDFunction().
00146 {
00147 static const char szEncodingTypeFmt[] =
00148 "Software\\Microsoft\\Cryptography\\OID\\EncodingType %d\\%s\\%s";
00149 UINT len;
00150 char numericOID[7];
00151 const char *oid;
00152 LPSTR szKey;
00153
00154
00155
00156
00157
00158
00159 if (IS_INTOID(pszOID))
00160 {
00161 snprintf(numericOID, sizeof(numericOID), "#%d", LOWORD(pszOID));
00162 oid = numericOID;
00163 }
00164 else
00165 oid = pszOID;
00166
00167
00168
00169
00170
00171
00172 len = sizeof(szEncodingTypeFmt) + lstrlenA(pszFuncName) + lstrlenA(oid);
00173 szKey = CryptMemAlloc(len);
00174 if (szKey)
00175 sprintf(szKey, szEncodingTypeFmt,
00176 GET_CERT_ENCODING_TYPE(dwEncodingType), pszFuncName, oid);
00177 return szKey;
00178 }