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 执行互操作之前,调用方必须确保他们调用的 OpenSSL 版本与 .NET 运行时调用的版本相同,而不是并行版本。

对于 OpenSSL 1.1.0 及更新,此值从 OpenSSL_version_num() 函数报告。 使用较旧版本的 OpenSSL 时,将从 函数报告 SSLeay() 此值。

建议调用方仅使用此值执行相等性检查。

适用于