如何在openssl中实现多线程?
How to implement multi threading in openssl?
我正在尝试在 openssl 中设置多线程。我经历了linkhttps://curl.haxx.se/libcurl/c/opensslthreadlock.html。但我不明白如何使用它。你能提出什么想法吗?
读这个:https://www.openssl.org/docs/man1.1.0/man3/CRYPTO_THREAD_lock_free.html
并根据 /crypto/threads/mttest.c
和您的目标平台实现您的多线程。它基本上涉及在程序开始时设置两个功能(可选更多)。
对此无话可说,在此处复制内容会使答案在下一个 OpenSSL 版本中被弃用。来源大部分时间都是最新的。
此外,您可以阅读来自 O'Reilly 的 Network Security with OpenSSL
的第 Multithread Support
章。请记住,其中一些功能已弃用。
我正在尝试在 openssl 中设置多线程。我经历了linkhttps://curl.haxx.se/libcurl/c/opensslthreadlock.html。但我不明白如何使用它。你能提出什么想法吗?
读这个:https://www.openssl.org/docs/man1.1.0/man3/CRYPTO_THREAD_lock_free.html
并根据 /crypto/threads/mttest.c
和您的目标平台实现您的多线程。它基本上涉及在程序开始时设置两个功能(可选更多)。
对此无话可说,在此处复制内容会使答案在下一个 OpenSSL 版本中被弃用。来源大部分时间都是最新的。
此外,您可以阅读来自 O'Reilly 的 Network Security with OpenSSL
的第 Multithread Support
章。请记住,其中一些功能已弃用。