OpenSSL Static Library too big, any alternative or way to reduce its size?

前端 未结 3 1610
臣服心动
臣服心动 2021-01-03 01:09

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 featu

3条回答
  •  礼貌的吻别
    2021-01-03 01:54

    OpenSSL does have a large number of compile-time options to control what features are built. I believe that the SSL functions use BIOs underneath, so you'll still need those, but there's a lot of other functionality you can probably go without (like ciphers you won't use, envelope encryption, S/MIME support...).

    I'm not sure how much it will reduce the binary size by, but it's worth a try.

提交回复
热议问题