当前位置:首页>开发>正文

如何编译线程安全的openssl 如何编译libcurl4 openssl dev安装

2023-06-05 08:27:42 互联网 未知 开发

 如何编译线程安全的openssl 如何编译libcurl4 openssl dev安装

如何编译线程安全的openssl

OpenSSL can safely be used in multi-threaded applications provided that at least two callback functions are set, locking_function and threadid_func.

注:OpenSSL只有在至少提供两个回调函数的基础上才是线程安全的。多线程应用中如只有一个线程OpenSSL,是没问题的。

原文:
http://www.openssl.org/docs/crypto/threads.html

如何编译libcurl4 openssl dev安装

所使用系统ubuntu12.01、安装
很简单,用新立得安装 libcurl3,libcurl3-dbg,libcurl4-openssl-dev两个包及
其相关包。其实安装的是libcurl的7.18.0版本。现在最新的是7.19,哈,懒得编
译了。
2.下载例子
从网上http://curl.haxx.se/libcurl/c/example.html下载了一个allexample.zip文件。使用unzip 命令
unzip allexample.zip DirectoryExisted把文件加压到DirectoryExisted目录下

2.编译程序
使用gcc examplefile.c -lculrb编译即可。

最新文章