~ubuntu-branches/ubuntu/utopic/openvpn/utopic-proposed

« back to all changes in this revision

Viewing changes to easy-rsa/2.0/tmp/whichopensslcnf

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-12-31 04:55:56 UTC
  • mfrom: (1.1.18) (10.2.16 sid)
  • Revision ID: package-import@ubuntu.com-20111231045556-3fwmrbggevr9iqxd
Tags: 2.2.1-3ubuntu1
* Merge from Debian testing.  Remaining changes:
 + debian/openvpn.init.d:
    - Do not use start-stop-daemon and </dev/null to avoid blocking boot.
    - Show per-VPN result messages.
    - Add "--script-security 2" by default for backwards compatabliity.
  + debian/control: Add lsb-base >= 3.2-14 to allow status_of_proc()
  + debian/update-resolv-conf: Support multiple domains.
  + fix bug where '--script-security 2' would be passed for all
    daemons after the first. (LP: #794916)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
cnf="$1/openssl.cnf"
 
4
if [ "$OPENSSL" ]; then
 
5
        if $OPENSSL version | grep 0.9.6 > /dev/null; then
 
6
                cnf="$1/openssl-0.9.6.cnf"
 
7
        elif $OPENSSL version | grep -E "1\.0\.([[:digit:]][[:alnum:]])" > /dev/null; then
 
8
                cnf="$1/openssl-1.0.0.cnf"
 
9
        else
 
10
                cnf="$1/openssl.cnf"
 
11
        fi
 
12
fi
 
13
 
 
14
echo $cnf
 
15
 
 
16
if [ ! -r $cnf ]; then
 
17
    echo "**************************************************************" >&2
 
18
    echo "  No $cnf file could be found" >&2
 
19
    echo "  Further invocations will fail" >&2
 
20
    echo "**************************************************************" >&2
 
21
fi 
 
22
 
 
23
exit 0