简体   繁体   English

如何确定libssl-dev包含来自libssl 0.9.8的标头,而不是来自libssl 1.0的标头?

[英]How can I be sure that libssl-dev includes headers from libssl 0.9.8 instead of libssl 1.0?

I'm migrating a development environment from Ubuntu 10.04 to Ubuntu 12.04. 我正在将开发环境从Ubuntu 10.04迁移到Ubuntu 12.04。 An issue is that lib openssl has been upgraded from version 0.9.8 to 1.xxx. 问题是lib openssl已从0.9.8版本升级到1.xxx。

I got a lot of useful tips from other questions but now I'm not sure my final version is really correct or not. 我从其他问题中得到了很多有用的提示,但是现在我不确定我的最终版本是否正确。

I am using an SDK which has the following content 我正在使用包含以下内容的SDK

  • some dynamic libraries which requires explicitly the version 0.9.8 of the library (else I get an error message at runtime) 一些动态库,明确要求该库的版本为0.9.8(否则我会在运行时收到错误消息)
  • some headers requiring include of openssl/x509.h and openssl/evp.h 一些标头需要包含openssl / x509.h和openssl / evp.h

What I did: 我做了什么:

  • apt-get install libssl-dev (created the headers under /usr/include/openssl/) apt-get install libssl-dev(在/ usr / include / openssl /下创建头)
  • apt-get install libssl0.9.8 (to have this version of the library). apt-get install libssl0.9.8(具有此版本的库)。

==> Everything seems to work just fine. ==>一切似乎都正常。

BUT I am afraid that the includes I got through the libssl-dev are the ones of the 1.0 versions and they could mess up with my code running with the 0.9.8 version. 但是我恐怕我通过libssl-dev获得的include是1.0版本的,它们可能会弄乱我在0.9.8版本上运行的代码。

Is my current environment correct or should I do something else (like somehow getting the headers of the 0.9.8 version)? 我当前的环境是否正确,还是应该做其他事情(例如以某种方式获取0.9.8版本的标题)?

libssl-dev includes the 1.0 header files, there are no Ubuntu-provided development packages for 0.9.8. libssl-dev包含1.0头文件,没有Ubuntu提供的0.9.8开发包。 If I had to use 0.9.8, I'd probably just compile it myself and install to /usr/local . 如果必须使用0.9.8,我可能会自己编译并安装到/usr/local

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM