Sha256: 724ceb713aaf3dfdcfee7c4da5cb8a44bc04a9d3dace15316769fada749c376c

Contents?: true

Size: 296 Bytes

Versions: 4

Compression:

Stored size: 296 Bytes

Contents

# encoding: binary
module RbNaCl
  # Defines the libsodium init function
  module Init
    extend FFI::Library
    if defined?(RBNACL_LIBSODIUM_GEM_LIB_PATH)
      ffi_lib RBNACL_LIBSODIUM_GEM_LIB_PATH
    else
      ffi_lib 'sodium'
    end

    attach_function :sodium_init, [], :int
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rbnacl-3.1.2 lib/rbnacl/init.rb
rbnacl-3.1.1 lib/rbnacl/init.rb
rbnacl-3.1.0 lib/rbnacl/init.rb
rbnacl-3.0.1 lib/rbnacl/init.rb