public int EnumerateSecurityPackages(out int pkgnum, out SafeFreeContextBuffer pkgArray) { if (NetEventSource.Log.IsEnabled()) { NetEventSource.Info(this); } return(SafeFreeContextBuffer.EnumeratePackages(out pkgnum, out pkgArray)); }
public int EnumerateSecurityPackages(out int pkgnum, out SafeFreeContextBuffer pkgArray) { if (GlobalLog.IsEnabled) { GlobalLog.Print("SSPISecureChannelType::EnumerateSecurityPackages()"); } return(SafeFreeContextBuffer.EnumeratePackages(out pkgnum, out pkgArray)); }
private void EnumerateSecurityPackages() { GlobalLog.Enter("EnumerateSecurityPackages"); if (securityPackages == null) { lock (this) { if (securityPackages == null) { int moduleCount = 0; SafeFreeContextBuffer arrayBaseHandle = null; try { int errorCode = SafeFreeContextBuffer.EnumeratePackages(out moduleCount, out arrayBaseHandle); GlobalLog.Print("SSPIWrapper::arrayBase: " + (arrayBaseHandle.DangerousGetHandle().ToString("x"))); if (errorCode != 0) { throw new Win32Exception(errorCode); } SecurityPackageInfoClass[] securityPackagesList = new SecurityPackageInfoClass[moduleCount]; if (Logging.On) { Logging.PrintInfo(Logging.Web, SR.net_log_sspi_enumerating_security_packages); } for (int i = 0; i < moduleCount; i++) { securityPackagesList[i] = new SecurityPackageInfoClass(arrayBaseHandle, i); if (Logging.On) { Logging.PrintInfo(Logging.Web, " " + securityPackagesList[i].Name); } } securityPackages = securityPackagesList; } finally { if (arrayBaseHandle != null) { arrayBaseHandle.Dispose(); } } } } } GlobalLog.Leave("EnumerateSecurityPackages"); }
public int EnumerateSecurityPackages(out int pkgnum, out SafeFreeContextBuffer pkgArray) { GlobalLog.Print("SSPIAuthType::EnumerateSecurityPackages()"); return(SafeFreeContextBuffer.EnumeratePackages(Library, out pkgnum, out pkgArray)); }
public int EnumerateSecurityPackages(out int pkgnum, out SafeFreeContextBuffer pkgArray) { return(SafeFreeContextBuffer.EnumeratePackages(Library, out pkgnum, out pkgArray)); }