# Test authentication.
-# Copyright (C) 2013 Simon Ruderich
+# Copyright (C) 2013-2014 Simon Ruderich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
cleanup
tlsproxy_setup
-echo 'dXNlcm5hbWU6cGFzc3dvcmQ=' > digest-authentication
-tlsproxy -a digest-authentication 4711
-server --x509certfile "$srcdir/server.pem" \
- --x509keyfile "$srcdir/server-key.pem"
+echo 'dXNlcm5hbWU6cGFzc3dvcmQ=' >digest-authentication
+tlsproxy_background -a digest-authentication 4711
+server_background --x509certfile "$srcdir/server.pem" \
+ --x509keyfile "$srcdir/server-key.pem"
wait_for_ports 4711 4712
rm -f digest-authentication