Browse Source

on linux a relative path must be given to DynamicLibrary.open

remove-cryptography-dependency
Herbert Poul 5 years ago
parent
commit
050504df9d
  1. 2
      test/kdbx4_test.dart

2
test/kdbx4_test.dart

@ -43,7 +43,7 @@ class Argon2Test implements Argon2 {
Argon2Test() {
final argon2lib = Platform.isMacOS
? DynamicLibrary.open('libargon2_ffi.dylib')
: DynamicLibrary.open('libargon2_ffi.so');
: DynamicLibrary.open('./libargon2_ffi.so');
_argon2hash = argon2lib
.lookup<NativeFunction<Argon2HashNative>>('hp_argon2_hash')
.asFunction();

Loading…
Cancel
Save