Properly detect OpenSSL version strings with numbers only
whichopensslcnf failed to return the right cnf for: $ openssl version OpenSSL 1.0.1 14 Mar 2012 Signed-off-by: Simon Deziel <simon.deziel@gmail.com> Acked-by: Alon Bar-Lev <alon.barlev@gmail.com> Message-Id: 4FAE87C1.6000509@gmail.com URL: http://article.gmane.org/gmane.network.openvpn.devel/6534 Signed-off-by: David Sommerseth <davids@redhat.com>
This commit is contained in:
parent
f50a678a18
commit
a812fed7fb
@ -3,11 +3,11 @@
|
||||
cnf="$1/openssl.cnf"
|
||||
|
||||
if [ "$OPENSSL" ]; then
|
||||
if $OPENSSL version | grep -E "0\.9\.6[[:alnum:]]" > /dev/null; then
|
||||
if $OPENSSL version | grep -E "0\.9\.6[[:alnum:]]?" > /dev/null; then
|
||||
cnf="$1/openssl-0.9.6.cnf"
|
||||
elif $OPENSSL version | grep -E "0\.9\.8[[:alnum:]]" > /dev/null; then
|
||||
elif $OPENSSL version | grep -E "0\.9\.8[[:alnum:]]?" > /dev/null; then
|
||||
cnf="$1/openssl-0.9.8.cnf"
|
||||
elif $OPENSSL version | grep -E "1\.0\.([[:digit:]][[:alnum:]])" > /dev/null; then
|
||||
elif $OPENSSL version | grep -E "1\.0\.[[:digit:]][[:alnum:]]?" > /dev/null; then
|
||||
cnf="$1/openssl-1.0.0.cnf"
|
||||
else
|
||||
cnf="$1/openssl.cnf"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user