Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetVerifyPackageInfo() [1/4]

static SecurityPackageInfoClass System.Net.SSPIWrapper.GetVerifyPackageInfo ( ISSPIInterface secModule,
string packageName,
bool throwIfMissing )
inlinestaticpackage

Definition at line 69 of file SSPIWrapper.cs.

70 {
71 SecurityPackageInfoClass[] array = EnumerateSecurityPackages(secModule);
72 if (array != null)
73 {
74 for (int i = 0; i < array.Length; i++)
75 {
76 if (string.Equals(array[i].Name, packageName, StringComparison.OrdinalIgnoreCase))
77 {
78 return array[i];
79 }
80 }
81 }
82 if (System.Net.NetEventSource.Log.IsEnabled())
83 {
84 System.Net.NetEventSource.Log.SspiPackageNotFound(packageName);
85 }
86 if (throwIfMissing)
87 {
88 throw new NotSupportedException(System.SR.net_securitypackagesupport);
89 }
90 return null;
91 }
static readonly System.Net.NetEventSource Log
static System.Net.SecurityPackageInfoClass[] EnumerateSecurityPackages(System.Net.ISSPIInterface secModule)
Definition SSPIWrapper.cs:8
static string net_securitypackagesupport
Definition SR.cs:156
Definition SR.cs:7

References System.array, System.Net.SSPIWrapper.EnumerateSecurityPackages(), System.Net.Equals, System.Net.NetEventSource.Log, System.Name, and System.SR.net_securitypackagesupport.