diff options
author | Jay Freeman <saurik@saurik.com> | 2008-12-03 13:59:09 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-12-03 13:59:09 +0000 |
commit | 4e9b2830925e8ef8851e3d634a72ae315ffab7f9 (patch) | |
tree | f67cad1a5a8a19ee3626ef678cad9f1bad02d27e /data/stunnel/stunnel3 | |
parent | a15d1bd7c0ec51eb7f7e19fe0a86dc16fda5fffb (diff) |
Upgraded to stunnel4.
git-svn-id: http://svn.telesphoreo.org/trunk@518 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/stunnel/stunnel3')
-rwxr-xr-x | data/stunnel/stunnel3 | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/data/stunnel/stunnel3 b/data/stunnel/stunnel3 new file mode 100755 index 000000000..86ed9264d --- /dev/null +++ b/data/stunnel/stunnel3 @@ -0,0 +1,55 @@ +#!/bin/bash +exec stunnel4 <( + (while getopts 'cTWfD:O:o:C:p:v:a:A:t:N:u:n:E:R:B:I:d:s:g:P:r:L:l:' OPTKEY; do + case $OPTKEY in + (c) echo "client = yes";; + (T) echo "transparent = yes";; + (W) echo "RNDoverwrite = yes";; + (f) echo "foreground = yes";; + (D) echo "debug = $OPTARG";; + (O) echo "socket = $OPTARG";; + (o) echo "output = $OPTARG";; + (C) echo "ciphers = $OPTARG";; + (p) echo "cert = $OPTARG";; + (v) echo "verify = $OPTARG";; + (a) echo "CApath = $OPTARG";; + (A) echo "CAfile = $OPTARG";; + (t) echo "session = $OPTARG";; + (N) echo "service = $OPTARG";; + (u) echo "ident = $OPTARG";; + (n) echo "protocol = $OPTARG";; + (E) echo "EGD = $OPTARG";; + (R) echo "RNDfile = $OPTARG";; + (B) echo "RNDbytes = $OPTARG";; + (I) echo "local = $OPTARG";; + + (d) + echo "accept = $OPTARG" + stunnel3= + ;; + + (s) echo "setuid = $OPTARG";; + (g) echo "setgid = $OPTARG";; + (P) echo "pid = $OPTARG";; + (r) echo "connect = $OPTARG";; + + (L) + echo "pty = yes" + echo "exec = $OPTARG" + ;; + + (l) + echo "exec = $OPTARG" + ;; + esac + done + + if [[ ${stunnel3+@} ]]; then + echo "[stunnel3]" + fi + + shift $((OPTIND - 1)) + if [[ $# -ne 0 ]]; then + echo "execargs = $@" + fi) | tee /proc/self/fd/2 +) |