Jørgen P. TjernøandFrank Denis 64129657a5 Portability improvements (#1105)
* Move `raise` code to be behind an autoconf check

This moves the call to `raise` behind a `HAVE_RAISE` autoconf check,
in addition to `__wasm__`. This is intended to help porting to
other platforms that don't support `raise` (e.g. modern game consoles).

* Add autoconf check for `sysconf`

Only try to invoke `sysconf` if the target platform supports it, and
don't warn about unknown page size if `PAGE_SIZE` was defined. Add an
include for `sys/param.h` to increase likelihood of finding `PAGE_SIZE`.
This is intended to help porting to other platforms that don't support
`sysconf` (e.g. modern game consoles) that have a fixed hardware page
size.

* Don't try to use raise & sysconf in a WASI environment

Co-authored-by: Frank Denis <124872+jedisct1@users.noreply.github.com>
2021-09-16 20:01:24 +02:00
2021-06-02 21:35:16 +02:00
2020-08-01 17:16:09 +02:00
2021-04-08 10:55:46 +02:00
2020-03-31 12:21:14 +02:00
2019-06-10 22:35:19 +02:00
2021-09-16 20:01:24 +02:00
2021-03-20 00:08:20 +01:00
2019-05-28 20:59:44 +02:00
2019-11-11 00:55:37 +01:00
2021-07-25 21:46:37 +02:00
2019-05-31 00:44:08 +02:00
2021-09-16 20:01:24 +02:00
2020-06-18 19:36:31 +02:00
2021-01-01 00:02:37 +01:00
2018-12-25 10:25:23 +01:00

GitHub CI Windows build status Coverity Scan Build Status Azure build status CodeQL scan

libsodium

Sodium is a new, easy-to-use software library for encryption, decryption, signatures, password hashing and more.

It is a portable, cross-compilable, installable, packageable fork of NaCl, with a compatible API, and an extended API to improve usability even further.

Its goal is to provide all of the core operations needed to build higher-level cryptographic tools.

Sodium supports a variety of compilers and operating systems, including Windows (with MingW or Visual Studio, x86 and x64), iOS, Android, as well as Javascript and Webassembly.

Documentation

The documentation is available on Gitbook and built from the libsodium-doc repository:

Integrity Checking

The integrity checking instructions (including the signing key for libsodium) are available in the installation section of the documentation.

Community

A mailing-list is available to discuss libsodium.

In order to join, just send a random mail to sodium-subscribe {at} pureftpd {dot} org.

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

License

ISC license.

S
Description
No description provided
Readme ISC
16 MiB
Languages
C 93%
Shell 1.8%
M4 1.5%
Zig 1.3%
Assembly 1.1%
Other 1.2%