Skip to content

Conversation

@tverlaan
Copy link
Contributor

@tverlaan tverlaan commented May 5, 2023

Hi, I wanted to use this library but it isn't really up to date. Here are some changes that should make it work with elixir >= 1.12 and otp >= 22. I haven't been able to test elixir 1.12 (don't have it locally), but it does work on elixir 1.13 and otp 24 and elixir 1.14 and otp 25. I wouldn't mind setting up github ci if you're open for more PRs.

Each commit can be viewed separately for easier review (I hope). The tests pass :)

tverlaan added 8 commits May 5, 2023 17:11
warning: use Mix.Config is deprecated. Use the Config module instead
  config/config.exs:3
warning: Supervisor.Spec.supervise/2 is deprecated. Use the new child specifications outlined in the Supervisor module instead
  lib/radius/supervisor.ex:17: Radius.Supervisor.init/1

warning: Supervisor.Spec.worker/2 is deprecated. Use the new child specifications outlined in the Supervisor module instead
  lib/radius/supervisor.ex:14: Radius.Supervisor.init/1
warning: System.stacktrace/0 is deprecated. Use __STACKTRACE__ instead
Invalid call found at 2 locations:
  lib/radius/dict.ex:220: Radius.Dict.load/1
  lib/radius/dict.ex:221: Radius.Dict.load/1
warning: :crypto.hmac/3 is undefined or private, use crypto:mac/4 instead
  lib/radius/packet.ex:233: Radius.Packet.encode/2
warning: ^^^ is deprecated. It is typically used as xor but it has the wrong precedence, use Bitwise.bxor/2 instead
  lib/radius/util.ex:52:11

warning: use Bitwise is deprecated. import Bitwise instead
  lib/radius/util.ex:4: Radius.Util
@bearice
Copy link
Owner

bearice commented May 6, 2023

LGTM

@bearice bearice merged commit e059215 into bearice:master May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants