libsodium_version (libsodium v3.0.1)

View Source

Version information for the libsodium library linked into the NIF.

version_string/0 is the release version, while library_version_major/0 and library_version_minor/0 are the shared library ABI version.

<<"1.", _/binary>> = libsodium_version:version_string(),
true = libsodium_version:library_version_major() >= 10.

Summary

Functions

Return 1 if libsodium was built in minimal mode (without the functions omitted by --enable-minimal), otherwise 0.

Return the major version of the libsodium library ABI.

Return the minor version of the libsodium library ABI.

Return the libsodium release version, such as <<"1.0.22">>.

Functions

library_minimal()

-spec library_minimal() -> Result when Result :: 0 | 1.

Return 1 if libsodium was built in minimal mode (without the functions omitted by --enable-minimal), otherwise 0.

library_version_major()

-spec library_version_major() -> Result when Result :: non_neg_integer().

Return the major version of the libsodium library ABI.

library_version_minor()

-spec library_version_minor() -> Result when Result :: non_neg_integer().

Return the minor version of the libsodium library ABI.

version_string()

-spec version_string() -> Result when Result :: binary().

Return the libsodium release version, such as <<"1.0.22">>.