Verify the existence of the keytab for tcp_server, gssapi_server

appl/test/tcp_server and gssapi_server try to open the keytab file only when processing a connection.

This patch verifies the existence of the keytab file on program startup, so that troubleshooting is easier. In addition it adds some comments.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:
Marco Molteni
2012-05-01 23:01:19 +02:00
committed by Love Hornquist Astrand
parent dd267e8fc3
commit e242c40746
3 changed files with 30 additions and 11 deletions

View File

@@ -31,6 +31,10 @@
* SUCH DAMAGE.
*/
/*
* A sample server that uses the Kerberos V5 API.
*/
#include "test_locl.h"
RCSID("$Id$");
@@ -160,6 +164,9 @@ doit (int port, const char *service)
return proto (STDIN_FILENO, service);
}
/*
* Process only one connection and then exit.
*/
int
main(int argc, char **argv)
{