From c355606f32e794edec41be4f793c1a1dd0d58d4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hie=CC=82=CC=81u=20Nguye=CC=82=CC=83n?= Date: Tue, 11 Jun 2024 17:26:23 +0800 Subject: [PATCH] Support alpine 3.19 and up --- lib/rbnacl/init.rb | 2 +- lib/rbnacl/sodium.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rbnacl/init.rb b/lib/rbnacl/init.rb index a3cc12b..b89e3bb 100644 --- a/lib/rbnacl/init.rb +++ b/lib/rbnacl/init.rb @@ -5,7 +5,7 @@ module RbNaCl # Defines the libsodium init function module Init extend FFI::Library - ffi_lib ["sodium", "libsodium.so.18", "libsodium.so.23"] + ffi_lib ["sodium", "libsodium.so.18", "libsodium.so.23", "libsodium.so.26"] attach_function :sodium_init, [], :int end diff --git a/lib/rbnacl/sodium.rb b/lib/rbnacl/sodium.rb index e86f587..9c489d3 100644 --- a/lib/rbnacl/sodium.rb +++ b/lib/rbnacl/sodium.rb @@ -8,7 +8,7 @@ module RbNaCl module Sodium def self.extended(klass) klass.extend FFI::Library - klass.ffi_lib ["sodium", "libsodium.so.18", "libsodium.so.23"] + klass.ffi_lib ["sodium", "libsodium.so.18", "libsodium.so.23", "libsodium.so.26"] end def sodium_type(type = nil)