减小 OpenSSL 二进制文件的大小?

Reduce size of OpenSSL binary?

我正在使用 OpenSSL-for-iPhone to generate a self compiled build of OpenSSL that I can use with the library RMStoreAppReceiptVerifier 进行收据验证。具体来说,它构建了 OpenSSL 1.0.2k。

我遇到的问题是 libcrypto.a (45.3MB) 和 libssl.a (8.3MB) 非常大,并且在我的应用程序的二进制文件中添加了很多内容。

我在 RMStoreAppReceiptVerifier 中使用的 类 仅使用:

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

有什么办法可以减小 OpenSSL 的大小吗?还是另一个版本更好?

你试过用这个吗https://github.com/krzyzanowskim/OpenSSL。 OpenSSL 通用 pod。我们使用相同的 storeReceipt 验证。据我检查,框架的大小约为 11 mb。