]> gitweb.factorcode.org Git - factor.git/commitdiff
sodium.ffi: add memory allocation and protection functions
authorAlexander Iljin <ajsoft@yandex.ru>
Wed, 1 Mar 2017 22:02:25 +0000 (01:02 +0300)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 22 Jan 2018 17:26:16 +0000 (09:26 -0800)
extra/sodium/ffi/ffi.factor

index 3017535eeab0baee763a34e2c747e26981999191..044d0d83867941df302aec73daa541eac9da1258 100644 (file)
@@ -45,3 +45,11 @@ FUNCTION: int crypto_pwhash_str_verify (
     char* str[crypto_pwhash_STRBYTES],
     char* passwd, ulonglong passwdlen )
 FUNCTION: char* crypto_pwhash_primitive ( )
+
+! sodium_utils_H
+FUNCTION: void* sodium_malloc ( size_t size )
+FUNCTION: void* sodium_allocarray ( size_t count, size_t size )
+FUNCTION: void sodium_free ( void* ptr )
+FUNCTION: int sodium_mprotect_noaccess ( void* ptr )
+FUNCTION: int sodium_mprotect_readonly ( void* ptr )
+FUNCTION: int sodium_mprotect_readwrite ( void* ptr )