shadowsocks/tests/libsodium/install.sh
smounives 6ef14e56db Add chacha20-ietf crypto (#590)
* Add chacha20-ietf crypto

* fix chacha20-ietf

* PEP8

* Update sodium.py (#1)

pep8
2016-08-17 17:06:54 +08:00

10 lines
294 B
Bash
Executable file

#!/bin/bash
if [ ! -d libsodium-1.0.11 ]; then
wget https://github.com/jedisct1/libsodium/releases/download/1.0.11/libsodium-1.0.11.tar.gz || exit 1
tar xf libsodium-1.0.11.tar.gz || exit 1
fi
pushd libsodium-1.0.11
./configure && make -j2 && make install || exit 1
sudo ldconfig
popd