减少OpenSSL二进制文件的大小? [英] Reduce size of OpenSSL binary?

查看:119
本文介绍了减少OpenSSL二进制文件的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 OpenSSL-for-iPhone 生成自编译版本我可以与库 RMStoreAppReceiptVerifier 一起使用的OpenSSL进行收据验证.具体来说,它将构建OpenSSL 1.0.2k.

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.

我遇到的问题是libcrypto.a(45.3MB)和libssl.a(8.3MB)很大,给我的应用程序的二进制文件增加了很多.

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.

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

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>

我可以做些什么来减小OpenSSL的大小吗?还是其他版本更好?

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

推荐答案

您尝试使用此 https://github.com/krzyzanowskim/OpenSSL . OpenSSL通用Pod.我们将其用于storeReceipt验证.根据我的检查,该框架的大小约为11 mb.

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.

这篇关于减少OpenSSL二进制文件的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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