Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,16 @@ public static partial class PlatformDetection
public static bool IsRedHatFamily7 => IsRedHatFamilyAndVersion(7);
public static bool IsNotFedoraOrRedHatFamily => !IsFedora && !IsRedHatFamily;
public static bool IsNotDebian10 => !IsDebian10;
public static bool IsNotApple =>
!RuntimeInformation.IsOSPlatform(OSPlatform.Create("IOS")) &&
!RuntimeInformation.IsOSPlatform(OSPlatform.OSX) &&
!RuntimeInformation.IsOSPlatform(OSPlatform.Create("TVOS"));

public static bool IsSuperUser => !IsWindows ?
libc.geteuid() == 0 :
throw new PlatformNotSupportedException();

public static Version OpenSslVersion => !IsOSX && !IsWindows ?
public static Version OpenSslVersion => IsNotApple && !IsWindows ?
GetOpenSslVersion() :
throw new PlatformNotSupportedException();

Expand Down