mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 20:13:05 +02:00
Added scripts/linux/build-polarssl-ovpn2 to build OpenVPN 2.x with
PolarSSL.
This commit is contained in:
parent
a5210ce061
commit
dc10d6f541
@ -7,13 +7,10 @@
|
||||
# ENABLE_TESTING=1 -- run PolarSSL test scripts after build
|
||||
# DEBUG_BUILD=1 -- enable minimal testing on target
|
||||
# ENABLE_SERVER=1 -- enable SSL/TLS server code
|
||||
# ENABLE_FS_IO=1 -- enable PolarSSL file I/O
|
||||
# VERBOSE=1 -- see build commands
|
||||
# USE_MINICRYPTO=1 -- use minicrypto library
|
||||
# NO_WIPE=1 -- don't wipe source tree and reunzip tarball
|
||||
#
|
||||
# Examples:
|
||||
# AES_NI=1 $O3/polarssl/build-polarssl
|
||||
# AES_NI=1 ENABLE_TESTING=1 VERBOSE=1 $O3/polarssl/build-polarssl
|
||||
|
||||
set -e
|
||||
if [ -z "$O3" ]; then
|
||||
@ -120,6 +117,11 @@ if [ "$ENABLE_SERVER" = "1" ]; then
|
||||
echo "#define POLARSSL_SSL_SRV_C" >>$OPC
|
||||
fi
|
||||
|
||||
# enable PolarSSL file I/O
|
||||
if [ "$ENABLE_FS_IO" = "1" ]; then
|
||||
echo "#define POLARSSL_FS_IO" >>$OPC
|
||||
fi
|
||||
|
||||
# Build shared library
|
||||
if [ "$SHARED" = "1" ]; then
|
||||
OPT="$OPT -DUSE_SHARED_POLARSSL_LIBRARY=1"
|
||||
|
10
scripts/linux/build-polarssl-ovpn2
Executable file
10
scripts/linux/build-polarssl-ovpn2
Executable file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# When running OpenVPN 2.x ./configure script, use the following command:
|
||||
#
|
||||
# POLARSSL_CFLAGS="-I$HOME/linux/polarssl/polarssl-linux/include" POLARSSL_LIBS="-L$HOME/linux/polarssl/polarssl-linux/library -lpolarssl" ./configure --with-crypto-library=polarssl
|
||||
|
||||
rm -rf polarssl
|
||||
mkdir polarssl
|
||||
VERBOSE=1 TARGET=linux ENABLE_SERVER=1 ENABLE_FS_IO=1 $O3/polarssl/build-polarssl
|
||||
mv polarssl-linux polarssl
|
Loading…
Reference in New Issue
Block a user