Closed maennchen closed 1 month ago
I went to check It seems like the functions were deprecated without a replacement:
The docs quote security reasons: https://www.erlang.org/doc/apps/crypto/crypto.html#public_encrypt/4
This is a legacy function, for security reasons do not use.
@badlop: Do you know this problem?
@Ri0n has tried to install an ejabberd :/
Current state of discussions about the depreciation: https://erlangforums.com/t/security-working-group-minutes/3451/6?u=maennchen
Considering that the compilation warning will remain there, and there is no alternative, and Jose really requires that feature, I guess it makes sense to disable warnings_as_errors
in
https://github.com/potatosalad/erlang-jose/blob/eb6de2cb506b55533f550a1b0776c81b15317e23/rebar.config#L5
Erlang Workaround for now:
rebar.config
:
{overrides, [
{override, jose, [{erl_opts, []}]}
]}.
Will be undeprecated in OTP 27.1: https://github.com/erlang/otp/pull/8700
See: https://github.com/erlef/oidcc_cowboy/actions/runs/9034558041/job/24963222738?pr=33