Skip to content

Customizing user_settings.h #17

@5p4k

Description

@5p4k

I would like to import esp-wolfssl as a git submodule directly, and yet be able to customize the settings.
user_settings.h by default disables unsafe features, which unfortunately we need (specifically, we need 3DES, which is disabled by the macro NO_DES3).

At the moment it seems that the only possibility is to manually modify port/user_settings.h; this is because it is included directly by wolfssl source. This inclusion is controlled by the WOLFSSL_USER_SETTINGS macro, which is set directly in component.mk.

Is there some macro I am missing? Otherwise, would it be possible to change port/user_settings.h in a way that it can be customized without needing to touch the repo content?

For example, something like this:

#ifdef ESP_WOLFSSL_CUSTOM_USER_SETTINGS
#include <esp_user_settings.h>  // File provided by the user, not bundled in esp-wolfssl
#else
// all the content of port/user_settings.h
#endif

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