Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyshields authored Feb 25, 2025
1 parent 25ed227 commit 1fd9a29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ If something doesn't work on one of these versions, it's a bug.

## Installation

Note: [Windows installation instructions are available](https://github.com/RubyCrypto/rbnacl/wiki/Installing-libsodium#windows).

### libsodium

To use RbNaCl, you will need to install libsodium:
Expand All @@ -84,6 +82,8 @@ portmaster or portupgrade), or use make as follows:

cd /usr/ports/security/libsodium; make install clean

For Windows users using the [Ruby Installer for Windows](https://rubyinstaller.org/), the [libsodium MSYS2 package](https://packages.msys2.org/packages/mingw-w64-ucrt-x86_64-libsodium) should install automatically when you install this gem. Otherwise, you can follow the [manual installation instructions for Windows](https://github.com/RubyCrypto/rbnacl/wiki/Installing-libsodium#windows).

### RbNaCl gem

Once you have libsodium installed, add this line to your application's Gemfile:
Expand Down
2 changes: 1 addition & 1 deletion lib/rbnacl/init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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", "libsodium.so.26"]
ffi_lib ["sodium", "libsodium.so.18", "libsodium.so.23", "libsodium.so.26", "libsodium-26"]

attach_function :sodium_init, [], :int
end
Expand Down

0 comments on commit 1fd9a29

Please sign in to comment.