如何将 Oat++ 与 OpenSSL 一起使用而不是 LibreSSL?

问题描述 投票:0回答:2

由于各种原因,LibreSSL 不是这里的一个选择。

我需要做什么才能将 Oat++ 与 OpenSSL 结合使用?我在系统范围内安装了 OpenSSL-1.1.1h。

openssl oat++
2个回答
3
投票

在最近的版本 1.2.5 中添加了新的 OpenSSL 适配器

现在,要将 oatpp 与 OpenSSL 结合使用,您所要做的就是:

  • 安装
    oatpp-openssl
  • 使用 oatpp-openssl 连接提供程序,如 readme 中所述。

0
投票

我正在尝试使用oatpp-openssl,我的操作系统是REHL8.8,openSSL版本是1.1.1k。当我构建oatpp-openssl时,静态库没有问题,但是当我尝试构建应用程序时,我总是遇到链接问题,甚至是oatpp-openssl发布包中的测试套件: [100%] 链接 CXX 可执行模块测试 ../src/liboatpp-openssl.a(Connection.cpp.o):在函数

oatpp::openssl::Connection::ConnectionContext::init()': Connection.cpp:(.text+0xc8): undefined reference to 
SSL_state'中 ../src/liboatpp-openssl.a(Connection.cpp.o):在函数
oatpp::openssl::Connection::ConnectionContext::initAsync()::HandshakeCoroutine::act()': Connection.cpp:(.text+0x32f): undefined reference to 
SSL_state'中 collect2:错误:ld 返回 1 退出状态 make[2]: *** [test/CMakeFiles/module-tests.dir/build.make:152: test/module-tests] 错误 1 make[1]: *** [CMakeFiles/Makefile2:142: test/CMakeFiles/module-tests.dir/all] 错误 2 make: *** [Makefile:146: 全部] 错误 2

那么你知道如何解决这个问题吗?

© www.soinside.com 2019 - 2024. All rights reserved.