如何在C项目中静态实现RSA加密的OPENSL?

发布于 2025-02-08 16:49:17 字数 145 浏览 2 评论 0原文

在通常的情况下,我们使用-lcrypto作为编译具有openSSL函数的C程序的标志,我想知道我是否可以在不需要将包装本身安装在即将上行的系统上,而无需安装软件包本身用于运行可执行文件。我的目标系统没有安装OPENSL软件包以便能够运行我的程序。

In normal cases we use -lcrypto as a flag for compiling a C program that has calls to OpenSSL functions, I wondered If I could use OpenSSL without the need to install the package itself on the system which is going to be used for running the executable. My target system does not have the openssl package installed to be able to run my program.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

彼岸花似海 2025-02-15 16:49:17

是的,您可以更改以下内容:

-lssl -lcrypto

随之

-l:libssl.a -l:libcrypto.a

而来的是将静态库的用法集成在最终可执行文件中(目标系统中不需要它们)。

Yes you can, change the following:

-lssl -lcrypto

With

-l:libssl.a -l:libcrypto.a

That will enforce the usage of the static libraries, which are integrated in the final executable (no need of them in the target system).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文