1 instantiation of SafeFreeContextBuffer
System.IdentityModel (1)
System\IdentityModel\SspiSafeHandles.cs (1)
1259
return new
SafeFreeContextBuffer
();
25 references to SafeFreeContextBuffer
System.IdentityModel (25)
System\IdentityModel\SspiSafeHandles.cs (14)
211
SafeFreeContextBuffer
outFreeContextBuffer = null;
268
outFreeContextBuffer =
SafeFreeContextBuffer
.CreateEmptyHandle();
349
SafeFreeContextBuffer
handleTemplate)
491
SafeFreeContextBuffer
outFreeContextBuffer = null;
549
outFreeContextBuffer =
SafeFreeContextBuffer
.CreateEmptyHandle();
620
SafeFreeContextBuffer
handleTemplate)
1242
internal static int EnumeratePackages(out int pkgnum, out
SafeFreeContextBuffer
pkgArray)
1247
res =
SafeFreeContextBuffer
.EnumerateSecurityPackagesW(out pkgnum, out pkgArray);
1257
internal static
SafeFreeContextBuffer
CreateEmptyHandle()
1300
status =
SafeFreeContextBuffer
.QueryContextAttributesW(ref phContext._handle, contextAttribute, buffer);
1305
if (refHandle is
SafeFreeContextBuffer
)
1310
((
SafeFreeContextBuffer
)refHandle).Set(keyPtr);
1314
((
SafeFreeContextBuffer
)refHandle).Set(*(IntPtr*)buffer);
1350
[Out] out
SafeFreeContextBuffer
handle);
System\IdentityModel\SspiWrapper.cs (11)
312
SafeFreeContextBuffer
arrayBaseHandle = null;
315
int errorCode =
SafeFreeContextBuffer
.EnumeratePackages(out moduleCount, out arrayBaseHandle);
510
if (handleType == typeof(
SafeFreeContextBuffer
))
512
refHandle =
SafeFreeContextBuffer
.CreateEmptyHandle();
520
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("handleType", SR.GetString(SR.ValueMustBeOf2Types, typeof(
SafeFreeContextBuffer
).ToString(), typeof(SafeFreeCertContext).ToString())));
525
return
SafeFreeContextBuffer
.QueryContextAttributes(phContext, attribute, bufferPtr, refHandle);
547
handleType = typeof(
SafeFreeContextBuffer
);
550
handleType = typeof(
SafeFreeContextBuffer
);
553
handleType = typeof(
SafeFreeContextBuffer
);
569
handleType = typeof(
SafeFreeContextBuffer
);
662
Type handleType = typeof(
SafeFreeContextBuffer
);