Reduce size of OpenSSL binary?

一曲冷凌霜 提交于 2019-12-11 16:49:55

问题


I'm using OpenSSL-for-iPhone to generate a self compiled build of OpenSSL that I can use with the library RMStoreAppReceiptVerifier for receipt validation. Specifically, it builds OpenSSL 1.0.2k.

The problem I'm having is that libcrypto.a (45.3MB) and libssl.a (8.3MB) are very big and are adding a lot to my app's binary.

The classes I'm using in RMStoreAppReceiptVerifier only use:

#import <openssl/pkcs7.h>
#import <openssl/objects.h>
#import <openssl/sha.h>
#import <openssl/x509.h>

Is there anything I can do to reduce the size of OpenSSL? Or is another version better?


回答1:


Did you try using this https://github.com/krzyzanowskim/OpenSSL. OpenSSL-Universal pod. We use the same for storeReceipt verification. From what i checked the size of the framework is around 11 mb.



来源:https://stackoverflow.com/questions/50884744/reduce-size-of-openssl-binary

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!