Reduce size of OpenSSL binary?

2019-08-26 21:58发布

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条回答
ゆ 、 Hurt°
2楼-- · 2019-08-26 22:31

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.

查看更多
登录 后发表回答