Page 1 of 1

OpenVPN/OpenSSL latest version on B3

Posted: 09 Jul 2015, 12:54
by watashiwawa
Hi!

My first post on this forum, but been playing around with my B3 for some time now.
Currently using my B3 primarily as an OpenVPN client. Everything working just fine, but ran into som trouble updating OpenSSL.

Compiled latest OpenVPN/OpenSSL, but having trouble getting OpenVPN to use the correct version of OpenSSL (latest 1.0.2d), it insists on using the preinstalled older version ( 0.9.8o).

OpenSSL compiled with configuration option:

Code: Select all

./config --prefix=/opt/custom-openssl
OpenVPN compiled with configuration options:

Code: Select all

./configure 
--prefix=/opt/custom-openvpn 
--enable-password-save 
OPENSSL_SSL_LIBS="-L/opt/custom-openssl/ -lssl" 
OPENSSL_SSL_CFLAGS="-I/opt/custom-openssl/include/" 
OPENSSL_CRYPTO_LIBS="-L/opt/custom-openssl/ -lcrypto" 
OPENSSL_CRYPTO_CFLAGS="-I/opt/custom-openssl/include/" 
Compilation goes OK, but still wrong version:

Code: Select all

root@b3:/opt/custom-openvpn/sbin# ./openvpn --version
OpenVPN 2.3.7 armv5tel-unknown-linux-gnueabi [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6]
library versions: OpenSSL 0.9.8o 01 Jun 2010, LZO 2.09
Any ideas? Missing configuration options?

Re: OpenVPN/OpenSSL latest version on B3

Posted: 10 Jul 2015, 03:07
by Gordon
I don't think openssl is actually linked into the openvpn binary, i.e. at runtime it will use LD_LIBRARY_PATH to find the corresponding .so files. You should set this path accordingly prior to starting openvpn.

Re: OpenVPN/OpenSSL latest version on B3

Posted: 10 Jul 2015, 06:14
by watashiwawa
Thanks for pointing me me out in the right direction!

Adding:

Code: Select all

 
LDFLAGS="-L/opt/custom-openssl/lib/"
during config did the trick!