Share via


SafeEvpPKeyHandle.OpenSslVersion 屬性

定義

取得值,表示 OpenSSL 載入版本回報的版本號碼。

public:
 static property long OpenSslVersion { long get(); };
public static long OpenSslVersion { get; }
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public static long OpenSslVersion { get; }
static member OpenSslVersion : int64
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
static member OpenSslVersion : int64
Public Shared ReadOnly Property OpenSslVersion As Long

屬性值

值,表示由載入的 OpenSSL 版本所報告的版本號碼。

屬性

備註

在使用 SafeEvpPKeyHandle OpenSSL 執行 Interop 之前,呼叫端必須確定所呼叫的 OpenSSL 版本與 .NET 運行時間呼叫的版本相同,而不是並存版本。

針對OpenSSL 1.1.0和更新版本,會從 OpenSSL_version_num() 函式報告此值。 當舊版的 OpenSSL 正在使用時,會從 SSLeay() 函式報告此值。

建議呼叫端只執行此值的相等檢查。

適用於