大网数据广告活动
网络与域名解析

Choosing an Authentication Level

· 52CE 我爱测

When choosing an authentication level, use the following guideline.

When choosing an authentication level, use the following guideline. If it does not matter whether the data being sent can be intercepted and modified, and the data received can be intercepted or modified, use RPC_C_AUTHN_LEVEL_NONE, which is the default. If the data should not be modified, and private data is not being sent or received, use RPC_C_AUTHN_LEVEL_PKT_INTEGRITY. In all other cases, use RPC_C_AUTHN_LEVEL_PKT_PRIVACY.

Do not use RPC_C_AUTHN_LEVEL_DEFAULT, RPC_C_AUTHN_LEVEL_CONNECT, RPC_C_AUTHN_LEVEL_CALL or RPC_C_AUTHN_LEVEL_PKT. A sophisticated attacker can break these authentication levels and render them ineffective. Each of these levels does make it slightly more difficult for an attacker to intercept and modify data, and to impersonate, but security is not really achieved. Since the sophistication level of an attacker is rarely known, these are not wise choices.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。