OpenSSL静态库太大,任何替代方法或方法来减小其大小? [英] OpenSSL Static Library too big, any alternative or way to reduce its size?

查看:1225
本文介绍了OpenSSL静态库太大,任何替代方法或方法来减小其大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了OpenSSL 1.0的预构建静态库,但是它使我的二进制文件太大了(在发布模式下将其大小增加了大约800Kb)。



我不需要OpenSSL的大部分功能,如BIO,我使用自己的套接字,因此在代码中我只使用几个SSL_XXXXXXXXX调用(SSL_accept(3)或SSL_connect(3),SSL_read(3)和SSL_write (3))



我唯一的要求是在windows上使用winsock支持SSLv2 / v3,在客户端和服务器端支持linux上的sockets

有没有使OpenSSL更小(也许通过自己编译),或者,在最后的手段,任何其他好的但更轻的SSL库,满足我的要求?



感谢您

解决方案

认为您想要此网页,特别是有关代码大小的部分:



http://en.wikipedia.org/wiki/Comparison_of_TLS_Implementations


I have used pre-build static libs of OpenSSL 1.0, but it makes my binary too big, (increase its size by about 800Kb in release mode).

I do not need most of the feature of OpenSSL such as BIO, I use my own sockets, therefore in the code I am only using a couple of SSL_XXXXXXXXX calls(SSL_accept(3) or SSL_connect(3), SSL_read(3) and SSL_write(3))

My only requirement is support SSLv2/v3 with winsock on windows, and sockets on linux for both client and server side (for C++)

Is there anyway to make OpenSSL much smaller (maybe by compiling it myself) or, in last resort, any other good but more lightwight SSL library that meet my requirements? The lib must be linked staticly.

Thanks you

解决方案

I think you want this page, particular the section on code size:

http://en.wikipedia.org/wiki/Comparison_of_TLS_Implementations

这篇关于OpenSSL静态库太大,任何替代方法或方法来减小其大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆