由于各种原因,LibreSSL 不是这里的一个选择。
我需要做什么才能将 Oat++ 与 OpenSSL 结合使用?我在系统范围内安装了 OpenSSL-1.1.1h。
在最近的版本 1.2.5 中添加了新的 OpenSSL 适配器。
现在,要将 oatpp 与 OpenSSL 结合使用,您所要做的就是:
oatpp-openssl
。我正在尝试使用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
那么你知道如何解决这个问题吗?