大网数据广告活动
账户与安全

Server Context Initialization

· 52CE 我爱测

Like the client, the server also acquires a credentials handle to be ready to respond to an incoming authentication request from the client.

Like the client, the server also acquires a credentials handle to be ready to respond to an incoming authentication request from the client. Server credentials are used to authenticate the server to the client in security protocols that support server authentication or mutual authentication. The server obtains a handle to its credentials defined by the service account used to start the server. It does so by calling AcquireCredentialsHandle.

The server can acquire its credentials handle and then go into a listen state, or it can wait in a listen state until a connection request arrives and then acquire an inbound credentials handle. For more information on credentials functions, see Credential Management.

When the server receives a connection request message from a client, it creates a local security context for the client using AcceptSecurityContext (General). The server uses this local security context to carry out future requests by the same client. For more information on context functions, see Context Management.

The server checks the return status and output buffer descriptor to ensure there are no errors so far, and can reject the connection request if there are errors. If there is information in the output buffer returned by AcceptSecurityContext (General), it bundles that buffer into a response message to the client.

Any output buffer from AcceptSecurityContext (General) must be sent back to the client. In addition, if the return status requires the protocol to continue (SEC_I_CONTINUE_NEEDED or SEC_I_COMPLETE_AND_CONTINUE), another message exchange with the client is required.

For additional legs, the server waits for the client to respond with another message. This wait can be timed out so as to avoid a denial of service attack where a client purposely never responds, causing a server thread and soon, all server threads, to stop responding.

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)

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

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