private static CRYPT_OID_INFO UpgradeOidInfo(CRYPT_OID_INFO_WIN2K3 oldOid) { return new CRYPT_OID_INFO { cbSize = Marshal.SizeOf(typeof(CRYPT_OID_INFO)), pszOID = oldOid.pszOID, pwszName = oldOid.pwszName, dwGroupId = oldOid.dwGroupId, dwValue = oldOid.dwValue, ExtraInfo = oldOid.ExtraInfo, pwszCNGAlgid = null, pwszCNGExtraAlgid = null }; }
private static bool OidEnumerationCallbackWin2k3(ref CRYPT_OID_INFO_WIN2K3 oid, IntPtr oidInformationPointer) { CRYPT_OID_INFO fullOid = UpgradeOidInfo(oid); return OidEnumerationCallback(ref fullOid, oidInformationPointer); }