Method: ThemisImport.load_themis

Defined in:
lib/rbthemis.rb

.load_themisObject



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/rbthemis.rb', line 61

def self.load_themis
  for path in canonical_themis_paths
    begin
      return ffi_lib path
    rescue LoadError
      next
    end
  end
  warn "    WARN: failed to load the canonical Themis Core library\n\n    Proceeding to find 'themis' library in standard paths.\n    This might cause ABI mismatch and crash the process.\n  EOF\n  return ffi_lib 'themis'\nend\n"