9 |
debug="yes" |
debug="yes" |
10 |
checkperms="yes" |
checkperms="yes" |
11 |
encpasswds="yes" |
encpasswds="yes" |
12 |
ssl="yes" |
ssltls="yes" |
13 |
cram="yes" |
cram="yes" |
14 |
|
|
15 |
libs="" |
libs="" |
56 |
if [ $body = "yes" ]; then encpasswds="yes" |
if [ $body = "yes" ]; then encpasswds="yes" |
57 |
elif [ $body = "no" ]; then encpasswds="no" |
elif [ $body = "no" ]; then encpasswds="no" |
58 |
fi |
fi |
59 |
elif [ $head = "ssl" ] |
elif [ $head = "ssltls" ] |
60 |
then |
then |
61 |
if [ $body = "yes" ]; then ssl="yes" |
if [ $body = "yes" ]; then ssltls="yes" |
62 |
elif [ $body = "no" ]; then ssl="no" |
elif [ $body = "no" ]; then ssltls="no" |
63 |
fi |
fi |
64 |
elif [ $head = "cram" ] |
elif [ $head = "cram" ] |
65 |
then |
then |
88 |
debug Debugging information, useful during development [$debug] |
debug Debugging information, useful during development [$debug] |
89 |
checkperms Configuration file's permissions checking [$checkperms] |
checkperms Configuration file's permissions checking [$checkperms] |
90 |
encpasswds Encrypted passwords support [$encpasswds] |
encpasswds Encrypted passwords support [$encpasswds] |
91 |
ssl Secure Socket Layer and Transport Layer Security [$ssl] |
ssltls Secure Socket Layer and Transport Layer Security [$ssltls] |
92 |
cram Challenge-Response Authentication Mechanism [$cram] |
cram Challenge-Response Authentication Mechanism [$cram] |
93 |
EOF |
EOF |
94 |
exit 1 |
exit 1 |
125 |
read tmp |
read tmp |
126 |
if [ -n "$tmp" ]; then encpasswds="$tmp"; fi |
if [ -n "$tmp" ]; then encpasswds="$tmp"; fi |
127 |
|
|
128 |
printf "Secure Socket Layer and Transport Layer Security [$ssl]: " |
printf "Secure Socket Layer and Transport Layer Security [$ssltls]: " |
129 |
read tmp |
read tmp |
130 |
if [ -n "$tmp" ]; then ssl="$tmp"; fi |
if [ -n "$tmp" ]; then ssltls="$tmp"; fi |
131 |
|
|
132 |
printf "Challenge-Response Authentication Mechanism [$cram]: " |
printf "Challenge-Response Authentication Mechanism [$cram]: " |
133 |
read tmp |
read tmp |
140 |
Debugging information: $debug |
Debugging information: $debug |
141 |
Configuration file permissions checking: $checkperms |
Configuration file permissions checking: $checkperms |
142 |
Encrypted passwords support: $encpasswds |
Encrypted passwords support: $encpasswds |
143 |
Secure Socket Layer and Transport Layer Security: $ssl |
Secure Socket Layer and Transport Layer Security: $ssltls |
144 |
Challenge-Response Authentication Mechanism $cram |
Challenge-Response Authentication Mechanism: $cram |
145 |
EOF |
EOF |
146 |
fi |
fi |
147 |
|
|
148 |
|
|
149 |
# Libraries |
# Libraries |
150 |
|
|
151 |
if [ $ssl = "yes" ] |
if [ $ssltls = "yes" ] |
152 |
then |
then |
153 |
libs="$libs $libssl $libcrypto" |
libs="$libs $libssl $libcrypto" |
154 |
elif [ $encpasswds = "yes" || $cram = "yes" ] |
elif [ $encpasswds = "yes" || $cram = "yes" ] |
254 |
echo >> config.h |
echo >> config.h |
255 |
|
|
256 |
echo "/* Secure Socket Layer and Transport Layer Security support. */" >> config.h |
echo "/* Secure Socket Layer and Transport Layer Security support. */" >> config.h |
257 |
if [ $ssl = "yes" ] |
if [ $ssltls = "yes" ] |
258 |
then |
then |
259 |
echo "#define SSL_TLS" >> config.h |
echo "#define SSL_TLS" >> config.h |
260 |
else |
else |