CRYPT_POLICY_OID_GROUP_ID

For the CRYPT_POLICY_OID_GROUP_ID, the following predefined entries exist. Note that the varying members of the CRYPT_OID_INFO structure for this group are shown in the table. These correspond to the find criteria that should be used for this group when making calls to CryptFindOIDInfo. The values for members that do not vary for entries in this group are typically set to zero, or NULL, except that cbSize which always is set to the size of CRYPT_OID_INFO, and the dwGroupId always is set to this group.

pszOID pwszName
szOID_ L""

The C code used to populate the table (an array of CCRYPT_OID_INFO structures) is shown below.

C code specifying table.

//+-------------------------------------------------------------------------
//  Policy Table
//--------------------------------------------------------------------------
#define POLICY_ENTRY(pszOID, pwszName) \
    OID_INFO_LEN, pszOID, pwszName, CRYPT_POLICY_OID_GROUP_ID, 0, 0, NULL

static CCRYPT_OID_INFO PolicyTable[] = {
    POLICY_ENTRY(szOID_, L"")
};
#define POLICY_CNT (sizeof(PolicyTable) / sizeof(PolicyTable[0]))

#endif