Example #1
0
 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
     };
 }
Example #2
0
 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
     };
 }
Example #3
0
 private static bool OidEnumerationCallbackWin2k3(ref CRYPT_OID_INFO_WIN2K3 oid, IntPtr oidInformationPointer)
 {
     CRYPT_OID_INFO fullOid = UpgradeOidInfo(oid);
     return OidEnumerationCallback(ref fullOid, oidInformationPointer);
 }
Example #4
0
 private static bool OidEnumerationCallbackWin2k3(ref CRYPT_OID_INFO_WIN2K3 oid, IntPtr oidInformationPointer)
 {
     CRYPT_OID_INFO fullOid = UpgradeOidInfo(oid);
     return OidEnumerationCallback(ref fullOid, oidInformationPointer);
 }