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

Creating a Secure Connection Using Schannel

· 52CE 我爱测

How to create a secure connection using Schannel.

The Schannel security package provides access to five security protocols:

Note:
The PCT and SSL 2.0 protocols have been superseded by the TLS protocol and should not be used for new development.

To set up a secure connection between a client and server

  1. Obtain Schannel credentials (Obtaining Schannel Credentials).
  2. Create an Schannel security context (Creating an Schannel Security Context).

After a connection is established, you can retrieve information about its attributes. For details, see Getting Information About Schannel Connections.

If, after you have established a connection, the security requirements of your application change or the connection is lost, you can renegotiate the connection. For details, see Renegotiating an Schannel Connection.

When you have finished using an Schannel connection, you must perform the necessary cleanup. For details, see Shutting Down an Schannel Connection.

For information about samples shipped with the Platform Software Development Kit (SDK) that demonstrate the Schannel security package, see the PSDK samples using Schannel.

Related topics

Specifying Schannel Ciphers and Cipher Strengths

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)

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

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