File: init.rb

package info (click to toggle)
ruby-rbnacl 7.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 576 kB
  • sloc: ruby: 2,927; makefile: 3
file content (12 lines) | stat: -rw-r--r-- 276 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
# encoding: binary
# frozen_string_literal: true

module RbNaCl
  # Defines the libsodium init function
  module Init
    extend FFI::Library
    ffi_lib ["sodium", "libsodium.so.18", "libsodium.so.23", "libsodium.so.26"]

    attach_function :sodium_init, [], :int
  end
end