SafeEvpPKeyHandle.OpenSslVersion 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取一个值,该值表示加载的 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()
此值。
建议调用方仅使用此值执行相等性检查。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈