Remove invalid return value from JVM JNA definition of sodium_bin2base64, since the actual return value is the pointer to the buffer containing encoded string, not an integer, and we don't use it in any case

This commit is contained in:
Ugljesa Jovanovic 2024-07-02 20:45:23 +02:00
parent 1ff01d0fdd
commit 3d2c848a79
No known key found for this signature in database
GPG Key ID: 5884AC34A0EC67DB
2 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ interface JnaLibsodiumInterface : Library {
bin: ByteArray,
binLength: Int,
variant: Int
): Int
)
// int sodium_base642bin(
// unsigned char * const bin, const size_t bin_maxlen,

View File

@ -71,7 +71,7 @@ actual object LibsodiumUtil {
data.asByteArray(),
data.size,
variant.value
).ensureLibsodiumSuccess()
)
//Drop terminating char \0
return String(result.sliceArray(0 until result.size - 1))
}