SafeEvpPKeyHandle.OpenSslVersion 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會獲得一個代表 OpenSSL 載入版本版本號的值。
public:
static property long OpenSslVersion { long 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; }
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")>]
static member OpenSslVersion : int64
static member OpenSslVersion : int64
Public Shared ReadOnly Property OpenSslVersion As Long
屬性值
一個代表載入版本 OpenSSL 所報告版本號的值。
- 屬性
備註
在使用 SafeEvpPKeyHandle 與 OpenSSL 進行互操作前,呼叫者必須確保所呼叫的 OpenSSL 版本與.NET執行時呼叫的版本相同,而非並排版本。
對於 OpenSSL 1.1.0 及更新版本,這個值會從函 OpenSSL_version_num() 式中回報。 當使用較舊版本的 OpenSSL 時,這個值會從 SSLeay() 函式中報告。
建議來電者僅在此值下進行等性檢查。