gpt4 book ai didi

c++ - 如果多个不同的接受套接字使用相同的 OpenSSL 上下文会不会有问题?

转载 作者:行者123 更新时间:2023-11-30 03:12:51 26 4
gpt4 key购买 nike

如果多个不同的接受套接字使用相同的 OpenSSL 上下文是否可以?

特别是我使用相同的 boost::asio::ssl::context 和 2 个不同的监听套接字。

最佳答案

是的,SSL_CTX——我认为它是底层数据结构——只是您的程序使用的全局数据结构。来自 ssl(3):

SSL_CTX (SSL Context)

That's the global context structure which is created by a server or client once per program life-time and which holds mainly default values for the SSL structures which are later created for the connections.

关于c++ - 如果多个不同的接受套接字使用相同的 OpenSSL 上下文会不会有问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/111391/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com