1 # Using NetPGP instead of GnuPG
5 curl -O https://www.openssl.org/source/openssl-1.1.0f.tar.gz
7 Build it using the openssl-for-ios build script:
8 git clone https://github.com/sinofool/build-openssl-ios/ .
12 and build/install it as shared library.
15 wget https://www.openssl.org/source/old/1.0.1/openssl-1.0.1u.tar.gz
16 tar xvfz openssl-1.0.1u.tar.gz
18 ./Configure darwin64-x86_64-cc --prefix=$HOME shared
22 Get and autoconf NetPGP
26 hg clone https://pep.foundation/dev/repos/netpgp-et/
33 Important : LDFLAGS is set to help finding OpenSSL shared lib. If not set,
34 system's default libcrypto may silently be used instead, causing memory
35 corruption or crash at runtime.
40 $SRC/netpgp-et/configure --with-openssl=$HOME --prefix=$HOME CPPFLAGS=-DDEBUG CXXFLAGS="-g -O0" LDFLAGS="-L${HOME}/lib"