SSL Session reuse with SChannel (Windows)

三世轮回 提交于 2020-01-25 10:16:26

问题


I have a program that use schannel.dll to make a SSL connection to remote server. But I'd like to disconnect from server often and reconnect without the need to renegotiate shared key again. I know that SSL support this, but don't know how to make it with SChannel.

Can you help me?

Here are some links that can help:

Creating a Secure Connection Using Schannel: http://msdn.microsoft.com/en-us/library/aa374782(VS.85).aspx

SSL session reuse - how to find if supported?: http://royontechnology.blogspot.com/2008/01/how-to-find-out-if-server-supports-ssl.html


回答1:


If you want reconnects to work it's important to use the same credential handle for each connection. You'll also need to pass in the same targetname string when calling InitializeSecurityContext. Pretty much everything else is automatic.



来源:https://stackoverflow.com/questions/905851/ssl-session-reuse-with-schannel-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!