]> gitweb.factorcode.org Git - factor.git/commitdiff
sodium: import FFI stub
authorAlexander Iljin <ajsoft@yandex.ru>
Wed, 1 Mar 2017 16:54:05 +0000 (19:54 +0300)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 22 Jan 2018 17:26:16 +0000 (09:26 -0800)
extra/sodium/authors.txt [new file with mode: 0644]
extra/sodium/ffi/ffi.factor [new file with mode: 0644]
extra/sodium/summary.txt [new file with mode: 0644]

diff --git a/extra/sodium/authors.txt b/extra/sodium/authors.txt
new file mode 100644 (file)
index 0000000..8e1955f
--- /dev/null
@@ -0,0 +1 @@
+Alexander Ilin
diff --git a/extra/sodium/ffi/ffi.factor b/extra/sodium/ffi/ffi.factor
new file mode 100644 (file)
index 0000000..6a1ba89
--- /dev/null
@@ -0,0 +1,12 @@
+! Copyright (C) 2017 Alexander Ilin.
+! See http://factorcode.org/license.txt for BSD license.
+USING: alien alien.libraries alien.syntax combinators system ;
+IN: sodium.ffi
+
+<< "sodium" {
+    { [ os windows? ] [ "libsodium.dll" ] }
+    { [ os macosx? ] [ "libsodium.dylib" ] }
+    { [ os unix? ] [ "libsodium.so" ] }
+} cond cdecl add-library >>
+
+LIBRARY: sodium
diff --git a/extra/sodium/summary.txt b/extra/sodium/summary.txt
new file mode 100644 (file)
index 0000000..c2b7fea
--- /dev/null
@@ -0,0 +1 @@
+The Sodium crypto library