Skip to content

Consider using other library then openssl #2

@mateuszkobak

Description

@mateuszkobak

#include <openssl/sha.h>

The Client uses openssl. I was able to run the example with an old version of openssl (1.1.1) that performs better tree shaking during linking, but for the newer version (>=3) the binary got really big although the openssl library was used only for SHA256. I would probably suggest using mbedtls instead of openssl, as this is a more lightweight library. Or maybe the user can provide a callback for computing SHA256 (I don't know if that is a good design, but maybe worth considering)? In my setting of the example I was using openssl only as the dependency of the Client and curl with mbedtls (as the example uses curl).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions