From 1891a3d7aca2cefd6495266c236a71296994c2a4 Mon Sep 17 00:00:00 2001 From: Jeroen Nijhof Date: Wed, 25 Jul 2012 11:37:30 +0200 Subject: tac_encryption fully handled by libtac --- libtac/lib/connect.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libtac/lib/connect.c') diff --git a/libtac/lib/connect.c b/libtac/lib/connect.c index ef4d706..1494976 100644 --- a/libtac/lib/connect.c +++ b/libtac/lib/connect.c @@ -153,7 +153,11 @@ int tac_connect_single(struct addrinfo *server, char *key) { retval = fd; /* set current tac_secret */ - tac_secret = key; + tac_encryption = 0; + if (key != NULL && strcmp(key, "") != 0) { + tac_encryption = 1; + tac_secret = key; + } free(ip); -- cgit v1.2.3