1 type derived from SafeFreeCredentials
System (1)
net\System\Net\_SafeNetHandles.cs (1)
1378
internal sealed class SafeFreeCredential_SECURITY:
SafeFreeCredentials
{
71 references to SafeFreeCredentials
System (71)
net\System\Net\_NativeSSPI.cs (32)
25
int AcquireCredentialsHandle(string moduleName, CredentialUse usage, ref AuthIdentity authdata, out
SafeFreeCredentials
outCredential);
26
int AcquireCredentialsHandle(string moduleName, CredentialUse usage, ref SafeSspiAuthDataHandle authdata, out
SafeFreeCredentials
outCredential);
27
int AcquireDefaultCredential(string moduleName, CredentialUse usage, out
SafeFreeCredentials
outCredential);
28
int AcquireCredentialsHandle(string moduleName, CredentialUse usage, ref SecureCredential authdata, out
SafeFreeCredentials
outCredential);
29
int AcceptSecurityContext(ref
SafeFreeCredentials
credential, ref SafeDeleteContext context, SecurityBuffer inputBuffer, ContextFlags inFlags, Endianness endianness, SecurityBuffer outputBuffer, ref ContextFlags outFlags);
30
int AcceptSecurityContext(
SafeFreeCredentials
credential, ref SafeDeleteContext context, SecurityBuffer[] inputBuffers, ContextFlags inFlags, Endianness endianness, SecurityBuffer outputBuffer, ref ContextFlags outFlags);
31
int InitializeSecurityContext(ref
SafeFreeCredentials
credential, ref SafeDeleteContext context, string targetName, ContextFlags inFlags, Endianness endianness, SecurityBuffer inputBuffer, SecurityBuffer outputBuffer, ref ContextFlags outFlags);
32
int InitializeSecurityContext(
SafeFreeCredentials
credential, ref SafeDeleteContext context, string targetName, ContextFlags inFlags, Endianness endianness, SecurityBuffer[] inputBuffers, SecurityBuffer outputBuffer, ref ContextFlags outFlags);
65
public int AcquireCredentialsHandle(string moduleName, CredentialUse usage, ref AuthIdentity authdata, out
SafeFreeCredentials
outCredential) {
66
return
SafeFreeCredentials
.AcquireCredentialsHandle(Library, moduleName, usage, ref authdata, out outCredential);
69
public int AcquireCredentialsHandle(string moduleName, CredentialUse usage, ref SafeSspiAuthDataHandle authdata, out
SafeFreeCredentials
outCredential) {
70
return
SafeFreeCredentials
.AcquireCredentialsHandle(moduleName, usage, ref authdata, out outCredential);
73
public int AcquireDefaultCredential(string moduleName, CredentialUse usage, out
SafeFreeCredentials
outCredential) {
74
return
SafeFreeCredentials
.AcquireDefaultCredential(Library, moduleName, usage, out outCredential);
77
public int AcquireCredentialsHandle(string moduleName, CredentialUse usage, ref SecureCredential authdata, out
SafeFreeCredentials
outCredential) {
78
return
SafeFreeCredentials
.AcquireCredentialsHandle(Library, moduleName, usage, ref authdata, out outCredential);
81
public int AcceptSecurityContext(ref
SafeFreeCredentials
credential, ref SafeDeleteContext context, SecurityBuffer inputBuffer, ContextFlags inFlags, Endianness endianness, SecurityBuffer outputBuffer, ref ContextFlags outFlags) {
85
public int AcceptSecurityContext(
SafeFreeCredentials
credential, ref SafeDeleteContext context, SecurityBuffer[] inputBuffers, ContextFlags inFlags, Endianness endianness, SecurityBuffer outputBuffer, ref ContextFlags outFlags) {
89
public int InitializeSecurityContext(ref
SafeFreeCredentials
credential, ref SafeDeleteContext context, string targetName, ContextFlags inFlags, Endianness endianness, SecurityBuffer inputBuffer, SecurityBuffer outputBuffer, ref ContextFlags outFlags) {
93
public int InitializeSecurityContext(
SafeFreeCredentials
credential, ref SafeDeleteContext context, string targetName, ContextFlags inFlags, Endianness endianness, SecurityBuffer[] inputBuffers, SecurityBuffer outputBuffer, ref ContextFlags outFlags) {
227
public int AcquireCredentialsHandle(string moduleName, CredentialUse usage, ref AuthIdentity authdata, out
SafeFreeCredentials
outCredential) {
228
return
SafeFreeCredentials
.AcquireCredentialsHandle(Library, moduleName, usage, ref authdata, out outCredential);
231
public int AcquireCredentialsHandle(string moduleName, CredentialUse usage, ref SafeSspiAuthDataHandle authdata, out
SafeFreeCredentials
outCredential) {
232
return
SafeFreeCredentials
.AcquireCredentialsHandle(moduleName, usage, ref authdata, out outCredential);
235
public int AcquireDefaultCredential(string moduleName, CredentialUse usage, out
SafeFreeCredentials
outCredential) {
236
return
SafeFreeCredentials
.AcquireDefaultCredential(Library, moduleName, usage, out outCredential);
239
public int AcquireCredentialsHandle(string moduleName, CredentialUse usage, ref SecureCredential authdata, out
SafeFreeCredentials
outCredential) {
240
return
SafeFreeCredentials
.AcquireCredentialsHandle(Library, moduleName, usage, ref authdata, out outCredential);
243
public int AcceptSecurityContext(ref
SafeFreeCredentials
credential, ref SafeDeleteContext context, SecurityBuffer inputBuffer, ContextFlags inFlags, Endianness endianness, SecurityBuffer outputBuffer, ref ContextFlags outFlags) {
247
public int AcceptSecurityContext(
SafeFreeCredentials
credential, ref SafeDeleteContext context, SecurityBuffer[] inputBuffers, ContextFlags inFlags, Endianness endianness, SecurityBuffer outputBuffer, ref ContextFlags outFlags) {
251
public int InitializeSecurityContext(ref
SafeFreeCredentials
credential, ref SafeDeleteContext context, string targetName, ContextFlags inFlags, Endianness endianness, SecurityBuffer inputBuffer, SecurityBuffer outputBuffer, ref ContextFlags outFlags) {
255
public int InitializeSecurityContext(
SafeFreeCredentials
credential, ref SafeDeleteContext context, string targetName, ContextFlags inFlags, Endianness endianness, SecurityBuffer[] inputBuffers, SecurityBuffer outputBuffer, ref ContextFlags outFlags) {
net\System\Net\_NTAuthentication.cs (1)
139
private
SafeFreeCredentials
m_CredentialsHandle;
net\System\Net\_SafeNetHandles.cs (13)
1098
out
SafeFreeCredentials
outCredential
1152
out
SafeFreeCredentials
outCredential
1209
out
SafeFreeCredentials
outCredential
1245
out
SafeFreeCredentials
outCredential
1326
internal
SafeFreeCredentials
_Target;
1330
internal static SafeCredentialReference CreateReference(
SafeFreeCredentials
target)
1338
private SafeCredentialReference(
SafeFreeCredentials
target): base()
1368
SafeFreeCredentials
target = _Target;
1410
protected
SafeFreeCredentials
_EffectiveCredential;
1437
ref
SafeFreeCredentials
inCredentials,
1647
ref
SafeFreeCredentials
inCredentials,
1765
ref
SafeFreeCredentials
inCredentials,
1966
ref
SafeFreeCredentials
inCredentials,
net\System\Net\_SecureChannel.cs (4)
56
private
SafeFreeCredentials
m_CredentialsHandle;
716
SafeFreeCredentials
cachedCredentialHandle = SslSessionsCache.TryCachedCredential(guessedThumbPrint, m_ProtocolFlags, m_EncryptionPolicy);
834
SafeFreeCredentials
cachedCredentialHandle = SslSessionsCache.TryCachedCredential(guessedThumbPrint, m_ProtocolFlags, m_EncryptionPolicy);
873
SafeFreeCredentials
AcquireCredentialsHandle(CredentialUse credUsage, ref SecureCredential secureCredential)
net\System\Net\_SslSessionsCache.cs (2)
129
internal static
SafeFreeCredentials
TryCachedCredential(byte[] thumbPrint, SchProtocols allowedProtocols, EncryptionPolicy encryptionPolicy)
156
internal static void CacheCredential(
SafeFreeCredentials
creds, byte[] thumbPrint, SchProtocols allowedProtocols, EncryptionPolicy encryptionPolicy)
net\System\Net\_SSPISessionCache.cs (1)
36
internal static void CacheCredential(
SafeFreeCredentials
newHandle)
net\System\Net\_SSPIWrapper.cs (18)
82
private static readonly Lazy<ConcurrentDictionary<string,
SafeFreeCredentials
>> s_DefaultCredentialsHandleCache =
83
new Lazy<ConcurrentDictionary<string,
SafeFreeCredentials
>>(InitDefaultCredentialsHandleCache);
84
private static ConcurrentDictionary<string,
SafeFreeCredentials
> InitDefaultCredentialsHandleCache() {
91
return new ConcurrentDictionary<string,
SafeFreeCredentials
>(Environment.ProcessorCount, s_DefaultCredentialsHandleCacheSize);
94
public static
SafeFreeCredentials
AcquireDefaultCredential(SSPIInterface SecModule, string package, CredentialUse intent) {
95
SafeFreeCredentials
outCredential = null;
154
public static
SafeFreeCredentials
AcquireCredentialsHandle(SSPIInterface SecModule, string package, CredentialUse intent, ref AuthIdentity authdata) {
163
SafeFreeCredentials
credentialsHandle = null;
180
public static
SafeFreeCredentials
AcquireCredentialsHandle(SSPIInterface SecModule, string package, CredentialUse intent, ref SafeSspiAuthDataHandle authdata) {
188
SafeFreeCredentials
credentialsHandle = null;
198
public static
SafeFreeCredentials
AcquireCredentialsHandle(SSPIInterface SecModule, string package, CredentialUse intent, SecureCredential scc) {
207
SafeFreeCredentials
outCredential = null;
228
internal static int InitializeSecurityContext(SSPIInterface SecModule, ref
SafeFreeCredentials
credential, ref SafeDeleteContext context, string targetName, ContextFlags inFlags, Endianness datarep, SecurityBuffer inputBuffer, SecurityBuffer outputBuffer, ref ContextFlags outFlags) {
243
internal static int InitializeSecurityContext(SSPIInterface SecModule,
SafeFreeCredentials
credential, ref SafeDeleteContext context, string targetName, ContextFlags inFlags, Endianness datarep, SecurityBuffer[] inputBuffers, SecurityBuffer outputBuffer, ref ContextFlags outFlags) {
258
internal static int AcceptSecurityContext(SSPIInterface SecModule, ref
SafeFreeCredentials
credential, ref SafeDeleteContext context, ContextFlags inFlags, Endianness datarep, SecurityBuffer inputBuffer, SecurityBuffer outputBuffer, ref ContextFlags outFlags)
274
internal static int AcceptSecurityContext(SSPIInterface SecModule,
SafeFreeCredentials
credential, ref SafeDeleteContext context, ContextFlags inFlags, Endianness datarep, SecurityBuffer[] inputBuffers, SecurityBuffer outputBuffer, ref ContextFlags outFlags)
320
ref
SafeFreeCredentials
credentialsHandle,
352
ref
SafeFreeCredentials
credentialsHandle,