objective-c - 在 Xcode 中使用 libssl

标签 objective-c dylib libssl

我尝试包含 openssl(我尝试实现一个 ssh 客户端)并且我已经将 libssl.dylib 添加到我的 Xcode 项目中。但我不知道我必须包含哪个 header 才能使用它。 谁能告诉我如何在 Xcode 中使用 libssl 的教程?

谢谢

最佳答案

关于包含,OpenSSL 没有什么特别之处,它在标准 SDK 中,您可以从 openssl/* 中包含所需的头文件,例如:

#include <openssl/bio.h>

关于objective-c - 在 Xcode 中使用 libssl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3029198/

相关文章:

使用 libssl 编译不起作用

erlang - 无需 root 权限即可安装 libssl-dev 和 libncurses5-dev

objective-c - 将数字添加到小数点的末尾(Objective-c)

ios - 如何使用 Facebook PoP ios 框架水平翻转 UIView?

c++ - Cocos2d - 找不到 cassert 文件

macos - 在 CMake 中构建 MACOSX_BUNDLE 时,如何将链接的动态库复制到包中?

c++ - dylib如何卸载自身?

android - libssl 和 libcrypto 的 undefined reference 错误

ios - 如何重置 NSTextStorage 中的属性

swift - Swift应用程序:将二进制文件标记为动态链接器的“受限”