certificate-localhost-proxy.pem certificate-localhost-server.pem \
proxy-ca-key.pem proxy-ca.pem proxy-invalid.pem proxy-key.pem
}
-abort() {
- echo abort
+stop_servers() {
pkill -n gnutls-serv
pkill -n tlsproxy
+}
+abort() {
+ echo abort
+ stop_servers
exit 1
}
server() {
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Handle empty $srcdir.
-[ "x$srcdir" = x ] && srcdir=.
-
+test "x$srcdir" = x && srcdir=.
. "$srcdir/common.sh"
test_invalid_certificate
-pkill -n gnutls-serv
-pkill -n tlsproxy
-
+stop_servers
cleanup
rm -f tmp
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Handle empty $srcdir.
-[ "x$srcdir" = x ] && srcdir=.
-
+test "x$srcdir" = x && srcdir=.
. "$srcdir/common.sh"
test_invalid_certificate
-pkill -n gnutls-serv
-pkill -n tlsproxy
-
+stop_servers
cleanup
rm -f tmp